Class AddIndexChange

java.lang.Object
org.jumpmind.db.alter.TableChangeImplBase
org.jumpmind.db.alter.AddIndexChange
All Implemented Interfaces:
IModelChange, TableChange

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

    • AddIndexChange

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

    • getNewIndex

      public IIndex 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