Class AddUniqueConstraintChange
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
Represents the addition of a unique constraint to a table.
-
Constructor Summary
ConstructorsConstructorDescriptionAddUniqueConstraintChange(Table table, UniqueConstraint newUniqueConstraint) Creates a new change object. -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies this change to the given database.Returns the new unique constraint.Methods inherited from class edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.TableChangeImplBase
getChangedTable
-
Constructor Details
-
AddUniqueConstraintChange
Creates a new change object.- Parameters:
table- The table to add the unique constraint tonewUniqueConstraint- The new unique constraint
-
-
Method Details
-
getNewUniqueConstraint
Returns the new unique constraint.- Returns:
- The new unique constraint
-
apply
Applies this change to the given database.- Parameters:
database- The databasecaseSensitive- Whether the case of names matters
-