org.apache.ddlutils.alteration
Class ColumnAutoIncrementChange
java.lang.Object
org.apache.ddlutils.alteration.TableChangeImplBase
org.apache.ddlutils.alteration.ColumnAutoIncrementChange
- All Implemented Interfaces:
- ModelChange, TableChange
- public class ColumnAutoIncrementChange
- extends TableChangeImplBase
Represents the change of the auto-increment constraint of a column. Since it is a boolean value,
this means the required constraint will simply be toggled.
- Version:
- $Revision: $
Method Summary |
void |
apply(Database database,
boolean caseSensitive)
Applies this change to the given database. |
Column |
getColumn()
Returns the column. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColumnAutoIncrementChange
public ColumnAutoIncrementChange(Table table,
Column column)
- Creates a new change object.
- Parameters:
table
- The table of the columncolumn
- The column
getColumn
public Column getColumn()
- Returns the column.
- Returns:
- The column
apply
public void apply(Database database,
boolean caseSensitive)
- Applies this change to the given database.
- Parameters:
database
- The databasecaseSensitive
- Whether the case of names matters
Copyright © 2005-2006 Apache Software Foundation. All Rights Reserved.