Class HybrisOracleBuilder

java.lang.Object
org.apache.ddlutils.platform.SqlBuilder
org.apache.ddlutils.platform.oracle.Oracle8Builder
org.apache.ddlutils.platform.oracle.Oracle10Builder
de.hybris.bootstrap.ddl.sql.HybrisOracleBuilder

public class HybrisOracleBuilder extends org.apache.ddlutils.platform.oracle.Oracle10Builder
  • Field Summary

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

    _log, SIZE_PLACEHOLDER
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    addHexToRawFunction(String funcName, String funcValue)
     
    protected void
    createAutoIncrementTrigger(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Column column)
     
    createIndexName(org.apache.ddlutils.model.Index index)
     
    void
    createTable(org.apache.ddlutils.model.Database database, org.apache.ddlutils.model.Table table, Map parameters)
     
    protected void
    dropAutoIncrementSequence(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Column column)
     
    protected void
    dropAutoIncrementTrigger(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Column column)
     
    void
    dropTable(org.apache.ddlutils.model.Table table)
     
    getColumnName(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.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)
     
    getUpdateSql(org.apache.ddlutils.model.Table table, Map columnValues, boolean genPlaceholders)
     
    protected String
    getValueAsString(org.apache.ddlutils.model.Column column, Object value)
     
    protected void
     
    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)
     
    void
     
    protected void
    writeExternalIndexCreateStmt(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Index index)
     
    void
    writeExternalIndexDropStmt(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Index index)
     
    protected void
    writeTableCreationStmt(org.apache.ddlutils.model.Database database, org.apache.ddlutils.model.Table table, Map parameters)
     

    Methods inherited from class org.apache.ddlutils.platform.oracle.Oracle8Builder

    createAutoIncrementSequence, createTemporaryTable, dropExternalForeignKeys, dropTemporaryTable, getNativeDefaultValue, getSelectLastIdentityValues, printDefaultValue, processChange, processChange, processChange, writeColumnAutoIncrementStmt

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

    addEscapedCharSequence, alterDatabase, applyForSelectedChanges, areEqual, columnsDiffer, createExternalForeignKeys, createExternalForeignKeys, createTable, createTables, createTables, createTables, createUniqueIdentifier, dropTable, dropTables, escapeStringValue, findCorrespondingForeignKey, getBareNativeType, getConstraintName, getDefaultValueHelper, getDeleteSql, getDelimitedIdentifier, getForeignKeyName, getIndent, getMaxColumnNameLength, getMaxConstraintNameLength, getMaxForeignKeyNameLength, getMaxTableNameLength, getNativeType, getPlatform, getPlatformInfo, getRealTargetTableFor, getTemporaryTableFor, getValueDateFormat, getValueLocale, getValueNumberFormat, getValueTimeFormat, getWriter, isValidDefaultValue, print, printComment, 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

    Methods inherited from class java.lang.Object

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

    • HybrisOracleBuilder

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

    • addHexToRawFunction

      public void addHexToRawFunction(String funcName, String funcValue)
    • dropTable

      public void dropTable(org.apache.ddlutils.model.Table table) throws IOException
      Overrides:
      dropTable in class org.apache.ddlutils.platform.oracle.Oracle10Builder
      Throws:
      IOException
    • dropAutoIncrementTrigger

      protected void dropAutoIncrementTrigger(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Column column) throws IOException
      Overrides:
      dropAutoIncrementTrigger in class org.apache.ddlutils.platform.oracle.Oracle8Builder
      Throws:
      IOException
    • dropAutoIncrementSequence

      protected void dropAutoIncrementSequence(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Column column) throws IOException
      Overrides:
      dropAutoIncrementSequence in class org.apache.ddlutils.platform.oracle.Oracle8Builder
      Throws:
      IOException
    • getTableName

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

      public void setIndexNames(Set<String> indexes)
    • getIndexName

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

      public String createIndexName(org.apache.ddlutils.model.Index index)
    • 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.oracle.Oracle8Builder
      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
    • getValueAsString

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

      protected void printEndOfStatement() throws IOException
      Overrides:
      printEndOfStatement in class org.apache.ddlutils.platform.SqlBuilder
      Throws:
      IOException
    • createTable

      public void createTable(org.apache.ddlutils.model.Database database, org.apache.ddlutils.model.Table table, Map parameters) throws IOException
      Overrides:
      createTable in class org.apache.ddlutils.platform.oracle.Oracle8Builder
      Throws:
      IOException
    • createAutoIncrementTrigger

      protected void createAutoIncrementTrigger(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Column column) throws IOException
      Overrides:
      createAutoIncrementTrigger in class org.apache.ddlutils.platform.oracle.Oracle8Builder
      Throws:
      IOException
    • writeTableCreationStmt

      protected void writeTableCreationStmt(org.apache.ddlutils.model.Database database, org.apache.ddlutils.model.Table table, Map parameters) throws IOException
      Overrides:
      writeTableCreationStmt in class org.apache.ddlutils.platform.SqlBuilder
      Throws:
      IOException
    • 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
    • writeExternalIndexDropStmt

      public void writeExternalIndexDropStmt(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Index index) throws IOException
      Overrides:
      writeExternalIndexDropStmt in class org.apache.ddlutils.platform.oracle.Oracle8Builder
      Throws:
      IOException
    • getUpdateSql

      public String getUpdateSql(org.apache.ddlutils.model.Table table, Map columnValues, boolean genPlaceholders)
      Overrides:
      getUpdateSql in class org.apache.ddlutils.platform.SqlBuilder
    • getInsertSql

      public String getInsertSql(org.apache.ddlutils.model.Table table, Map columnValues, boolean genPlaceholders)
      Overrides:
      getInsertSql in class org.apache.ddlutils.platform.SqlBuilder
    • 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()