Package org.jumpmind.db.model
Class NonUniqueIndex
java.lang.Object
org.jumpmind.db.model.IndexImpBase
org.jumpmind.db.model.NonUniqueIndex
- All Implemented Interfaces:
Serializable
,Cloneable
,IIndex
Represents an index definition for a 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.boolean
boolean
equalsIgnoreCase
(IIndex 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 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
-
NonUniqueIndex
public NonUniqueIndex() -
NonUniqueIndex
-
-
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
Description copied from interface:IIndex
Clones this index.- Specified by:
clone
in interfaceIIndex
- Specified by:
clone
in classIndexImpBase
- Returns:
- The clone
- Throws:
CloneNotSupportedException
- If the cloning did fail
-
equals
-
equalsIgnoreCase
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() -
toString
-
toVerboseString
Description copied from interface:IIndex
Returns a verbose string representation of this index.- Returns:
- The string representation
-