当前位置: 首页>>代码示例>>Java>>正文


Java OracleTablespaceProperties类代码示例

本文整理汇总了Java中org.insightech.er.db.impl.oracle.tablespace.OracleTablespaceProperties的典型用法代码示例。如果您正苦于以下问题:Java OracleTablespaceProperties类的具体用法?Java OracleTablespaceProperties怎么用?Java OracleTablespaceProperties使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


OracleTablespaceProperties类属于org.insightech.er.db.impl.oracle.tablespace包,在下文中一共展示了OracleTablespaceProperties类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createXML

import org.insightech.er.db.impl.oracle.tablespace.OracleTablespaceProperties; //导入依赖的package包/类
private String createXML(final OracleTablespaceProperties tablespace) {
    final StringBuilder xml = new StringBuilder();

    xml.append("<auto_extend>").append(tablespace.isAutoExtend()).append("</auto_extend>\n");
    xml.append("<auto_segment_space_management>").append(tablespace.isAutoSegmentSpaceManagement()).append("</auto_segment_space_management>\n");
    xml.append("<logging>").append(tablespace.isLogging()).append("</logging>\n");
    xml.append("<offline>").append(tablespace.isOffline()).append("</offline>\n");
    xml.append("<temporary>").append(tablespace.isTemporary()).append("</temporary>\n");
    xml.append("<auto_extend_max_size>").append(escape(tablespace.getAutoExtendMaxSize())).append("</auto_extend_max_size>\n");
    xml.append("<auto_extend_size>").append(escape(tablespace.getAutoExtendSize())).append("</auto_extend_size>\n");
    xml.append("<data_file>").append(escape(tablespace.getDataFile())).append("</data_file>\n");
    xml.append("<file_size>").append(escape(tablespace.getFileSize())).append("</file_size>\n");
    xml.append("<initial>").append(escape(tablespace.getInitial())).append("</initial>\n");
    xml.append("<max_extents>").append(escape(tablespace.getMaxExtents())).append("</max_extents>\n");
    xml.append("<min_extents>").append(escape(tablespace.getMinExtents())).append("</min_extents>\n");
    xml.append("<minimum_extent_size>").append(escape(tablespace.getMinimumExtentSize())).append("</minimum_extent_size>\n");
    xml.append("<next>").append(escape(tablespace.getNext())).append("</next>\n");
    xml.append("<pct_increase>").append(escape(tablespace.getPctIncrease())).append("</pct_increase>\n");

    return xml.toString();
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:22,代码来源:PersistentXmlImpl.java

示例2: loadTablespacePropertiesOracle

import org.insightech.er.db.impl.oracle.tablespace.OracleTablespaceProperties; //导入依赖的package包/类
private TablespaceProperties loadTablespacePropertiesOracle(final Element element) {
    final OracleTablespaceProperties properties = new OracleTablespaceProperties();

    properties.setAutoExtend(this.getBooleanValue(element, "auto_extend"));
    properties.setAutoExtendMaxSize(getStringValue(element, "auto_extend_max_size"));
    properties.setAutoExtendSize(getStringValue(element, "auto_extend_size"));
    properties.setAutoSegmentSpaceManagement(this.getBooleanValue(element, "auto_segment_space_management"));
    properties.setDataFile(getStringValue(element, "data_file"));
    properties.setFileSize(getStringValue(element, "file_size"));
    properties.setInitial(getStringValue(element, "initial"));
    properties.setLogging(this.getBooleanValue(element, "logging"));
    properties.setMaxExtents(getStringValue(element, "max_extents"));
    properties.setMinExtents(getStringValue(element, "min_extents"));
    properties.setMinimumExtentSize(getStringValue(element, "minimum_extent_size"));
    properties.setNext(getStringValue(element, "next"));
    properties.setOffline(this.getBooleanValue(element, "offline"));
    properties.setPctIncrease(getStringValue(element, "pct_increase"));
    properties.setTemporary(this.getBooleanValue(element, "temporary"));

    return properties;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:22,代码来源:XMLLoader.java

示例3: loadTablespacePropertiesOracle

import org.insightech.er.db.impl.oracle.tablespace.OracleTablespaceProperties; //导入依赖的package包/类
private TablespaceProperties loadTablespacePropertiesOracle(Element element) {
	OracleTablespaceProperties properties = new OracleTablespaceProperties();

	properties.setAutoExtend(this.getBooleanValue(element, "auto_extend"));
	properties.setAutoExtendMaxSize(this.getStringValue(element,
			"auto_extend_max_size"));
	properties.setAutoExtendSize(this.getStringValue(element,
			"auto_extend_size"));
	properties.setAutoSegmentSpaceManagement(this.getBooleanValue(element,
			"auto_segment_space_management"));
	properties.setDataFile(this.getStringValue(element, "data_file"));
	properties.setFileSize(this.getStringValue(element, "file_size"));
	properties.setInitial(this.getStringValue(element, "initial"));
	properties.setLogging(this.getBooleanValue(element, "logging"));
	properties.setMaxExtents(this.getStringValue(element, "max_extents"));
	properties.setMinExtents(this.getStringValue(element, "min_extents"));
	properties.setMinimumExtentSize(this.getStringValue(element,
			"minimum_extent_size"));
	properties.setNext(this.getStringValue(element, "next"));
	properties.setOffline(this.getBooleanValue(element, "offline"));
	properties.setPctIncrease(this.getStringValue(element, "pct_increase"));
	properties.setTemporary(this.getBooleanValue(element, "temporary"));

	return properties;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:26,代码来源:XMLLoader.java

示例4: checkTablespaceProperties

import org.insightech.er.db.impl.oracle.tablespace.OracleTablespaceProperties; //导入依赖的package包/类
@Override
public TablespaceProperties checkTablespaceProperties(final TablespaceProperties tablespaceProperties) {

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

    return tablespaceProperties;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:10,代码来源:OracleDBManager.java

示例5: checkTablespaceProperties

import org.insightech.er.db.impl.oracle.tablespace.OracleTablespaceProperties; //导入依赖的package包/类
public TablespaceProperties checkTablespaceProperties(
		TablespaceProperties tablespaceProperties) {

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

	return tablespaceProperties;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:10,代码来源:OracleDBManager.java

示例6: createTablespaceProperties

import org.insightech.er.db.impl.oracle.tablespace.OracleTablespaceProperties; //导入依赖的package包/类
@Override
public TablespaceProperties createTablespaceProperties() {
    return new OracleTablespaceProperties();
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:5,代码来源:OracleDBManager.java

示例7: createTablespaceProperties

import org.insightech.er.db.impl.oracle.tablespace.OracleTablespaceProperties; //导入依赖的package包/类
public TablespaceProperties createTablespaceProperties() {
	return new OracleTablespaceProperties();
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:4,代码来源:OracleDBManager.java

示例8: createXML

import org.insightech.er.db.impl.oracle.tablespace.OracleTablespaceProperties; //导入依赖的package包/类
private String createXML(Tablespace tablespace, PersistentContext context) {
	StringBuilder xml = new StringBuilder();

	xml.append("<tablespace>\n");

	if (context != null) {
		xml.append("\t<id>").append(context.tablespaceMap.get(tablespace))
				.append("</id>\n");
	}
	xml.append("\t<name>").append(escape(tablespace.getName()))
			.append("</name>\n");

	for (Map.Entry<Environment, TablespaceProperties> entry : tablespace
			.getPropertiesMap().entrySet()) {
		Environment environment = entry.getKey();
		TablespaceProperties tablespaceProperties = entry.getValue();

		xml.append("\t<properties>\n");

		xml.append("\t\t<environment_id>")
				.append(context.environmentMap.get(environment))
				.append("</environment_id>\n");

		if (tablespaceProperties instanceof DB2TablespaceProperties) {
			xml.append(tab(tab(this
					.createXML((DB2TablespaceProperties) tablespaceProperties))));

		} else if (tablespaceProperties instanceof MySQLTablespaceProperties) {
			xml.append(tab(tab(this
					.createXML((MySQLTablespaceProperties) tablespaceProperties))));

		} else if (tablespaceProperties instanceof OracleTablespaceProperties) {
			xml.append(tab(tab(this
					.createXML((OracleTablespaceProperties) tablespaceProperties))));

		} else if (tablespaceProperties instanceof PostgresTablespaceProperties) {
			xml.append(tab(tab(this
					.createXML((PostgresTablespaceProperties) tablespaceProperties))));
		}

		xml.append("\t</properties>\n");
	}

	xml.append("</tablespace>\n");

	return xml.toString();
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:48,代码来源:PersistentXmlImpl.java


注:本文中的org.insightech.er.db.impl.oracle.tablespace.OracleTablespaceProperties类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。