Class PrimaryKeyChange
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.TableChangeImplBase
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.PrimaryKeyChange
- All Implemented Interfaces:
ModelChange
,TableChange
Represents the change of the primary key of a table.
- Version:
- $Revision: $
-
Constructor Summary
ConstructorDescriptionPrimaryKeyChange
(Table table, Column[] oldPrimaryKeyColumns, Column[] newPrimaryKeyColumns) Creates a new change object. -
Method Summary
Methods inherited from class edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.TableChangeImplBase
getChangedTable
-
Constructor Details
-
PrimaryKeyChange
Creates a new change object.- Parameters:
table
- The table whose primary key is to be changedoldPrimaryKeyColumns
- The columns making up the original primary keynewPrimaryKeyColumns
- The columns making up the new primary key
-
-
Method Details
-
getOldPrimaryKeyColumns
Returns the columns making up the original primary key.- Returns:
- The columns
-
getNewPrimaryKeyColumns
Returns the columns making up the new primary key.- Returns:
- The columns
-
apply
Applies this change to the given database.- Parameters:
database
- The databasecaseSensitive
- Whether the case of names matters
-