Class IndexSet
- java.lang.Object
-
- io.ebeaninternal.dbmigration.ddlgeneration.platform.util.IndexSet
-
-
Constructor Summary
Constructors Constructor Description IndexSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(IndexColumns index)Add the externally created unique constraint here so that we check later if foreign key indexes don't need to be created (as the columns match this unique constraint).voidadd(String column)Add an index for the given column.booleanadd(String[] columns)Return true if an index should be added for the given columns.voidclear()Clear the indexes (for each table).booleancontains(String column)booleancontains(List<String> columns)List<IndexColumns>getIndexes()
-
-
-
Constructor Detail
-
IndexSet
public IndexSet()
-
-
Method Detail
-
clear
public void clear()
Clear the indexes (for each table).
-
add
public boolean add(String[] columns)
Return true if an index should be added for the given columns.Returning false indicates there is an existing index (unique constraint) with these columns and that an extra index should not be added.
-
add
public void add(IndexColumns index)
Add the externally created unique constraint here so that we check later if foreign key indexes don't need to be created (as the columns match this unique constraint).
-
getIndexes
public List<IndexColumns> getIndexes()
-
-