public class PrimaryKeyChange extends TableChangeImplBase
| Constructor and Description |
|---|
PrimaryKeyChange(Table table,
Column[] oldPrimaryKeyColumns,
Column[] newPrimaryKeyColumns)
Creates a new change object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Database database,
boolean caseSensitive)
Applies this change to the given database.
|
Column[] |
getNewPrimaryKeyColumns()
Returns the columns making up the new primary key.
|
Column[] |
getOldPrimaryKeyColumns()
Returns the columns making up the original primary key.
|
getChangedTablepublic PrimaryKeyChange(Table table, Column[] oldPrimaryKeyColumns, Column[] newPrimaryKeyColumns)
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 keypublic Column[] getOldPrimaryKeyColumns()
public Column[] getNewPrimaryKeyColumns()
public void apply(Database database, boolean caseSensitive)
database - The databasecaseSensitive - Whether the case of names mattersCopyright © 2005-2013 Apache Software Foundation. All Rights Reserved.