当前位置: 首页>>代码示例>>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;未经允许,请勿转载。