Class AddColumnChange
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.TableChangeImplBase
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.AddColumnChange
- All Implemented Interfaces:
ModelChange
,TableChange
Represents the addition of a column to a table.
- Version:
- $Revision: $
-
Constructor Summary
ConstructorDescriptionAddColumnChange
(Table table, Column newColumn, Column previousColumn, Column nextColumn) Creates a new change object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies this change to the given database.Returns the new column.Returns the column before which the new column should be added.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 edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.TableChangeImplBase
getChangedTable
-
Constructor Details
-
AddColumnChange
Creates a new change object.- Parameters:
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 Details
-
getNewColumn
Returns the new column.- Returns:
- The new column
-
getPreviousColumn
Returns the column after which the new column should be added.- Returns:
- The previous column
-
getNextColumn
Returns the column before which the new column should be added.- Returns:
- The next column
-
isAtEnd
public boolean isAtEnd()Determines whether the column is added at the end (when applied in the order of creation of the changes).- Returns:
true
if the column is added at the end
-
setAtEnd
public void setAtEnd(boolean atEnd) Specifies whether the column is added at the end (when applied in the order of creation of the changes).- Parameters:
atEnd
-true
if the column is added at the end
-
apply
Applies this change to the given database.- Parameters:
database
- The databasecaseSensitive
- Whether the case of names matters
-