|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.model.NonUniqueIndex
Represents an index definition for a table.
Field Summary | |
protected ArrayList |
_columns
The columns making up the index. |
protected String |
_name
The name of the index. |
Constructor Summary | |
NonUniqueIndex()
|
Method Summary | |
void |
addColumn(IndexColumn column)
Adds a column that makes up this index. |
protected Object |
clone()
|
boolean |
equals(Object obj)
|
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. |
int |
hashCode()
|
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 |
toString()
|
String |
toVerboseString()
Returns a verbose string representation of this index. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected String _name
protected ArrayList _columns
Constructor Detail |
public NonUniqueIndex()
Method Detail |
public boolean isUnique()
isUnique
in interface Index
true
if the index is an unique onepublic String getName()
getName
in interface Index
public void setName(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 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 removeprotected Object clone() throws CloneNotSupportedException
CloneNotSupportedException
public boolean equals(Object obj)
public int hashCode()
public String toString()
public String toVerboseString()
toVerboseString
in interface Index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |