Package org.jumpmind.db.alter
Class ColumnSizeChange
java.lang.Object
org.jumpmind.db.alter.TableChangeImplBase
org.jumpmind.db.alter.ColumnSizeChange
- All Implemented Interfaces:
ColumnChange
,IModelChange
,TableChange
Represents the change of the size or scale of a column.
-
Constructor Summary
ConstructorsConstructorDescriptionColumnSizeChange
(Table table, Column column, int newSize, int newScale) Creates a new change object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies this change to the given database.Returns the column.int
Returns the new scale of the column.int
Returns the new size of 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
-
ColumnSizeChange
Creates a new change object.- Parameters:
table
- The table of the columncolumn
- The columnnewSize
- The new sizenewScale
- The new scale
-
-
Method Details
-
getChangedColumn
Returns the column.- Specified by:
getChangedColumn
in interfaceColumnChange
- Returns:
- The column
-
getNewSize
public int getNewSize()Returns the new size of the column.- Returns:
- The new size
-
getNewScale
public int getNewScale()Returns the new scale of the column.- Returns:
- The new scale
-
apply
Applies this change to the given database.- Specified by:
apply
in interfaceIModelChange
- Parameters:
database
- The databasecaseSensitive
- Whether the case of names matters
-