com.ibm.dse.tools.workbench.base
Class Index

java.lang.Object
  |
  +--com.ibm.dse.tools.workbench.base.Index

public class Index
extends java.lang.Object

This class represents an index for a table.


Field Summary
protected  int[] columns
          The columns included in the index
protected  java.lang.String name
          The name of the index
protected  Table table
          The table where the index is created
protected  boolean unique
          The uniqueness indicator
 
Constructor Summary
Index(java.lang.String name, Table table, boolean unique, int[] columns)
          This constructor creates an Index object.
 
Method Summary
 int[] getColumns()
          Returns the column identifiers of the check constraint.
 java.lang.String getName()
          Returns the name of the index.
 Table getTable()
          Returns the table
 boolean isUnique()
          Checks if the index is unique
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The name of the index

table

protected Table table
The table where the index is created

columns

protected int[] columns
The columns included in the index

unique

protected boolean unique
The uniqueness indicator
Constructor Detail

Index

public Index(java.lang.String name,
             Table table,
             boolean unique,
             int[] columns)
This constructor creates an Index object.
Parameters:
name - java.lang.String The name of the index.
table - com.ibm.dse.tools.workbench.base.Table The table.
unique - boolean The uniqueness indicator.
columns - int[] The column identifiers included in the index.
Method Detail

getColumns

public int[] getColumns()
Returns the column identifiers of the check constraint.
Returns:
int

getName

public java.lang.String getName()
Returns the name of the index.
Returns:
java.lang.String

getTable

public Table getTable()
Returns the table
Returns:
com.ibm.dse.tools.workbench.base.Table

isUnique

public boolean isUnique()
Checks if the index is unique
Returns:
boolean