public class AddColumnChange extends TableChangeImplBase
| Constructor and Description |
|---|
AddColumnChange(Table table,
Column newColumn,
Column previousColumn,
Column nextColumn)
Creates a new change object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Database database,
boolean caseSensitive)
Applies this change to the given database.
|
Column |
getNewColumn()
Returns the new column.
|
Column |
getNextColumn()
Returns the column before which the new column should be added.
|
Column |
getPreviousColumn()
Returns the column after which the new column should be added.
|
boolean |
isAtEnd()
Determines whether the column is added at the end (when applied in the order
of creation of the changes).
|
void |
setAtEnd(boolean atEnd)
Specifies whether the column is added at the end (when applied in the order
of creation of the changes).
|
getChangedTablepublic AddColumnChange(Table table, Column newColumn, Column previousColumn, Column nextColumn)
table - The table to add the column tonewColumn - The new columnpreviousColumn - The column after which the new column should be addednextColumn - The column before which the new column should be addedpublic Column getNewColumn()
public Column getPreviousColumn()
public Column getNextColumn()
public boolean isAtEnd()
true if the column is added at the endpublic void setAtEnd(boolean atEnd)
atEnd - true if the column is added at the endpublic void apply(Database database, boolean caseSensitive)
database - The databasecaseSensitive - Whether the case of names mattersCopyright © 2005-2013 Apache Software Foundation. All Rights Reserved.