|
||||||||||
| 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.ColumnOrderChange
public class ColumnOrderChange
Represents the change of the order of the columns of a table.
| Constructor Summary | |
|---|---|
ColumnOrderChange(Table table,
java.util.Map newPositions)
Creates a new change object. |
|
| Method Summary | |
|---|---|
void |
apply(Database database,
boolean caseSensitive)
Applies this change to the given database. |
int |
getNewPosition(Column sourceColumn)
Returns the new position of the given source column. |
| 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 ColumnOrderChange(Table table,
java.util.Map newPositions)
table - The table whose primary key is to be changednewPositions - The map containing the new positions keyed by the source columns| Method Detail |
|---|
public int getNewPosition(Column sourceColumn)
sourceColumn - The column
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 | |||||||||