Class MIndex
java.lang.Object
io.ebeaninternal.dbmigration.model.MIndex
public class MIndex extends Object
Index as part of the logical model.
-
Constructor Summary
Constructors Constructor Description MIndex(CreateIndex createIndex)MIndex(String indexName, String tableName, String columnName)Create a single column non unique index.MIndex(String indexName, String tableName, String[] columnNames)Create a multi column non unique index.MIndex(String indexName, String tableName, String[] columnNames, String platforms, boolean unique, boolean concurrent, String definition) -
Method Summary
Modifier and Type Method Description voidcompare(ModelDiff modelDiff, MIndex newIndex)Compare with an index of the same name.CreateIndexcreateIndex()Return a CreateIndex migration for this index.DropIndexdropIndex()Create a DropIndex migration for this index.List<String>getColumns()Return the columns in the index (in order).StringgetIndexName()Return the index name.StringgetKey()StringgetTableName()Return the table this index is on.
-
Constructor Details
-
MIndex
Create a single column non unique index. -
MIndex
Create a multi column non unique index. -
MIndex
-
MIndex
-
-
Method Details
-
getKey
-
getIndexName
Return the index name. -
getTableName
Return the table this index is on. -
getColumns
Return the columns in the index (in order). -
createIndex
Return a CreateIndex migration for this index. -
dropIndex
Create a DropIndex migration for this index. -
compare
Compare with an index of the same name.
-