org.neodatis.odb.core.query
Class SimpleCompareKey

java.lang.Object
  extended by org.neodatis.odb.core.query.CompareKey
      extended by org.neodatis.odb.core.query.SimpleCompareKey
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, OdbComparable

public class SimpleCompareKey
extends CompareKey

A simple compare key : an object that contains various values used for indexing query result

See Also:
Serialized Form

Constructor Summary
SimpleCompareKey(java.lang.Comparable key)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleCompareKey

public SimpleCompareKey(java.lang.Comparable key)
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
Specified by:
compareTo in interface OdbComparable
Specified by:
compareTo in class CompareKey

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object