java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.AddTableChange
All Implemented Interfaces:
ModelChange

public class AddTableChange extends Object implements ModelChange
Represents the addition of a table to a model. Note that this change does not include foreign keys originating from the new table.
Version:
$Revision: $
  • 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 ModelChange
      Parameters:
      database - The database
      caseSensitive - Whether the case of names matters