|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ddlutils.alteration.TableChangeImplBase
org.apache.ddlutils.alteration.PrimaryKeyChange
public class PrimaryKeyChange
Represents the change of the primary key of a table.
| Constructor Summary | |
|---|---|
PrimaryKeyChange(Table table,
Column[] oldPrimaryKeyColumns,
Column[] newPrimaryKeyColumns)
Creates a new change object. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.ddlutils.alteration.TableChangeImplBase |
|---|
getChangedTable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public 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 key| Method Detail |
|---|
public Column[] getOldPrimaryKeyColumns()
public Column[] getNewPrimaryKeyColumns()
public void apply(Database database,
boolean caseSensitive)
database - The databasecaseSensitive - Whether the case of names matters
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||