Package net.sf.basedb.core.dbengine
Class TableInfo.IndexInfo
java.lang.Object
net.sf.basedb.core.dbengine.TableInfo.IndexInfo
- Enclosing class:
- TableInfo
Holds information about an index in a table.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIf a condition is specificed a partial index is created for rows that matches the conditions.getName()
boolean
isUnique()
void
setCondition
(String condition) 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