|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.engine.database.model.Index org.apache.torque.engine.database.model.Unique
public class Unique
Information about unique columns of a table. This class assumes that in the underlying RDBMS, unique constraints and unique indices are roughly equivalent. For example, adding a unique constraint to a column also creates an index on that column (this is known to be true for MySQL and Oracle).
Constructor Summary | |
---|---|
Unique()
|
Method Summary | |
---|---|
boolean |
isUnique()
Returns true . |
java.lang.String |
toString()
String representation of the index. |
Methods inherited from class org.apache.torque.engine.database.model.Index |
---|
addColumn, addOption, getColumnList, getColumnNames, getColumns, getName, getOption, getOptions, getTable, getTableName, loadFromXML, setName, setTable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Unique()
Method Detail |
---|
public final boolean isUnique()
true
.
isUnique
in class Index
public java.lang.String toString()
toString
in class Index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |