Package org.jumpmind.db.model
Class UniqueIndex
java.lang.Object
org.jumpmind.db.model.IndexImpBase
org.jumpmind.db.model.UniqueIndex
- All Implemented Interfaces:
Serializable,Cloneable,IIndex
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:
-
Field Summary
Fields inherited from class org.jumpmind.db.model.IndexImpBase
columns, includedColumns, name, platformIndexes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones this index.booleanbooleanequalsIgnoreCase(IIndex other) Compares this index to the given one while ignoring the case of identifiers.inthashCode()booleanisUnique()Determines whether this index is unique or not.toString()Returns a verbose string representation of this index.Methods inherited from class org.jumpmind.db.model.IndexImpBase
addColumn, addIncludedColumn, addPlatformIndex, clonePlatformIndexes, findPlatformIndex, getColumn, getColumnCount, getColumns, getIncludedColumn, getIncludedColumnCount, getIncludedColumns, getName, getPlatformIndexes, hasAllPrimaryKeys, hasColumn, hasIncludedColumn, removeColumn, removeColumn, removePlatformIndex, setName
-
Constructor Details
-
UniqueIndex
public UniqueIndex() -
UniqueIndex
-
-
Method Details
-
isUnique
public boolean isUnique()Description copied from interface:IIndexDetermines whether this index is unique or not.- Returns:
trueif the index is an unique one
-
clone
Description copied from interface:IIndexClones this index.- Specified by:
clonein interfaceIIndex- Specified by:
clonein classIndexImpBase- Returns:
- The clone
- Throws:
CloneNotSupportedException- If the cloning did fail
-
equals
-
equalsIgnoreCase
Description copied from interface:IIndexCompares this index to the given one while ignoring the case of identifiers.- Parameters:
other- The other index- Returns:
trueif this index is equal (ignoring case) to the given one
-
hashCode
public int hashCode() -
toString
-
toVerboseString
Description copied from interface:IIndexReturns a verbose string representation of this index.- Returns:
- The string representation
-