Package de.hybris.bootstrap.ddl.sql
Class HanaSqlBuilder
- java.lang.Object
-
- org.apache.ddlutils.platform.SqlBuilder
-
- de.hybris.bootstrap.ddl.sql.HanaSqlBuilder
-
public class HanaSqlBuilder extends org.apache.ddlutils.platform.SqlBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringHANADB_STORAGE_COLUMNBASEDstatic java.lang.StringHANADB_STORAGE_OPTIMIZED_INDEXES
-
Constructor Summary
Constructors Constructor Description HanaSqlBuilder(org.apache.ddlutils.Platform platform, DatabaseSettings databaseSettings, java.lang.Iterable<ColumnNativeTypeDecorator> columnNativeTypeDecorators)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcreateTable(org.apache.ddlutils.model.Database database, org.apache.ddlutils.model.Table table, java.util.Map parameters)voiddropTable(org.apache.ddlutils.model.Table table)java.lang.StringgetColumnName(org.apache.ddlutils.model.Column column)java.lang.StringgetIndexName(org.apache.ddlutils.model.Index index)java.lang.StringgetInsertSql(org.apache.ddlutils.model.Table table, java.util.Map columnValues, boolean genPlaceholders)org.apache.ddlutils.PlatformgetPlatform()protected java.lang.StringgetSqlType(org.apache.ddlutils.model.Column column)Returns the full SQL type specification (including size and precision/scale) for the given column.java.lang.StringgetTableName(org.apache.ddlutils.model.Table table)protected java.lang.StringgetValueAsString(org.apache.ddlutils.model.Column column, java.lang.Object value)voidprocessTableStructureChanges(org.apache.ddlutils.model.Database currentModel, org.apache.ddlutils.model.Database desiredModel, java.lang.String tableName, java.util.Map parameters, java.util.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, java.util.Map parameters, java.util.List changes)protected voidwriteColumnAutoIncrementStmt(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Column column)protected voidwriteExternalIndexCreateStmt(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Index index)voidwriteExternalIndexDropStmt(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Index index)protected voidwriteTableCreationStmt(org.apache.ddlutils.model.Database database, org.apache.ddlutils.model.Table table, java.util.Map parameters)-
Methods inherited from class org.apache.ddlutils.platform.SqlBuilder
addEscapedCharSequence, alterDatabase, applyForSelectedChanges, areEqual, columnsDiffer, createExternalForeignKeys, createExternalForeignKeys, 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, getSelectLastIdentityValues, 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, shouldGeneratePrimaryKeys, writeCastExpression, writeColumn, writeColumnDefaultValue, writeColumnDefaultValueStmt, writeColumnNotNullableStmt, writeColumnNullableStmt, writeColumns, writeCopyDataStatement, writeEmbeddedForeignKeysStmt, writeEmbeddedIndexCreateStmt, writeEmbeddedIndicesStmt, writeEmbeddedPrimaryKeysStmt, writeExternalForeignKeyCreateStmt, writeExternalForeignKeyDropStmt, writeExternalIndicesCreateStmt, writeExternalPrimaryKeysCreateStmt, writeForeignReferences, writeLocalReferences, writePrimaryKeyStmt, writeTableAlterStmt, writeTableComment, writeTableCreationStmtEnding
-
-
-
-
Field Detail
-
HANADB_STORAGE_COLUMNBASED
public static final java.lang.String HANADB_STORAGE_COLUMNBASED
- See Also:
- Constant Field Values
-
HANADB_STORAGE_OPTIMIZED_INDEXES
public static final java.lang.String HANADB_STORAGE_OPTIMIZED_INDEXES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HanaSqlBuilder
public HanaSqlBuilder(org.apache.ddlutils.Platform platform, DatabaseSettings databaseSettings, java.lang.Iterable<ColumnNativeTypeDecorator> columnNativeTypeDecorators)
-
-
Method Detail
-
dropTable
public void dropTable(org.apache.ddlutils.model.Table table) throws java.io.IOException- Overrides:
dropTablein classorg.apache.ddlutils.platform.SqlBuilder- Throws:
java.io.IOException
-
getTableName
public java.lang.String getTableName(org.apache.ddlutils.model.Table table)
- Overrides:
getTableNamein classorg.apache.ddlutils.platform.SqlBuilder
-
writeExternalIndexDropStmt
public void writeExternalIndexDropStmt(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Index index) throws java.io.IOException- Overrides:
writeExternalIndexDropStmtin classorg.apache.ddlutils.platform.SqlBuilder- Throws:
java.io.IOException
-
getIndexName
public java.lang.String getIndexName(org.apache.ddlutils.model.Index index)
- Overrides:
getIndexNamein classorg.apache.ddlutils.platform.SqlBuilder
-
writeTableCreationStmt
protected void writeTableCreationStmt(org.apache.ddlutils.model.Database database, org.apache.ddlutils.model.Table table, java.util.Map parameters) throws java.io.IOException- Overrides:
writeTableCreationStmtin classorg.apache.ddlutils.platform.SqlBuilder- Throws:
java.io.IOException
-
getValueAsString
protected java.lang.String getValueAsString(org.apache.ddlutils.model.Column column, java.lang.Object value)- Overrides:
getValueAsStringin classorg.apache.ddlutils.platform.SqlBuilder
-
getColumnName
public java.lang.String getColumnName(org.apache.ddlutils.model.Column column)
- Overrides:
getColumnNamein classorg.apache.ddlutils.platform.SqlBuilder
-
getInsertSql
public java.lang.String getInsertSql(org.apache.ddlutils.model.Table table, java.util.Map columnValues, boolean genPlaceholders)- Overrides:
getInsertSqlin classorg.apache.ddlutils.platform.SqlBuilder
-
getSqlType
protected java.lang.String getSqlType(org.apache.ddlutils.model.Column column)
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
-
processTableStructureChanges
public void processTableStructureChanges(org.apache.ddlutils.model.Database currentModel, org.apache.ddlutils.model.Database desiredModel, java.lang.String tableName, java.util.Map parameters, java.util.List changes) throws java.io.IOException- Overrides:
processTableStructureChangesin classorg.apache.ddlutils.platform.SqlBuilder- Throws:
java.io.IOException
-
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, java.util.Map parameters, java.util.List changes) throws java.io.IOException- Overrides:
processTableStructureChangesin classorg.apache.ddlutils.platform.SqlBuilder- Throws:
java.io.IOException
-
createTable
public void createTable(org.apache.ddlutils.model.Database database, org.apache.ddlutils.model.Table table, java.util.Map parameters) throws java.io.IOException- Overrides:
createTablein classorg.apache.ddlutils.platform.SqlBuilder- Throws:
java.io.IOException
-
writeExternalIndexCreateStmt
protected void writeExternalIndexCreateStmt(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Index index) throws java.io.IOException- Overrides:
writeExternalIndexCreateStmtin classorg.apache.ddlutils.platform.SqlBuilder- Throws:
java.io.IOException
-
writeColumnAutoIncrementStmt
protected void writeColumnAutoIncrementStmt(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Column column) throws java.io.IOException- Overrides:
writeColumnAutoIncrementStmtin classorg.apache.ddlutils.platform.SqlBuilder- Throws:
java.io.IOException
-
getPlatform
public abstract org.apache.ddlutils.Platform getPlatform()
-
-