Class MIndex
- java.lang.Object
-
- io.ebeaninternal.dbmigration.model.MIndex
-
-
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
All Methods Instance Methods Concrete Methods 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 Detail
-
MIndex
public MIndex(String indexName, String tableName, String columnName)
Create a single column non unique index.
-
MIndex
public MIndex(String indexName, String tableName, String[] columnNames)
Create a multi column non unique index.
-
MIndex
public MIndex(String indexName, String tableName, String[] columnNames, String platforms, boolean unique, boolean concurrent, String definition)
-
MIndex
public MIndex(CreateIndex createIndex)
-
-
Method Detail
-
getIndexName
public String getIndexName()
Return the index name.
-
getTableName
public String getTableName()
Return the table this index is on.
-
getColumns
public List<String> getColumns()
Return the columns in the index (in order).
-
createIndex
public CreateIndex createIndex()
Return a CreateIndex migration for this index.
-
-