Class ColumnOrderChange
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.TableChangeImplBase
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.ColumnOrderChange
- All Implemented Interfaces:
ModelChange
,TableChange
Represents the change of the order of the columns of a table.
- Version:
- $Revision: $
-
Constructor Summary
ConstructorDescriptionColumnOrderChange
(Table table, Map newPositions) Creates a new change object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies this change to the given database.int
getNewPosition
(Column sourceColumn) Returns the new position of the given source column.Methods inherited from class edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.TableChangeImplBase
getChangedTable
-
Constructor Details
-
ColumnOrderChange
Creates a new change object.- Parameters:
table
- The table whose primary key is to be changednewPositions
- The map containing the new positions keyed by the source columns
-
-
Method Details
-
getNewPosition
Returns the new position of the given source column.- Parameters:
sourceColumn
- The column- Returns:
- The new position or -1 if no position is marked for the column
-
apply
Applies this change to the given database.- Parameters:
database
- The databasecaseSensitive
- Whether the case of names matters
-