public abstract class ObjectKey<T> extends Object implements Serializable, Comparable<Object>
| Constructor and Description | 
|---|
| ObjectKey()Initializes the internal key value to  null. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | appendTo(StringBuilder sb)Appends a String representation of the key to a buffer. | 
| int | compareTo(Object obj)Implements the compareTo method. | 
| boolean | equals(Object obj)Returns whether this ObjekctKey is equal to another Object. | 
| abstract int | getJdbcType()Returns the JDBC type of the key
 as defined in  java.sql.Types. | 
| T | getValue()Get the underlying object. | 
| int | hashCode()Returns the hashcode of the underlying value (key), if key is
 not null. | 
| <O extends ObjectKey<T>> | setValue(O key)Sets the internal representation to the same object used by key. | 
| void | setValue(T key)Sets the internal representation. | 
| String | toString()Get a String representation of this key. | 
public int hashCode()
public boolean equals(Object obj)
public T getValue()
public abstract int getJdbcType()
java.sql.Types.public void appendTo(StringBuilder sb)
sb - a StringBuilderpublic int compareTo(Object obj)
compareTo in interface Comparable<Object>obj - the object to compare to this objectpublic void setValue(T key)
key - the key valuepublic <O extends ObjectKey<T>> void setValue(O key)
O - the key typekey - the key valueCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.