|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--kodo.jdbc.schema.Index
Represents a database index.
| Method Summary | |
void |
addColumn(Column col)
Add a column to the index. |
boolean |
columnsMatch(Column[] idxCols)
Return true if the given columns match the columns of this index. |
int |
compareTo(Object other)
Order on name. |
boolean |
containsColumn(Column col)
Return true if the index includes the given column. |
boolean |
equals(Object other)
Indexes are equal if they have the same name, the same columns, and are both unique/not unique. |
Column[] |
getColumns()
Return all the columns the index spans. |
String |
getFullName()
Return the index name, including schema. |
String |
getName()
Return the name of the index. |
Table |
getTable()
Return the table of the index. |
boolean |
isUnique()
Return true if this is a UNIQUE index. |
boolean |
removeColumn(Column col)
Remove a column from the index. |
void |
setColumns(Column[] cols)
Set the index's columns. |
void |
setUnique(boolean unique)
Set whether this is a UNIQUE index. |
String |
toString()
Returns the index name. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public Table getTable()
public String getName()
public String getFullName()
public boolean isUnique()
public void setUnique(boolean unique)
public Column[] getColumns()
public void setColumns(Column[] cols)
public void addColumn(Column col)
public boolean removeColumn(Column col)
public boolean containsColumn(Column col)
public int compareTo(Object other)
public String toString()
toString in class Objectpublic boolean equals(Object other)
equals in class Objectpublic boolean columnsMatch(Column[] idxCols)
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||