org.apache.ddlutils.model
Class UniqueIndex

java.lang.Object
  extended byorg.apache.ddlutils.model.NonUniqueIndex
      extended byorg.apache.ddlutils.model.UniqueIndex
All Implemented Interfaces:
Cloneable, Index, Serializable

public class UniqueIndex
extends NonUniqueIndex

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: 365443 $
Author:
John Marshall/Connectria
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.ddlutils.model.NonUniqueIndex
_columns, _name
 
Constructor Summary
UniqueIndex()
           
 
Method Summary
protected  Object clone()
          
 boolean equals(Object obj)
          
 int hashCode()
          
 boolean isUnique()
          Determines whether this index is unique or not.
 String toString()
          
 String toVerboseString()
          Returns a verbose string representation of this index.
 
Methods inherited from class org.apache.ddlutils.model.NonUniqueIndex
addColumn, getColumn, getColumnCount, getColumns, getName, removeColumn, removeColumn, setName
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UniqueIndex

public UniqueIndex()
Method Detail

isUnique

public boolean isUnique()
Determines whether this index is unique or not.

Specified by:
isUnique in interface Index
Overrides:
isUnique in class NonUniqueIndex

clone

protected Object clone()
                throws CloneNotSupportedException

Overrides:
clone in class NonUniqueIndex
Throws:
CloneNotSupportedException

equals

public boolean equals(Object obj)

Overrides:
equals in class NonUniqueIndex

hashCode

public int hashCode()

Overrides:
hashCode in class NonUniqueIndex

toString

public String toString()

Overrides:
toString in class NonUniqueIndex

toVerboseString

public String toVerboseString()
Returns a verbose string representation of this index.

Specified by:
toVerboseString in interface Index
Overrides:
toVerboseString in class NonUniqueIndex


Copyright © 2005 Apache Software Foundation. All Rights Reserved.