Class 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
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void addHexToRawFunction​(java.lang.String funcName, java.lang.String funcValue)  
      protected void createAutoIncrementTrigger​(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Column column)  
      void createTable​(org.apache.ddlutils.model.Database database, org.apache.ddlutils.model.Table table, java.util.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)  
      java.lang.String getColumnName​(org.apache.ddlutils.model.Column column)  
      java.lang.String getIndexName​(org.apache.ddlutils.model.Index index)  
      java.lang.String getInsertSql​(org.apache.ddlutils.model.Table table, java.util.Map columnValues, boolean genPlaceholders)  
      org.apache.ddlutils.Platform getPlatform()  
      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.
      java.lang.String getTableName​(org.apache.ddlutils.model.Table table)  
      java.lang.String getUpdateSql​(org.apache.ddlutils.model.Table table, java.util.Map columnValues, boolean genPlaceholders)  
      protected java.lang.String getValueAsString​(org.apache.ddlutils.model.Column column, java.lang.Object value)  
      protected void printEndOfStatement()  
      protected 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)  
      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)  
      protected void writeExternalIndexCreateStmt​(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, java.util.Map parameters)  
      • Methods inherited from class org.apache.ddlutils.platform.oracle.Oracle8Builder

        createAutoIncrementSequence, createTemporaryTable, dropExternalForeignKeys, dropTemporaryTable, getNativeDefaultValue, getSelectLastIdentityValues, printDefaultValue, processChange, processChange, processChange, writeColumnAutoIncrementStmt, writeExternalIndexDropStmt
      • 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 Detail

      • HybrisOracleBuilder

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

      • addHexToRawFunction

        public void addHexToRawFunction​(java.lang.String funcName,
                                        java.lang.String funcValue)
      • dropTable

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

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

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

        public java.lang.String getTableName​(org.apache.ddlutils.model.Table table)
        Overrides:
        getTableName in class org.apache.ddlutils.platform.SqlBuilder
      • getIndexName

        public java.lang.String getIndexName​(org.apache.ddlutils.model.Index index)
        Overrides:
        getIndexName in class org.apache.ddlutils.platform.SqlBuilder
      • getColumnName

        public java.lang.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,
                                                 java.util.Map parameters,
                                                 java.util.List changes)
                                          throws java.io.IOException
        Overrides:
        processTableStructureChanges in class org.apache.ddlutils.platform.oracle.Oracle8Builder
        Throws:
        java.io.IOException
      • processTableStructureChanges

        protected 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:
        processTableStructureChanges in class org.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:
        getValueAsString in class org.apache.ddlutils.platform.SqlBuilder
      • printEndOfStatement

        protected void printEndOfStatement()
                                    throws java.io.IOException
        Overrides:
        printEndOfStatement in class org.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:
        createTable in class org.apache.ddlutils.platform.oracle.Oracle8Builder
        Throws:
        java.io.IOException
      • createAutoIncrementTrigger

        protected void createAutoIncrementTrigger​(org.apache.ddlutils.model.Table table,
                                                  org.apache.ddlutils.model.Column column)
                                           throws java.io.IOException
        Overrides:
        createAutoIncrementTrigger in class org.apache.ddlutils.platform.oracle.Oracle8Builder
        Throws:
        java.io.IOException
      • 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:
        writeTableCreationStmt in class org.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:
        writeExternalIndexCreateStmt in class org.apache.ddlutils.platform.SqlBuilder
        Throws:
        java.io.IOException
      • getUpdateSql

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

        public java.lang.String getInsertSql​(org.apache.ddlutils.model.Table table,
                                             java.util.Map columnValues,
                                             boolean genPlaceholders)
        Overrides:
        getInsertSql in class org.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:
        getSqlType in class org.apache.ddlutils.platform.SqlBuilder
        Parameters:
        column - The column
        Returns:
        The full SQL type string including the size
      • getPlatform

        public abstract org.apache.ddlutils.Platform getPlatform()