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 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).void
add(String column)
Add an index for the given column.boolean
add(String[] columns)
Return true if an index should be added for the given columns.void
clear()
Clear the indexes (for each table).boolean
contains(String column)
boolean
contains(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()
-
-