|
||||||||||
| 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 Indexpublic void setName(java.lang.String name)
setName in interface Indexname - The namepublic int getColumnCount()
getColumnCount in interface Indexpublic IndexColumn getColumn(int idx)
getColumn in interface Indexidx - The index of the column
public IndexColumn[] getColumns()
getColumns in interface Indexpublic boolean hasColumn(Column column)
hasColumn in interface Indexcolumn - The column to check for
true if the column is included in this indexpublic void addColumn(IndexColumn column)
addColumn in interface Indexcolumn - The column to addpublic 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 remove
public abstract java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface Indexclone in class java.lang.Objectjava.lang.CloneNotSupportedException - If the cloning did fail
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||