org.apache.torque.engine.database.model
Class Unique
java.lang.Object
   org.apache.torque.engine.database.model.Index
org.apache.torque.engine.database.model.Index
       org.apache.torque.engine.database.model.Unique
org.apache.torque.engine.database.model.Unique
- public class Unique 
- extends Index
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).
- Version:
- $Id: Unique.java,v 1.1 2007-10-21 07:57:27 abyrne Exp $
- Author:
- Jason van Zyl, Daniel Rall
 
 
| Methods inherited from class org.apache.torque.engine.database.model.Index | 
| addColumn, addOption, getColumnList, getColumnNames, getColumns, getName, getOption, getOptions, getTable, getTableName, loadFromXML, setName, setTable | 
 
 
Unique
public Unique()
isUnique
public final boolean isUnique()
- Returns true.
 
- 
- Overrides:
- isUniquein class- Index
 
- 
- Returns:
- true
 
toString
public String toString()
- String representation of the index. This is an xml representation.
 
- 
- Overrides:
- toStringin class- Index
 
- 
- Returns:
- string representation in xml
 
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.