|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents an index definition for a table which may be either unique or non-unique.
Method Summary | |
void |
addColumn(IndexColumn column)
Adds a column that makes up this index. |
IndexColumn |
getColumn(int idx)
Returns the indicated column making up this index. |
int |
getColumnCount()
Returns the number of columns that make up this index. |
IndexColumn[] |
getColumns()
Returns the columns that make up this index. |
String |
getName()
Returns the name of the index. |
boolean |
isUnique()
Determines whether this index is unique or not. |
void |
removeColumn(IndexColumn column)
Removes the given index column from this index. |
void |
removeColumn(int idx)
Removes the column at the specified position in this index. |
void |
setName(String name)
Sets the name of the index. |
String |
toVerboseString()
Returns a verbose string representation of this index. |
Method Detail |
public boolean isUnique()
true
if the index is an unique onepublic String getName()
public void setName(String name)
name
- The namepublic int getColumnCount()
public IndexColumn getColumn(int idx)
idx
- The index of the column
public IndexColumn[] getColumns()
public void addColumn(IndexColumn column)
column
- The column to addpublic void removeColumn(IndexColumn column)
column
- The column to removepublic void removeColumn(int idx)
idx
- The position of the index column to removepublic String toVerboseString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |