java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.TableChangeImplBase
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.AddIndexChange
All Implemented Interfaces:
ModelChange, TableChange

public class AddIndexChange extends TableChangeImplBase
Represents the addition of an index to a table.
Version:
$Revision: $
  • Constructor Details

    • AddIndexChange

      public AddIndexChange(Table table, Index newIndex)
      Creates a new change object.
      Parameters:
      table - The table to add the index to
      newIndex - The new index
  • Method Details

    • getNewIndex

      public Index getNewIndex()
      Returns the new index.
      Returns:
      The new index
    • apply

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