Class UniqueIndex

java.lang.Object
org.jumpmind.db.model.IndexImpBase
org.jumpmind.db.model.UniqueIndex
All Implemented Interfaces:
Serializable, Cloneable, IIndex

public class UniqueIndex extends IndexImpBase
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.
See Also:
  • Constructor Details

    • UniqueIndex

      public UniqueIndex()
    • UniqueIndex

      public UniqueIndex(String name)
  • Method Details

    • isUnique

      public boolean isUnique()
      Description copied from interface: IIndex
      Determines whether this index is unique or not.
      Returns:
      true if the index is an unique one
    • clone

      public Object clone() throws CloneNotSupportedException
      Description copied from interface: IIndex
      Clones this index.
      Specified by:
      clone in interface IIndex
      Specified by:
      clone in class IndexImpBase
      Returns:
      The clone
      Throws:
      CloneNotSupportedException - If the cloning did fail
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsIgnoreCase

      public boolean equalsIgnoreCase(IIndex other)
      Description copied from interface: IIndex
      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()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toVerboseString

      public String toVerboseString()
      Description copied from interface: IIndex
      Returns a verbose string representation of this index.
      Returns:
      The string representation