Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.ddlutils.alteration
Class RemoveForeignKeyChange

    java.lang.Object
      org.apache.ddlutils.alteration.TableChangeImplBase
          org.apache.ddlutils.alteration.RemoveForeignKeyChange

All Implemented Interfaces:
  ModelChange, TableChange

    public class RemoveForeignKeyChange

extends TableChangeImplBase

Represents the removal of a foreign key from a table. Note that for simplicity and because it fits the model, this change actually implements table change for the table that the foreign key originates.

Version:
  $Revision: $

Constructor Summary
`RemoveForeignKeyChange(Table table, ForeignKey foreignKey)` Creates a new change object.

Method Summary
`void` | `apply(Database database, boolean caseSensitive)` Applies this change to the given database.
`ForeignKey` | `getForeignKey()` Returns the foreign key to be removed.

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

### RemoveForeignKeyChange

    public RemoveForeignKeyChange(Table table,
                                  ForeignKey foreignKey)

  Creates a new change object.

  Parameters:
    `table` - The table to remove the foreign key from
    `foreignKey` - The foreign key

Method Detail

### getForeignKey

    public ForeignKey getForeignKey()

  Returns the foreign key to be removed.

  Returns:
    The foreign key

### 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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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