Package org.jumpmind.db.alter
Class RemovePrimaryKeyChange
java.lang.Object
org.jumpmind.db.alter.TableChangeImplBase
org.jumpmind.db.alter.RemovePrimaryKeyChange
- All Implemented Interfaces:
IModelChange
,TableChange
Represents the removal of the primary key from a table.
-
Constructor Summary
ConstructorsConstructorDescriptionRemovePrimaryKeyChange
(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 primary key.Methods inherited from class org.jumpmind.db.alter.TableChangeImplBase
getChangedTable
-
Constructor Details
-
RemovePrimaryKeyChange
Creates a new change object.- Parameters:
table
- The table to remove the primary key fromprimaryKeyColumns
- The columns making up the primary key
-
-
Method Details
-
getPrimaryKeyColumns
Returns the primary key columns making up the 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
-