Class HybrisPostgreSqlBuilder

java.lang.Object
org.apache.ddlutils.platform.SqlBuilder
org.apache.ddlutils.platform.postgresql.PostgreSqlBuilder
de.hybris.bootstrap.ddl.sql.HybrisPostgreSqlBuilder

public class HybrisPostgreSqlBuilder extends org.apache.ddlutils.platform.postgresql.PostgreSqlBuilder
  • Field Summary

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

    _log, SIZE_PLACEHOLDER
  • Constructor Summary

    Constructors
    Constructor
    Description
    HybrisPostgreSqlBuilder(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
    processChange(org.apache.ddlutils.model.Database currentModel, org.apache.ddlutils.model.Database desiredModel, org.apache.ddlutils.alteration.AddColumnChange change)
    Processes the addition of a column to a table.
    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)

    Methods inherited from class org.apache.ddlutils.platform.postgresql.PostgreSqlBuilder

    createTable, getSelectLastIdentityValues, processChange, writeColumnAutoIncrementStmt, writeExternalIndexDropStmt

    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, getInsertSql, 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, shouldGeneratePrimaryKeys, writeCastExpression, writeColumn, writeColumnDefaultValue, writeColumnDefaultValueStmt, writeColumnNotNullableStmt, writeColumnNullableStmt, writeColumns, writeCopyDataStatement, writeEmbeddedForeignKeysStmt, writeEmbeddedIndexCreateStmt, writeEmbeddedIndicesStmt, writeEmbeddedPrimaryKeysStmt, writeExternalForeignKeyCreateStmt, writeExternalForeignKeyDropStmt, writeExternalIndexCreateStmt, 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

    • HybrisPostgreSqlBuilder

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

    • getColumnName

      public String getColumnName(org.apache.ddlutils.model.Column column)
      Overrides:
      getColumnName 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
    • getIndexName

      public String getIndexName(org.apache.ddlutils.model.Index index)
      Overrides:
      getIndexName 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.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
    • 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.postgresql.PostgreSqlBuilder
      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
    • processChange

      protected void processChange(org.apache.ddlutils.model.Database currentModel, org.apache.ddlutils.model.Database desiredModel, org.apache.ddlutils.alteration.AddColumnChange change) throws IOException
      Processes the addition of a column to a table.
      Overrides:
      processChange in class org.apache.ddlutils.platform.postgresql.PostgreSqlBuilder
      Parameters:
      currentModel - The current database schema
      desiredModel - The desired database schema
      change - The change object
      Throws:
      IOException
    • dropTable

      public void dropTable(org.apache.ddlutils.model.Table table) throws IOException
      Overrides:
      dropTable in class org.apache.ddlutils.platform.postgresql.PostgreSqlBuilder
      Throws:
      IOException
    • getPlatform

      org.apache.ddlutils.Platform getPlatform()