Package net.sf.basedb.core.dbengine
Class TableInfo.IndexInfo
java.lang.Object
net.sf.basedb.core.dbengine.TableInfo.IndexInfo
- Enclosing class:
- TableInfo
public static class TableInfo.IndexInfo extends Object
Holds information about an index in a table.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Set<String>
getColumns()
String
getCondition()
If a condition is specificed a partial index is created for rows that matches the conditions.String
getName()
boolean
isUnique()
void
setCondition(String condition)
String
toString()
-
Field Details
-
name
-
isUnique
private final boolean isUnique -
columns
-
condition
-
-
Constructor Details
-
IndexInfo
Create a new IndexInfo object. You should also add column names to thegetColumns()
set.- Parameters:
name
- The name of the indexisUnique
- If the index must have unique values or not
-
-
Method Details