Class AddTableChange

java.lang.Object
org.jumpmind.db.alter.AddTableChange
All Implemented Interfaces:
IModelChange

public class AddTableChange extends Object implements IModelChange
Represents the addition of a table to a model. Note that this change does not include foreign keys originating from the new table.
  • Constructor Details

    • AddTableChange

      public AddTableChange(Table newTable)
      Creates a new change object.
      Parameters:
      newTable - The new table
  • Method Details

    • getNewTable

      public Table getNewTable()
      Returns the new table. Note that only the columns and table-level constraints are to be used. Any model-level constraints (e.g. foreign keys) shall be ignored as there are different change objects for them.
      Returns:
      The new table
    • apply

      public void apply(Database database, boolean caseSensitive)
      Applies this change to the given database.
      Specified by:
      apply in interface IModelChange
      Parameters:
      database - The database
      caseSensitive - Whether the case of names matters