|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Index
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. |
Object |
clone()
Clones this index. |
boolean |
equalsIgnoreCase(Index otherIndex)
Compares this index to the given one while ignoring the case of identifiers. |
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 |
hasColumn(Column column)
Determines whether this index includes the given column. |
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 |
|---|
boolean isUnique()
true if the index is an unique oneString getName()
void setName(String name)
name - The nameint getColumnCount()
IndexColumn getColumn(int idx)
idx - The index of the column
IndexColumn[] getColumns()
boolean hasColumn(Column column)
column - The column to check for
true if the column is included in this indexvoid addColumn(IndexColumn column)
column - The column to addvoid removeColumn(IndexColumn column)
column - The column to removevoid removeColumn(int idx)
idx - The position of the index column to remove
Object clone()
throws CloneNotSupportedException
CloneNotSupportedException - If the cloning did failboolean equalsIgnoreCase(Index otherIndex)
otherIndex - The other index
true if this index is equal (ignoring case) to the given oneString toVerboseString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||