Class UniqueIndex
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.model.IndexImpBase
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.model.UniqueIndex
- All Implemented Interfaces:
Index
,Serializable
,Cloneable
Provides compatibility with Torque-style xml with separate <index> and
<unique> tags, but adds no functionality. All indexes are treated the
same by the Table.
- Version:
- $Revision: 463305 $
- See Also:
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouper.ext.org.apache.ddlutils.model.IndexImpBase
_columns, _name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones this index.boolean
boolean
equalsIgnoreCase
(Index other) Compares this index to the given one while ignoring the case of identifiers.int
hashCode()
boolean
isUnique()
Determines whether this index is unique or not.toString()
Returns a verbose string representation of this index.Methods inherited from class edu.internet2.middleware.grouper.ext.org.apache.ddlutils.model.IndexImpBase
addColumn, getColumn, getColumnCount, getColumns, getName, hasColumn, removeColumn, removeColumn, setName
-
Constructor Details
-
UniqueIndex
public UniqueIndex()
-
-
Method Details
-
isUnique
public boolean isUnique()Determines whether this index is unique or not.- Returns:
true
if the index is an unique one
-
clone
Clones this index.- Specified by:
clone
in interfaceIndex
- Specified by:
clone
in classIndexImpBase
- Returns:
- The clone
- Throws:
CloneNotSupportedException
- If the cloning did fail
-
equals
-
equalsIgnoreCase
Compares this index to the given one while ignoring the case of identifiers.- Parameters:
other
- The other index- Returns:
true
if this index is equal (ignoring case) to the given one
-
hashCode
public int hashCode() -
toString
-
toVerboseString
Returns a verbose string representation of this index.- Returns:
- The string representation
-