org.apache.ddlutils.alteration
Class RemoveColumnChange

java.lang.Object
  extended by org.apache.ddlutils.alteration.TableChangeImplBase
      extended by org.apache.ddlutils.alteration.RemoveColumnChange
All Implemented Interfaces:
ModelChange, TableChange

public class RemoveColumnChange
extends TableChangeImplBase

Represents the removal of a column from a table.

Version:
$Revision: $

Constructor Summary
RemoveColumnChange(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

RemoveColumnChange

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

Parameters:
table - The table to remove the column from
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.