Package org.jumpmind.db.alter
Class AddTableChange
java.lang.Object
org.jumpmind.db.alter.AddTableChange
- All Implemented Interfaces:
IModelChange
Represents the addition of a table to a model. Note that this change does not include foreign keys originating from the new table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies this change to the given database.Returns the new table.
-
Constructor Details
-
AddTableChange
Creates a new change object.- Parameters:
newTable
- The new table
-
-
Method Details
-
getNewTable
Returns the new table. Note that only the columns and table-level constraints are to be used. Any model-level constraints (e.g. foreign keys) shall be ignored as there are different change objects for them.- Returns:
- The new table
-
apply
Applies this change to the given database.- Specified by:
apply
in interfaceIModelChange
- Parameters:
database
- The databasecaseSensitive
- Whether the case of names matters
-