Class GenericJdbcDdlBuilder

java.lang.Object
org.jumpmind.db.platform.AbstractDdlBuilder
org.jumpmind.db.platform.generic.GenericJdbcDdlBuilder
All Implemented Interfaces:
IDdlBuilder

public class GenericJdbcDdlBuilder extends AbstractDdlBuilder
  • Constructor Details

  • Method Details

    • writeColumnAutoIncrementStmt

      protected void writeColumnAutoIncrementStmt(Table table, Column column, StringBuilder ddl)
      Description copied from class: AbstractDdlBuilder
      Prints that the column is an auto increment column.
      Overrides:
      writeColumnAutoIncrementStmt in class AbstractDdlBuilder
    • setNativeMapping

      protected final boolean setNativeMapping(int targetJdbcType, DatabaseMetaData meta, int acceptableType) throws SQLException
      Throws:
      SQLException
    • processTableStructureChanges

      protected void processTableStructureChanges(Database currentModel, Database desiredModel, Table sourceTable, Table targetTable, List<TableChange> changes, StringBuilder ddl)
      Description copied from class: AbstractDdlBuilder
      Allows database-specific implementations to handle changes in a database specific manner. Any handled change should be applied to the given current model (which is a copy of the real original model) and be removed from the list of changes.
      In the default implementation, all AddPrimaryKeyChange changes are applied via an ALTER TABLE ADD CONSTRAINT statement.
      Overrides:
      processTableStructureChanges in class AbstractDdlBuilder
      Parameters:
      currentModel - The current database schema
      desiredModel - The desired database schema
      sourceTable - The original table
      targetTable - The desired table
      changes - The change objects for the target table