|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.om.ObjectKey
public abstract class ObjectKey
This class can be used to uniquely identify an object within an application. There are four subclasses: StringKey, NumberKey, and DateKey, and ComboKey which is a Key made up of a combination ofthe first three.
| Field Summary | |
|---|---|
protected java.lang.Object |
key
The underlying key value. |
| Constructor Summary | |
|---|---|
protected |
ObjectKey()
Initializes the internal key value to null. |
| Method Summary | |
|---|---|
void |
appendTo(java.lang.StringBuffer sb)
Appends a String representation of the key to a buffer. |
int |
compareTo(java.lang.Object obj)
Implements the compareTo method. |
java.lang.Object |
getValue()
Get the underlying object. |
int |
hashCode()
Returns the hashcode of the underlying value (key), if key is not null. |
abstract void |
setValue(java.lang.String s)
Reset the underlying object using a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Object key
| Constructor Detail |
|---|
protected ObjectKey()
null.
| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectint valuepublic java.lang.Object getValue()
public void appendTo(java.lang.StringBuffer sb)
sb - a StringBufferpublic int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - the object to compare to this object
public abstract void setValue(java.lang.String s)
throws TorqueException
s - a String value
TorqueException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||