public interface Index extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(IndexColumn column)
Adds a column that makes up this index.
|
boolean |
equalsIgnoreCase(Index otherIndex)
Compares this index to the given one while ignoring the case of identifiers.
|
Index |
getClone()
Returns a clone of this index object.
|
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 |
hasColumn(String columnName,
boolean caseSensitive)
Determines whether this index includes the indicated 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.
|
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 columnIndexColumn[] getColumns()
boolean hasColumn(Column column)
column - The column to check fortrue if the column is included in this indexboolean hasColumn(String columnName, boolean caseSensitive)
columnName - The name of the column to check forcaseSensitive - Whether the case of the column name matters for the checktrue 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 removeIndex getClone() throws ModelException
ModelExceptionboolean equalsIgnoreCase(Index otherIndex)
otherIndex - The other indextrue if this index is equal (ignoring case) to the given oneString toVerboseString()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.