Package de.hybris.bootstrap.ddl.sql
Class HybrisMySqlBuilder
java.lang.Object
org.apache.ddlutils.platform.SqlBuilder
org.apache.ddlutils.platform.mysql.MySqlBuilder
de.hybris.bootstrap.ddl.sql.HybrisMySqlBuilder
public class HybrisMySqlBuilder
extends org.apache.ddlutils.platform.mysql.MySqlBuilder
-
Field Summary
Fields inherited from class org.apache.ddlutils.platform.SqlBuilder
_log, SIZE_PLACEHOLDER -
Constructor Summary
ConstructorsConstructorDescriptionHybrisMySqlBuilder(org.apache.ddlutils.Platform platform, DatabaseSettings databaseSettings) -
Method Summary
Modifier and TypeMethodDescriptiongetColumnName(org.apache.ddlutils.model.Column column) getIndexName(org.apache.ddlutils.model.Index index) getInsertSql(org.apache.ddlutils.model.Table table, Map columnValues, boolean genPlaceholders) org.apache.ddlutils.Platformprotected StringgetSqlType(org.apache.ddlutils.model.Column column) Returns the full SQL type specification (including size and precision/scale) for the given column.getTableName(org.apache.ddlutils.model.Table table) protected StringgetValueAsString(org.apache.ddlutils.model.Column column, Object value) protected voidprocessTableStructureChanges(org.apache.ddlutils.model.Database currentModel, org.apache.ddlutils.model.Database desiredModel, String tableName, Map parameters, List changes) voidprocessTableStructureChanges(org.apache.ddlutils.model.Database currentModel, org.apache.ddlutils.model.Database desiredModel, org.apache.ddlutils.model.Table sourceTable, org.apache.ddlutils.model.Table targetTable, Map parameters, List changes) protected voidwriteExternalIndexCreateStmt(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Index index) Writes the given index of the table.protected voidwriteTableCreationStmtEnding(org.apache.ddlutils.model.Table table, Map parameters) Methods inherited from class org.apache.ddlutils.platform.mysql.MySqlBuilder
dropTable, getSelectLastIdentityValues, processChange, processChange, processChange, processChange, processColumnChange, shouldGeneratePrimaryKeys, writeColumnAutoIncrementStmt, writeExternalForeignKeyDropStmtMethods inherited from class org.apache.ddlutils.platform.SqlBuilder
addEscapedCharSequence, alterDatabase, applyForSelectedChanges, areEqual, columnsDiffer, createExternalForeignKeys, createExternalForeignKeys, createTable, createTable, createTables, createTables, createTables, createTemporaryTable, createUniqueIdentifier, dropExternalForeignKeys, dropTable, dropTables, dropTemporaryTable, escapeStringValue, findCorrespondingForeignKey, getBareNativeType, getConstraintName, getDefaultValueHelper, getDeleteSql, getDelimitedIdentifier, getForeignKeyName, getIndent, getMaxColumnNameLength, getMaxConstraintNameLength, getMaxForeignKeyNameLength, getMaxTableNameLength, getNativeDefaultValue, getNativeType, getPlatform, getPlatformInfo, getRealTargetTableFor, getTemporaryTableFor, getUpdateSql, getValueDateFormat, getValueLocale, getValueNumberFormat, getValueTimeFormat, getWriter, isValidDefaultValue, print, printComment, printDefaultValue, printEndOfStatement, printIdentifier, printIndent, println, println, printlnIdentifier, printStartOfEmbeddedStatement, processChange, processChange, processChange, processChange, processChange, processChange, processChange, processChange, processChanges, processTableStructureChanges, setIndent, setValueDateFormat, setValueLocale, setValueNumberFormat, setValueTimeFormat, setWriter, shortenName, writeCastExpression, writeColumn, writeColumnDefaultValue, writeColumnDefaultValueStmt, writeColumnNotNullableStmt, writeColumnNullableStmt, writeColumns, writeCopyDataStatement, writeEmbeddedForeignKeysStmt, writeEmbeddedIndexCreateStmt, writeEmbeddedIndicesStmt, writeEmbeddedPrimaryKeysStmt, writeExternalForeignKeyCreateStmt, writeExternalIndexDropStmt, writeExternalIndicesCreateStmt, writeExternalPrimaryKeysCreateStmt, writeForeignReferences, writeLocalReferences, writePrimaryKeyStmt, writeTableAlterStmt, writeTableComment, writeTableCreationStmt
-
Constructor Details
-
HybrisMySqlBuilder
-
-
Method Details
-
writeTableCreationStmtEnding
protected void writeTableCreationStmtEnding(org.apache.ddlutils.model.Table table, Map parameters) throws IOException - Overrides:
writeTableCreationStmtEndingin classorg.apache.ddlutils.platform.mysql.MySqlBuilder- Throws:
IOException
-
getTableName
- Overrides:
getTableNamein classorg.apache.ddlutils.platform.SqlBuilder
-
getIndexName
- Overrides:
getIndexNamein classorg.apache.ddlutils.platform.SqlBuilder
-
getColumnName
- Overrides:
getColumnNamein classorg.apache.ddlutils.platform.SqlBuilder
-
processTableStructureChanges
public void processTableStructureChanges(org.apache.ddlutils.model.Database currentModel, org.apache.ddlutils.model.Database desiredModel, org.apache.ddlutils.model.Table sourceTable, org.apache.ddlutils.model.Table targetTable, Map parameters, List changes) throws IOException - Overrides:
processTableStructureChangesin classorg.apache.ddlutils.platform.mysql.MySqlBuilder- Throws:
IOException
-
processTableStructureChanges
protected void processTableStructureChanges(org.apache.ddlutils.model.Database currentModel, org.apache.ddlutils.model.Database desiredModel, String tableName, Map parameters, List changes) throws IOException - Overrides:
processTableStructureChangesin classorg.apache.ddlutils.platform.SqlBuilder- Throws:
IOException
-
getInsertSql
public String getInsertSql(org.apache.ddlutils.model.Table table, Map columnValues, boolean genPlaceholders) - Overrides:
getInsertSqlin classorg.apache.ddlutils.platform.SqlBuilder
-
getValueAsString
- Overrides:
getValueAsStringin classorg.apache.ddlutils.platform.SqlBuilder
-
writeExternalIndexCreateStmt
protected void writeExternalIndexCreateStmt(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Index index) throws IOException Writes the given index of the table. Overriding to specify the size of the column to 100. My sql expects a key length while creating index for blob columns.- Overrides:
writeExternalIndexCreateStmtin classorg.apache.ddlutils.platform.SqlBuilder- Parameters:
table- The tableindex- The index- Throws:
IOException
-
getSqlType
Returns the full SQL type specification (including size and precision/scale) for the given column.- Overrides:
getSqlTypein classorg.apache.ddlutils.platform.SqlBuilder- Parameters:
column- The column- Returns:
- The full SQL type string including the size
-
getPlatform
org.apache.ddlutils.Platform getPlatform()
-