Class RemoveUniqueConstraintChange

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

public class RemoveUniqueConstraintChange extends TableChangeImplBase
Represents the removal of a unique constraint from a table.
  • Constructor Details

    • RemoveUniqueConstraintChange

      public RemoveUniqueConstraintChange(Table table, UniqueConstraint uniqueConstraint)
      Creates a new change object.
      Parameters:
      table - The table to remove the unique constraint from
      uniqueConstraint - The unique constraint
  • Method Details

    • getUniqueConstraint

      public UniqueConstraint getUniqueConstraint()
      Returns the unique constraint.
      Returns:
      The unique constraint
    • 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