Class AddPrimaryKeyChange
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.TableChangeImplBase
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.AddPrimaryKeyChange
- All Implemented Interfaces:
ModelChange
,TableChange
Represents the addition of a primary key to a table which does not have one.
- Version:
- $Revision: $
-
Constructor Summary
ConstructorDescriptionAddPrimaryKeyChange
(Table table, Column[] primaryKeyColumns) Creates a new change object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies this change to the given database.Column[]
Returns the primary key columns making up the new primary key.Methods inherited from class edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.TableChangeImplBase
getChangedTable
-
Constructor Details
-
AddPrimaryKeyChange
Creates a new change object.- Parameters:
table
- The table to add the primary key toprimaryKeyColumns
- The columns making up the primary key
-
-
Method Details
-
getPrimaryKeyColumns
Returns the primary key columns making up the new primary key.- Returns:
- The primary key columns
-
apply
Applies this change to the given database.- Parameters:
database
- The databasecaseSensitive
- Whether the case of names matters
-