本文整理汇总了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();
}
示例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);
}
}
示例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();
}
示例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);
}
}
示例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"));
}
示例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"));
}