當前位置: 首頁>>代碼示例>>Java>>正文


Java DB2TablespaceProperties類代碼示例

本文整理匯總了Java中org.insightech.er.db.impl.db2.tablespace.DB2TablespaceProperties的典型用法代碼示例。如果您正苦於以下問題:Java DB2TablespaceProperties類的具體用法?Java DB2TablespaceProperties怎麽用?Java DB2TablespaceProperties使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DB2TablespaceProperties類屬於org.insightech.er.db.impl.db2.tablespace包,在下文中一共展示了DB2TablespaceProperties類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createXML

import org.insightech.er.db.impl.db2.tablespace.DB2TablespaceProperties; //導入依賴的package包/類
private String createXML(final DB2TablespaceProperties tablespace) {
    final StringBuilder xml = new StringBuilder();

    xml.append("<buffer_pool_name>").append(escape(tablespace.getBufferPoolName())).append("</buffer_pool_name>\n");
    xml.append("<container>").append(escape(tablespace.getContainer())).append("</container>\n");
    // xml.append("<container_device_path>").append(
    // escape(tablespace.getContainerDevicePath())).append(
    // "</container_device_path>\n");
    // xml.append("<container_directory_path>").append(
    // escape(tablespace.getContainerDirectoryPath())).append(
    // "</container_directory_path>\n");
    // xml.append("<container_file_path>").append(
    // escape(tablespace.getContainerFilePath())).append(
    // "</container_file_path>\n");
    // xml.append("<container_page_num>").append(
    // escape(tablespace.getContainerPageNum())).append(
    // "</container_page_num>\n");
    xml.append("<extent_size>").append(escape(tablespace.getExtentSize())).append("</extent_size>\n");
    xml.append("<managed_by>").append(escape(tablespace.getManagedBy())).append("</managed_by>\n");
    xml.append("<page_size>").append(escape(tablespace.getPageSize())).append("</page_size>\n");
    xml.append("<prefetch_size>").append(escape(tablespace.getPrefetchSize())).append("</prefetch_size>\n");
    xml.append("<type>").append(escape(tablespace.getType())).append("</type>\n");

    return xml.toString();
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:26,代碼來源:PersistentXmlImpl.java

示例2: loadTablespacePropertiesDB2

import org.insightech.er.db.impl.db2.tablespace.DB2TablespaceProperties; //導入依賴的package包/類
private TablespaceProperties loadTablespacePropertiesDB2(final Element element) {
    final DB2TablespaceProperties properties = new DB2TablespaceProperties();

    properties.setBufferPoolName(getStringValue(element, "buffer_pool_name"));
    properties.setContainer(getStringValue(element, "container"));
    // properties.setContainerDevicePath(this.getStringValue(element,
    // "container_device_path"));
    // properties.setContainerDirectoryPath(this.getStringValue(element,
    // "container_directory_path"));
    // properties.setContainerFilePath(this.getStringValue(element,
    // "container_file_path"));
    // properties.setContainerPageNum(this.getStringValue(element,
    // "container_page_num"));
    properties.setExtentSize(getStringValue(element, "extent_size"));
    properties.setManagedBy(getStringValue(element, "managed_by"));
    properties.setPageSize(getStringValue(element, "page_size"));
    properties.setPrefetchSize(getStringValue(element, "prefetch_size"));
    properties.setType(getStringValue(element, "type"));

    return properties;
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:22,代碼來源:XMLLoader.java

示例3: loadTablespacePropertiesDB2

import org.insightech.er.db.impl.db2.tablespace.DB2TablespaceProperties; //導入依賴的package包/類
private TablespaceProperties loadTablespacePropertiesDB2(Element element) {
	DB2TablespaceProperties properties = new DB2TablespaceProperties();

	properties.setBufferPoolName(this.getStringValue(element,
			"buffer_pool_name"));
	properties.setContainer(this.getStringValue(element, "container"));
	// properties.setContainerDevicePath(this.getStringValue(element,
	// "container_device_path"));
	// properties.setContainerDirectoryPath(this.getStringValue(element,
	// "container_directory_path"));
	// properties.setContainerFilePath(this.getStringValue(element,
	// "container_file_path"));
	// properties.setContainerPageNum(this.getStringValue(element,
	// "container_page_num"));
	properties.setExtentSize(this.getStringValue(element, "extent_size"));
	properties.setManagedBy(this.getStringValue(element, "managed_by"));
	properties.setPageSize(this.getStringValue(element, "page_size"));
	properties.setPrefetchSize(this
			.getStringValue(element, "prefetch_size"));
	properties.setType(this.getStringValue(element, "type"));

	return properties;
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:24,代碼來源:XMLLoader.java

示例4: checkTablespaceProperties

import org.insightech.er.db.impl.db2.tablespace.DB2TablespaceProperties; //導入依賴的package包/類
@Override
public TablespaceProperties checkTablespaceProperties(final TablespaceProperties tablespaceProperties) {

    if (!(tablespaceProperties instanceof DB2TablespaceProperties)) {
        return new DB2TablespaceProperties();
    }

    return tablespaceProperties;
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:10,代碼來源:DB2DBManager.java

示例5: checkTablespaceProperties

import org.insightech.er.db.impl.db2.tablespace.DB2TablespaceProperties; //導入依賴的package包/類
public TablespaceProperties checkTablespaceProperties(
		TablespaceProperties tablespaceProperties) {

	if (!(tablespaceProperties instanceof DB2TablespaceProperties)) {
		return new DB2TablespaceProperties();
	}

	return tablespaceProperties;
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:10,代碼來源:DB2DBManager.java

示例6: createXML

import org.insightech.er.db.impl.db2.tablespace.DB2TablespaceProperties; //導入依賴的package包/類
private String createXML(DB2TablespaceProperties tablespace) {
	StringBuilder xml = new StringBuilder();

	xml.append("<buffer_pool_name>")
			.append(escape(tablespace.getBufferPoolName()))
			.append("</buffer_pool_name>\n");
	xml.append("<container>").append(escape(tablespace.getContainer()))
			.append("</container>\n");
	// xml.append("<container_device_path>").append(
	// escape(tablespace.getContainerDevicePath())).append(
	// "</container_device_path>\n");
	// xml.append("<container_directory_path>").append(
	// escape(tablespace.getContainerDirectoryPath())).append(
	// "</container_directory_path>\n");
	// xml.append("<container_file_path>").append(
	// escape(tablespace.getContainerFilePath())).append(
	// "</container_file_path>\n");
	// xml.append("<container_page_num>").append(
	// escape(tablespace.getContainerPageNum())).append(
	// "</container_page_num>\n");
	xml.append("<extent_size>").append(escape(tablespace.getExtentSize()))
			.append("</extent_size>\n");
	xml.append("<managed_by>").append(escape(tablespace.getManagedBy()))
			.append("</managed_by>\n");
	xml.append("<page_size>").append(escape(tablespace.getPageSize()))
			.append("</page_size>\n");
	xml.append("<prefetch_size>")
			.append(escape(tablespace.getPrefetchSize()))
			.append("</prefetch_size>\n");
	xml.append("<type>").append(escape(tablespace.getType()))
			.append("</type>\n");

	return xml.toString();
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:35,代碼來源:PersistentXmlImpl.java

示例7: getDDL

import org.insightech.er.db.impl.db2.tablespace.DB2TablespaceProperties; //導入依賴的package包/類
@Override
protected String getDDL(final Tablespace tablespace) {
    final DB2TablespaceProperties tablespaceProperties = (DB2TablespaceProperties) tablespace.getProperties(environment, getDiagram());

    final StringBuilder ddl = new StringBuilder();

    ddl.append("CREATE ");
    if (!Check.isEmpty(tablespaceProperties.getType())) {
        ddl.append(tablespaceProperties.getType());
        ddl.append(" ");
    }

    ddl.append("TABLESPACE ");
    ddl.append(filterName(tablespace.getName()));
    ddl.append(LF());

    if (!Check.isEmpty(tablespaceProperties.getPageSize())) {
        ddl.append(" PAGESIZE ");
        ddl.append(tablespaceProperties.getPageSize());
        ddl.append(LF());
    }

    ddl.append(" MANAGED BY ");
    ddl.append(tablespaceProperties.getManagedBy());
    ddl.append(" USING(");
    ddl.append(tablespaceProperties.getContainer());
    ddl.append(")" + LF());

    if (!Check.isEmpty(tablespaceProperties.getExtentSize())) {
        ddl.append(" EXTENTSIZE ");
        ddl.append(tablespaceProperties.getExtentSize());
        ddl.append(LF());
    }

    if (!Check.isEmpty(tablespaceProperties.getPrefetchSize())) {
        ddl.append(" PREFETCHSIZE ");
        ddl.append(tablespaceProperties.getPrefetchSize());
        ddl.append(LF());
    }

    if (!Check.isEmpty(tablespaceProperties.getBufferPoolName())) {
        ddl.append(" BUFFERPOOL ");
        ddl.append(tablespaceProperties.getBufferPoolName());
        ddl.append(LF());
    }

    if (semicolon) {
        ddl.append(";");
    }

    return ddl.toString();
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:53,代碼來源:DB2DDLCreator.java

示例8: createTablespaceProperties

import org.insightech.er.db.impl.db2.tablespace.DB2TablespaceProperties; //導入依賴的package包/類
@Override
public TablespaceProperties createTablespaceProperties() {
    return new DB2TablespaceProperties();
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:5,代碼來源:DB2DBManager.java

示例9: getDDL

import org.insightech.er.db.impl.db2.tablespace.DB2TablespaceProperties; //導入依賴的package包/類
@Override
protected String getDDL(Tablespace tablespace) {
	DB2TablespaceProperties tablespaceProperties = (DB2TablespaceProperties) tablespace
			.getProperties(this.environment, this.getDiagram());

	StringBuilder ddl = new StringBuilder();

	ddl.append("CREATE ");
	if (!Check.isEmpty(tablespaceProperties.getType())) {
		ddl.append(tablespaceProperties.getType());
		ddl.append(" ");
	}

	ddl.append("TABLESPACE ");
	ddl.append(filterName(tablespace.getName()));
	ddl.append(LF());

	if (!Check.isEmpty(tablespaceProperties.getPageSize())) {
		ddl.append(" PAGESIZE ");
		ddl.append(tablespaceProperties.getPageSize());
		ddl.append(LF());
	}

	ddl.append(" MANAGED BY ");
	ddl.append(tablespaceProperties.getManagedBy());
	ddl.append(" USING(");
	ddl.append(tablespaceProperties.getContainer());
	ddl.append(")" + LF());

	if (!Check.isEmpty(tablespaceProperties.getExtentSize())) {
		ddl.append(" EXTENTSIZE ");
		ddl.append(tablespaceProperties.getExtentSize());
		ddl.append(LF());
	}

	if (!Check.isEmpty(tablespaceProperties.getPrefetchSize())) {
		ddl.append(" PREFETCHSIZE ");
		ddl.append(tablespaceProperties.getPrefetchSize());
		ddl.append(LF());
	}

	if (!Check.isEmpty(tablespaceProperties.getBufferPoolName())) {
		ddl.append(" BUFFERPOOL ");
		ddl.append(tablespaceProperties.getBufferPoolName());
		ddl.append(LF());
	}

	if (this.semicolon) {
		ddl.append(";");
	}

	return ddl.toString();
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:54,代碼來源:DB2DDLCreator.java

示例10: createTablespaceProperties

import org.insightech.er.db.impl.db2.tablespace.DB2TablespaceProperties; //導入依賴的package包/類
public TablespaceProperties createTablespaceProperties() {
	return new DB2TablespaceProperties();
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:4,代碼來源:DB2DBManager.java


注:本文中的org.insightech.er.db.impl.db2.tablespace.DB2TablespaceProperties類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。