|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ddlutils.alteration.TableChangeImplBase
org.apache.ddlutils.alteration.AddColumnChange
public class AddColumnChange
Represents the addition of a column to a table.
| Constructor Summary | |
|---|---|
AddColumnChange(Table table,
Column newColumn,
Column previousColumn,
Column nextColumn)
Creates a new change object. |
|
| Method Summary | |
|---|---|
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). |
| Methods inherited from class org.apache.ddlutils.alteration.TableChangeImplBase |
|---|
getChangedTable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public 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 added| Method Detail |
|---|
public 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 end
public void apply(Database database,
boolean caseSensitive)
database - The databasecaseSensitive - Whether the case of names matters
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||