Package org.jumpmind.db.alter
Class RemoveForeignKeyChange
java.lang.Object
org.jumpmind.db.alter.TableChangeImplBase
org.jumpmind.db.alter.RemoveForeignKeyChange
- All Implemented Interfaces:
IModelChange
,TableChange
Represents the removal of a foreign key from a table. Note that for simplicity and because it fits the model, this change actually implements table change
for the table that the foreign key originates.
-
Constructor Summary
ConstructorsConstructorDescriptionRemoveForeignKeyChange
(Table table, ForeignKey foreignKey) Creates a new change object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies this change to the given database.Returns the foreign key to be removed.Methods inherited from class org.jumpmind.db.alter.TableChangeImplBase
getChangedTable
-
Constructor Details
-
RemoveForeignKeyChange
Creates a new change object.- Parameters:
table
- The table to remove the foreign key fromforeignKey
- The foreign key
-
-
Method Details
-
getForeignKey
Returns the foreign key to be removed.- Returns:
- The foreign key
-
apply
Applies this change to the given database.- Parameters:
database
- The databasecaseSensitive
- Whether the case of names matters
-