public class AddForeignKeyChange extends TableChangeImplBase
| Constructor and Description |
|---|
AddForeignKeyChange(Table table,
ForeignKey newForeignKey)
Creates a new change object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Database database,
boolean caseSensitive)
Applies this change to the given database.
|
ForeignKey |
getNewForeignKey()
Returns the new foreign key.
|
getChangedTablepublic AddForeignKeyChange(Table table, ForeignKey newForeignKey)
table - The table to add the foreign key tonewForeignKey - The new foreign keypublic ForeignKey getNewForeignKey()
public void apply(Database database, boolean caseSensitive)
database - The databasecaseSensitive - Whether the case of names mattersCopyright © 2005-2013 Apache Software Foundation. All Rights Reserved.