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


Java MySQLTableProperties类代码示例

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


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

示例1: createXML

import org.insightech.er.db.impl.mysql.MySQLTableProperties; //导入依赖的package包/类
private String createXML(final TableProperties tableProperties, final PersistentContext context) {
    final StringBuilder xml = new StringBuilder();

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

    final String tablespaceId = context.tablespaceMap.get(tableProperties.getTableSpace());
    if (tablespaceId != null) {
        xml.append("\t<tablespace_id>").append(tablespaceId).append("</tablespace_id>\n");
    }

    xml.append("\t<schema>").append(escape(tableProperties.getSchema())).append("</schema>\n");

    if (tableProperties instanceof MySQLTableProperties) {
        xml.append(tab(this.createXML((MySQLTableProperties) tableProperties)));

    } else if (tableProperties instanceof PostgresTableProperties) {
        xml.append(tab(this.createXML((PostgresTableProperties) tableProperties)));
    }

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

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

示例2: loadTableProperties

import org.insightech.er.db.impl.mysql.MySQLTableProperties; //导入依赖的package包/类
private void loadTableProperties(final TableProperties tableProperties, final Element parent, final LoadContext context) {
    final Element element = getElement(parent, "table_properties");

    final String tablespaceId = getStringValue(element, "tablespace_id");
    final Tablespace tablespace = context.tablespaceMap.get(tablespaceId);
    tableProperties.setTableSpace(tablespace);

    tableProperties.setSchema(getStringValue(element, "schema"));

    if (tableProperties instanceof MySQLTableProperties) {
        loadTablePropertiesMySQL((MySQLTableProperties) tableProperties, element);

    } else if (tableProperties instanceof PostgresTableProperties) {
        loadTablePropertiesPostgres((PostgresTableProperties) tableProperties, element);

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

示例3: createXML

import org.insightech.er.db.impl.mysql.MySQLTableProperties; //导入依赖的package包/类
private String createXML(MySQLTableProperties tableProperties) {
	StringBuilder xml = new StringBuilder();

	xml.append("<character_set>")
			.append(escape(tableProperties.getCharacterSet()))
			.append("</character_set>\n");
	xml.append("<collation>")
			.append(escape(tableProperties.getCollation()))
			.append("</collation>\n");
	xml.append("<storage_engine>")
			.append(escape(tableProperties.getStorageEngine()))
			.append("</storage_engine>\n");
	xml.append("<primary_key_length_of_text>")
			.append(tableProperties.getPrimaryKeyLengthOfText())
			.append("</primary_key_length_of_text>\n");

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

示例4: loadTableProperties

import org.insightech.er.db.impl.mysql.MySQLTableProperties; //导入依赖的package包/类
private void loadTableProperties(TableProperties tableProperties,
		Element parent, LoadContext context) {
	Element element = this.getElement(parent, "table_properties");

	String tablespaceId = this.getStringValue(element, "tablespace_id");
	Tablespace tablespace = context.tablespaceMap.get(tablespaceId);
	tableProperties.setTableSpace(tablespace);

	tableProperties.setSchema(this.getStringValue(element, "schema"));

	if (tableProperties instanceof MySQLTableProperties) {
		this.loadTablePropertiesMySQL(
				(MySQLTableProperties) tableProperties, element);

	} else if (tableProperties instanceof PostgresTableProperties) {
		this.loadTablePropertiesPostgres(
				(PostgresTableProperties) tableProperties, element);

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

示例5: loadTablePropertiesMySQL

import org.insightech.er.db.impl.mysql.MySQLTableProperties; //导入依赖的package包/类
private void loadTablePropertiesMySQL(final MySQLTableProperties tableProperties, final Element element) {

        tableProperties.setCharacterSet(getStringValue(element, "character_set"));
        tableProperties.setCollation(getStringValue(element, "collation"));
        tableProperties.setStorageEngine(getStringValue(element, "storage_engine"));
        tableProperties.setPrimaryKeyLengthOfText(getIntegerValue(element, "primary_key_length_of_text"));
    }
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:8,代码来源:XMLLoader.java

示例6: loadTablePropertiesMySQL

import org.insightech.er.db.impl.mysql.MySQLTableProperties; //导入依赖的package包/类
private void loadTablePropertiesMySQL(MySQLTableProperties tableProperties,
		Element element) {

	tableProperties.setCharacterSet(this.getStringValue(element,
			"character_set"));
	tableProperties.setCollation(this.getStringValue(element, "collation"));
	tableProperties.setStorageEngine(this.getStringValue(element,
			"storage_engine"));
	tableProperties.setPrimaryKeyLengthOfText(this.getIntegerValue(element,
			"primary_key_length_of_text"));
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:12,代码来源:XMLLoader.java


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