2.17.2: 2011-06-17

net.sf.basedb.core.dbengine
Class TableInfo.IndexInfo

java.lang.Object
  extended by 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
private  Set<String> columns
           
private  boolean isUnique
           
private  String name
           
 
Constructor Summary
TableInfo.IndexInfo(String name, boolean isUnique)
          Create a new IndexInfo object.
 
Method Summary
 Set<String> getColumns()
           
 String getName()
           
 boolean isUnique()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private final String name

isUnique

private final boolean isUnique

columns

private final Set<String> columns
Constructor Detail

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 index
isUnique - If the index must have unique values or not
Method Detail

getName

public String getName()

isUnique

public boolean isUnique()

getColumns

public Set<String> getColumns()

toString

public String toString()
Overrides:
toString in class Object

2.17.2: 2011-06-17