當前位置: 首頁>>代碼示例>>Java>>正文


Java MySQLTablespaceProperties類代碼示例

本文整理匯總了Java中org.insightech.er.db.impl.mysql.tablespace.MySQLTablespaceProperties的典型用法代碼示例。如果您正苦於以下問題:Java MySQLTablespaceProperties類的具體用法?Java MySQLTablespaceProperties怎麽用?Java MySQLTablespaceProperties使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


MySQLTablespaceProperties類屬於org.insightech.er.db.impl.mysql.tablespace包,在下文中一共展示了MySQLTablespaceProperties類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createXML

import org.insightech.er.db.impl.mysql.tablespace.MySQLTablespaceProperties; //導入依賴的package包/類
private String createXML(MySQLTablespaceProperties tablespace) {
	StringBuilder xml = new StringBuilder();

	xml.append("<data_file>").append(escape(tablespace.getDataFile()))
			.append("</data_file>\n");
	xml.append("<engine>").append(escape(tablespace.getEngine()))
			.append("</engine>\n");
	xml.append("<extent_size>").append(escape(tablespace.getExtentSize()))
			.append("</extent_size>\n");
	xml.append("<initial_size>")
			.append(escape(tablespace.getInitialSize()))
			.append("</initial_size>\n");
	xml.append("<log_file_group>")
			.append(escape(tablespace.getLogFileGroup()))
			.append("</log_file_group>\n");

	return xml.toString();
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:19,代碼來源:PersistentXmlImpl.java

示例2: getDDL

import org.insightech.er.db.impl.mysql.tablespace.MySQLTablespaceProperties; //導入依賴的package包/類
@Override
protected String getDDL(final Tablespace tablespace) {
    final MySQLTablespaceProperties tablespaceProperties = (MySQLTablespaceProperties) tablespace.getProperties(environment, getDiagram());

    final StringBuilder ddl = new StringBuilder();

    ddl.append("CREATE TABLESPACE ");
    ddl.append(filterName(tablespace.getName()));
    ddl.append(LF());
    ddl.append(" ADD DATAFILE '");
    ddl.append(tablespaceProperties.getDataFile());
    ddl.append("'" + LF());
    ddl.append(" USE LOGFILE GROUP ");
    ddl.append(tablespaceProperties.getLogFileGroup());
    ddl.append(LF());

    if (!Check.isEmpty(tablespaceProperties.getExtentSize())) {
        ddl.append(" EXTENT_SIZE ");
        ddl.append(tablespaceProperties.getExtentSize());
        ddl.append(LF());
    }

    ddl.append(" INITIAL_SIZE ");
    ddl.append(tablespaceProperties.getInitialSize());
    ddl.append(LF());
    ddl.append(" ENGINE ");
    ddl.append(tablespaceProperties.getEngine());
    ddl.append(LF());

    if (semicolon) {
        ddl.append(";");
    }

    return ddl.toString();
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:36,代碼來源:MySQLDDLCreator.java

示例3: checkTablespaceProperties

import org.insightech.er.db.impl.mysql.tablespace.MySQLTablespaceProperties; //導入依賴的package包/類
@Override
public TablespaceProperties checkTablespaceProperties(final TablespaceProperties tablespaceProperties) {

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

    return tablespaceProperties;
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:10,代碼來源:MySQLDBManager.java

示例4: createXML

import org.insightech.er.db.impl.mysql.tablespace.MySQLTablespaceProperties; //導入依賴的package包/類
private String createXML(final Tablespace tablespace, final PersistentContext context) {
    final 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 (final Map.Entry<Environment, TablespaceProperties> entry : tablespace.getPropertiesMap().entrySet()) {
        final Environment environment = entry.getKey();
        final 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:roundrop,項目名稱:ermasterr,代碼行數:39,代碼來源:PersistentXmlImpl.java

示例5: loadTablespacePropertiesMySQL

import org.insightech.er.db.impl.mysql.tablespace.MySQLTablespaceProperties; //導入依賴的package包/類
private TablespaceProperties loadTablespacePropertiesMySQL(final Element element) {
    final MySQLTablespaceProperties properties = new MySQLTablespaceProperties();

    properties.setDataFile(getStringValue(element, "data_file"));
    properties.setEngine(getStringValue(element, "engine"));
    properties.setExtentSize(getStringValue(element, "extent_size"));
    properties.setInitialSize(getStringValue(element, "initial_size"));
    properties.setLogFileGroup(getStringValue(element, "log_file_group"));

    return properties;
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:12,代碼來源:XMLLoader.java

示例6: getDDL

import org.insightech.er.db.impl.mysql.tablespace.MySQLTablespaceProperties; //導入依賴的package包/類
@Override
protected String getDDL(Tablespace tablespace) {
	MySQLTablespaceProperties tablespaceProperties = (MySQLTablespaceProperties) tablespace
			.getProperties(this.environment, this.getDiagram());

	StringBuilder ddl = new StringBuilder();

	ddl.append("CREATE TABLESPACE ");
	ddl.append(filterName(tablespace.getName()));
	ddl.append(LF());
	ddl.append(" ADD DATAFILE '");
	ddl.append(tablespaceProperties.getDataFile());
	ddl.append("'" + LF());
	ddl.append(" USE LOGFILE GROUP ");
	ddl.append(tablespaceProperties.getLogFileGroup());
	ddl.append(LF());

	if (!Check.isEmpty(tablespaceProperties.getExtentSize())) {
		ddl.append(" EXTENT_SIZE ");
		ddl.append(tablespaceProperties.getExtentSize());
		ddl.append(LF());
	}

	ddl.append(" INITIAL_SIZE ");
	ddl.append(tablespaceProperties.getInitialSize());
	ddl.append(LF());
	ddl.append(" ENGINE ");
	ddl.append(tablespaceProperties.getEngine());
	ddl.append(LF());

	if (this.semicolon) {
		ddl.append(";");
	}

	return ddl.toString();
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:37,代碼來源:MySQLDDLCreator.java

示例7: checkTablespaceProperties

import org.insightech.er.db.impl.mysql.tablespace.MySQLTablespaceProperties; //導入依賴的package包/類
public TablespaceProperties checkTablespaceProperties(
		TablespaceProperties tablespaceProperties) {

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

	return tablespaceProperties;
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:10,代碼來源:MySQLDBManager.java

示例8: loadTablespacePropertiesMySQL

import org.insightech.er.db.impl.mysql.tablespace.MySQLTablespaceProperties; //導入依賴的package包/類
private TablespaceProperties loadTablespacePropertiesMySQL(Element element) {
	MySQLTablespaceProperties properties = new MySQLTablespaceProperties();

	properties.setDataFile(this.getStringValue(element, "data_file"));
	properties.setEngine(this.getStringValue(element, "engine"));
	properties.setExtentSize(this.getStringValue(element, "extent_size"));
	properties.setInitialSize(this.getStringValue(element, "initial_size"));
	properties.setLogFileGroup(this.getStringValue(element,
			"log_file_group"));

	return properties;
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:13,代碼來源:XMLLoader.java

示例9: createTablespaceProperties

import org.insightech.er.db.impl.mysql.tablespace.MySQLTablespaceProperties; //導入依賴的package包/類
@Override
public TablespaceProperties createTablespaceProperties() {
    return new MySQLTablespaceProperties();
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:5,代碼來源:MySQLDBManager.java

示例10: createTablespaceProperties

import org.insightech.er.db.impl.mysql.tablespace.MySQLTablespaceProperties; //導入依賴的package包/類
public TablespaceProperties createTablespaceProperties() {
	return new MySQLTablespaceProperties();
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:4,代碼來源:MySQLDBManager.java


注:本文中的org.insightech.er.db.impl.mysql.tablespace.MySQLTablespaceProperties類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。