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

public class RemovePrimaryKeyChange extends TableChangeImplBase
Represents the removal of the primary key from a table.
Version:
$Revision: $
  • Constructor Details

    • RemovePrimaryKeyChange

      public RemovePrimaryKeyChange(Table table, Column[] primaryKeyColumns)
      Creates a new change object.
      Parameters:
      table - The table to remove the primary key from
      primaryKeyColumns - The columns making up the primary key
  • Method Details

    • getPrimaryKeyColumns

      public Column[] getPrimaryKeyColumns()
      Returns the primary key columns making up the primary key.
      Returns:
      The primary key columns
    • 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