org.apache.ddlutils.alteration
Class ColumnAutoIncrementChange

java.lang.Object
  extended by org.apache.ddlutils.alteration.TableChangeImplBase
      extended by 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: $

Constructor Summary
ColumnAutoIncrementChange(Table table, Column column)
          Creates a new change object.
 
Method Summary
 void apply(Database database, boolean caseSensitive)
          Applies this change to the given database.
 Column getColumn()
          Returns the 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

ColumnAutoIncrementChange

public ColumnAutoIncrementChange(Table table,
                                 Column column)
Creates a new change object.

Parameters:
table - The table of the column
column - The column
Method Detail

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 database
caseSensitive - Whether the case of names matters


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.