當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。