|
|||||||||
| 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 ArrayList |
_columns
The columns making up the index. |
protected 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 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. |
| 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 String _name
protected ArrayList _columns
| Constructor Detail |
|---|
public IndexImpBase()
| Method Detail |
|---|
public String getName()
getName in interface Indexpublic void setName(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 Object clone()
throws CloneNotSupportedException
clone in interface Indexclone in class ObjectCloneNotSupportedException - If the cloning did fail
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||