public abstract class IndexImpBase extends Object implements Index
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList |
_columns
The columns making up the index.
|
protected String |
_name
The name of the index.
|
| Constructor and Description |
|---|
IndexImpBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(IndexColumn column)
Adds a column that makes up this index.
|
abstract Object |
clone()
Clones 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 |
hasColumn(Column column)
Determines whether this index includes the given column.
|
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.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalsIgnoreCase, isUnique, toVerboseStringprotected String _name
protected ArrayList _columns
public String getName()
public void setName(String name)
public int getColumnCount()
getColumnCount in interface Indexpublic IndexColumn getColumn(int idx)
public IndexColumn[] getColumns()
getColumns in interface Indexpublic boolean hasColumn(Column column)
public void addColumn(IndexColumn column)
public void removeColumn(IndexColumn column)
removeColumn in interface Indexcolumn - The column to removepublic void removeColumn(int idx)
removeColumn in interface Indexidx - The position of the index column to removepublic abstract Object clone() throws CloneNotSupportedException
clone in interface Indexclone in class ObjectCloneNotSupportedException - If the cloning did failCopyright © 2005-2013 Apache Software Foundation. All Rights Reserved.