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

public class AddUniqueConstraintChange extends TableChangeImplBase
Represents the addition of a unique constraint to a table.
  • Constructor Details

    • AddUniqueConstraintChange

      public AddUniqueConstraintChange(Table table, UniqueConstraint newUniqueConstraint)
      Creates a new change object.
      Parameters:
      table - The table to add the unique constraint to
      newUniqueConstraint - The new unique constraint
  • Method Details

    • getNewUniqueConstraint

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