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