Package net.sf.basedb.core.dbengine
Class TableInfo.IndexInfo
- java.lang.Object
-
- net.sf.basedb.core.dbengine.TableInfo.IndexInfo
-
-
Method Summary
All Methods Instance Methods Concrete Methods 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()
-
-
-
Constructor Detail
-
IndexInfo
public IndexInfo(String name, boolean isUnique)
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 Detail
-
getName
public String getName()
-
isUnique
public boolean isUnique()
-
getCondition
public String getCondition()
If a condition is specificed a partial index is created for rows that matches the conditions. (Currently only supported by PostgreSQL and ignored by MySQL).- Since:
- 3.10
-
setCondition
public void setCondition(String condition)
-
-