|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.model.IndexImpBase
public abstract class IndexImpBase
Base class for indices.
Field Summary | |
---|---|
protected java.util.ArrayList |
_columns
The columns making up the index. |
protected java.lang.String |
_name
The name of the index. |
Constructor Summary | |
---|---|
IndexImpBase()
|
Method Summary | |
---|---|
void |
addColumn(IndexColumn column)
Adds a column that makes up this index. |
abstract java.lang.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. |
java.lang.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(java.lang.String name)
Sets the name of the index. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.ddlutils.model.Index |
---|
equalsIgnoreCase, isUnique, toVerboseString |
Field Detail |
---|
protected java.lang.String _name
protected java.util.ArrayList _columns
Constructor Detail |
---|
public IndexImpBase()
Method Detail |
---|
public java.lang.String getName()
getName
in interface Index
public void setName(java.lang.String name)
setName
in interface Index
name
- The namepublic int getColumnCount()
getColumnCount
in interface Index
public IndexColumn getColumn(int idx)
getColumn
in interface Index
idx
- The index of the column
public IndexColumn[] getColumns()
getColumns
in interface Index
public boolean hasColumn(Column column)
hasColumn
in interface Index
column
- The column to check for
true
if the column is included in this indexpublic void addColumn(IndexColumn column)
addColumn
in interface Index
column
- The column to addpublic void removeColumn(IndexColumn column)
removeColumn
in interface Index
column
- The column to removepublic void removeColumn(int idx)
removeColumn
in interface Index
idx
- The position of the index column to removepublic abstract java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface Index
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- If the cloning did fail
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |