public class AddForeignKeyChange extends TableChangeImplBase
| Constructor and Description |
|---|
AddForeignKeyChange(String tableName,
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.
|
findChangedTable, getChangedTablepublic AddForeignKeyChange(String tableName, ForeignKey newForeignKey)
tableName - The name of 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 © 2010-2015 Pivotal Software, Inc. All rights reserved.