Class HybrisMSSqlBuilder

java.lang.Object
org.apache.ddlutils.platform.SqlBuilder
org.apache.ddlutils.platform.mssql.MSSqlBuilder
de.hybris.bootstrap.ddl.sql.HybrisMSSqlBuilder

public class HybrisMSSqlBuilder extends org.apache.ddlutils.platform.mssql.MSSqlBuilder
  • Field Summary

    Fields inherited from class org.apache.ddlutils.platform.SqlBuilder

    _log, SIZE_PLACEHOLDER
  • Constructor Summary

    Constructors
    Constructor
    Description
    HybrisMSSqlBuilder(org.apache.ddlutils.Platform platform, DatabaseSettings databaseSettings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    dropTable(org.apache.ddlutils.model.Table table)
    getColumnName(org.apache.ddlutils.model.Column column)
     
    getIndexName(org.apache.ddlutils.model.Index index)
     
    org.apache.ddlutils.Platform
     
    protected String
    getSqlType(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 String
    getValueAsString(org.apache.ddlutils.model.Column column, Object value)
     
    protected void
    processTableStructureChanges(org.apache.ddlutils.model.Database currentModel, org.apache.ddlutils.model.Database desiredModel, String tableName, Map parameters, List changes)
     
    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)
     
    protected void
    writeExternalIndexCreateStmt(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Index index)
     

    Methods inherited from class org.apache.ddlutils.platform.mssql.MSSqlBuilder

    createTable, dropExternalForeignKeys, getDeleteSql, getDisableIdentityOverrideSql, getEnableIdentityOverrideSql, getInsertSql, getNativeDefaultValue, getSelectLastIdentityValues, getUpdateSql, getValueDateFormat, getValueTimeFormat, processChange, processChange, processChange, processChanges, processColumnChange, writeColumnAutoIncrementStmt, writeCopyDataStatement, writeExternalForeignKeyDropStmt, writeExternalIndexDropStmt

    Methods inherited from class org.apache.ddlutils.platform.SqlBuilder

    addEscapedCharSequence, alterDatabase, applyForSelectedChanges, areEqual, columnsDiffer, createExternalForeignKeys, createExternalForeignKeys, createTable, createTables, createTables, createTables, createTemporaryTable, createUniqueIdentifier, dropTable, dropTables, dropTemporaryTable, escapeStringValue, findCorrespondingForeignKey, getBareNativeType, getConstraintName, getDefaultValueHelper, getDelimitedIdentifier, getForeignKeyName, getIndent, getMaxColumnNameLength, getMaxConstraintNameLength, getMaxForeignKeyNameLength, getMaxTableNameLength, getNativeType, getPlatform, getPlatformInfo, getRealTargetTableFor, getTemporaryTableFor, getValueLocale, getValueNumberFormat, getWriter, isValidDefaultValue, print, printComment, printDefaultValue, printEndOfStatement, printIdentifier, printIndent, println, println, printlnIdentifier, printStartOfEmbeddedStatement, processChange, processChange, processChange, processChange, processChange, processChange, processChange, processChange, processTableStructureChanges, setIndent, setValueDateFormat, setValueLocale, setValueNumberFormat, setValueTimeFormat, setWriter, shortenName, shouldGeneratePrimaryKeys, writeCastExpression, writeColumn, writeColumnDefaultValue, writeColumnDefaultValueStmt, writeColumnNotNullableStmt, writeColumnNullableStmt, writeColumns, writeEmbeddedForeignKeysStmt, writeEmbeddedIndexCreateStmt, writeEmbeddedIndicesStmt, writeEmbeddedPrimaryKeysStmt, writeExternalForeignKeyCreateStmt, writeExternalIndicesCreateStmt, writeExternalPrimaryKeysCreateStmt, writeForeignReferences, writeLocalReferences, writePrimaryKeyStmt, writeTableAlterStmt, writeTableComment, writeTableCreationStmt, writeTableCreationStmtEnding

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HybrisMSSqlBuilder

      public HybrisMSSqlBuilder(org.apache.ddlutils.Platform platform, DatabaseSettings databaseSettings)
  • Method Details

    • dropTable

      public void dropTable(org.apache.ddlutils.model.Table table) throws IOException
      Overrides:
      dropTable in class org.apache.ddlutils.platform.mssql.MSSqlBuilder
      Throws:
      IOException
    • getColumnName

      public String getColumnName(org.apache.ddlutils.model.Column column)
      Overrides:
      getColumnName in class org.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:
      processTableStructureChanges in class org.apache.ddlutils.platform.mssql.MSSqlBuilder
      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:
      processTableStructureChanges in class org.apache.ddlutils.platform.SqlBuilder
      Throws:
      IOException
    • getIndexName

      public String getIndexName(org.apache.ddlutils.model.Index index)
      Overrides:
      getIndexName in class org.apache.ddlutils.platform.SqlBuilder
    • getTableName

      public String getTableName(org.apache.ddlutils.model.Table table)
      Overrides:
      getTableName in class org.apache.ddlutils.platform.SqlBuilder
    • getValueAsString

      protected String getValueAsString(org.apache.ddlutils.model.Column column, Object value)
      Overrides:
      getValueAsString in class org.apache.ddlutils.platform.mssql.MSSqlBuilder
    • writeExternalIndexCreateStmt

      protected void writeExternalIndexCreateStmt(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Index index) throws IOException
      Overrides:
      writeExternalIndexCreateStmt in class org.apache.ddlutils.platform.SqlBuilder
      Throws:
      IOException
    • getSqlType

      protected String getSqlType(org.apache.ddlutils.model.Column column)
      Returns the full SQL type specification (including size and precision/scale) for the given column.
      Overrides:
      getSqlType in class org.apache.ddlutils.platform.SqlBuilder
      Parameters:
      column - The column
      Returns:
      The full SQL type string including the size
    • getPlatform

      org.apache.ddlutils.Platform getPlatform()