Package org.jumpmind.db.alter
Class AddIndexChange
java.lang.Object
org.jumpmind.db.alter.TableChangeImplBase
org.jumpmind.db.alter.AddIndexChange
- All Implemented Interfaces:
IModelChange
,TableChange
Represents the addition of an index to a table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies this change to the given database.Returns the new index.Methods inherited from class org.jumpmind.db.alter.TableChangeImplBase
getChangedTable
-
Constructor Details
-
AddIndexChange
Creates a new change object.- Parameters:
table
- The table to add the index tonewIndex
- The new index
-
-
Method Details
-
getNewIndex
Returns the new index.- Returns:
- The new index
-
apply
Applies this change to the given database.- Parameters:
database
- The databasecaseSensitive
- Whether the case of names matters
-