org.apache.ddlutils.alteration
Class AddIndexChange
java.lang.Object
org.apache.ddlutils.alteration.TableChangeImplBase
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: $
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddIndexChange
public AddIndexChange(Table table,
Index newIndex)
- Creates a new change object.
- Parameters:
table
- The table to add the index tonewIndex
- The new index
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 databasecaseSensitive
- Whether the case of names matters
Copyright © 2005-2006 Apache Software Foundation. All Rights Reserved.