org.apache.ddlutils.alteration
Class AddIndexChange

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

public class AddIndexChange
extends TableChangeImplBase

Represents the addition of an index to a table.

Version:
$Revision: $

Constructor Summary
AddIndexChange(Table table, Index newIndex)
          Creates a new change object.
 
Method Summary
 void apply(Database database, boolean caseSensitive)
          Applies this change to the given database.
 Index getNewIndex()
          Returns the new index.
 
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

AddIndexChange

public AddIndexChange(Table table,
                      Index newIndex)
Creates a new change object.

Parameters:
table - The table to add the index to
newIndex - The new index
Method Detail

getNewIndex

public Index getNewIndex()
Returns the new index.

Returns:
The new index

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.