Package org.jumpmind.db.alter
Class ColumnRequiredChange
java.lang.Object
org.jumpmind.db.alter.TableChangeImplBase
org.jumpmind.db.alter.ColumnRequiredChange
- All Implemented Interfaces:
ColumnChange
,IModelChange
,TableChange
Represents the change of the required constraint of a column. Since it is a boolean value, this means the required constraint will simply be toggled.
-
Constructor Summary
ConstructorsConstructorDescriptionColumnRequiredChange
(Table table, Column column) Creates a new change object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies this change to the given database.Returns the column.Methods inherited from class org.jumpmind.db.alter.TableChangeImplBase
getChangedTable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jumpmind.db.alter.TableChange
getChangedTable
-
Constructor Details
-
ColumnRequiredChange
Creates a new change object.- Parameters:
table
- The table of the columncolumn
- The column
-
-
Method Details
-
getChangedColumn
Returns the column.- Specified by:
getChangedColumn
in interfaceColumnChange
- Returns:
- The column
-
apply
Description copied from interface:IModelChange
Applies this change to the given database.- Specified by:
apply
in interfaceIModelChange
- Parameters:
database
- The databasecaseSensitive
- Whether the case of names matters
-