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.
name
private final String name
isUnique
private final boolean isUnique
columns
private final Set<String> columns
TableInfo.IndexInfo
public TableInfo.IndexInfo(String name,
boolean isUnique)
- Create a new IndexInfo object. You should also add column names
to the
getColumns()
set.
- Parameters:
name
- The name of the indexisUnique
- If the index must have unique values or not
getName
public String getName()
isUnique
public boolean isUnique()
getColumns
public Set<String> getColumns()
toString
public String toString()
- Overrides:
toString
in class Object