本文整理匯總了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"));
}