public class AddColumnChange extends TableChangeImplBase
| Constructor and Description |
|---|
AddColumnChange(String tableName,
Column newColumn,
String previousColumnName,
String nextColumnName)
Creates a new change object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Database model,
boolean caseSensitive)
Applies this change to the given database.
|
Column |
getNewColumn()
Returns the new column.
|
String |
getNextColumn()
Returns the name of the column before which the new column should be added.
|
String |
getPreviousColumn()
Returns the name of 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).
|
findChangedTable, getChangedTablepublic AddColumnChange(String tableName, Column newColumn, String previousColumnName, String nextColumnName)
tableName - The name of the table to add the column tonewColumn - The new columnpreviousColumnName - The name of the column after which the new column should be addednextColumnName - The name of the column before which the new column should be addedpublic Column getNewColumn()
public String getPreviousColumn()
public String getNextColumn()
public boolean isAtEnd()
true if the column is added at the endpublic void apply(Database model, boolean caseSensitive)
model - The databasecaseSensitive - Whether the case of names mattersCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.