|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.jdo.identity.SingleFieldIdentity javax.jdo.identity.ObjectIdentity
public class ObjectIdentity
This class is for identity with a single Object type field.
Field Summary |
---|
Fields inherited from class javax.jdo.identity.SingleFieldIdentity |
---|
hashCode, keyAsObject, msg |
Constructor Summary | |
---|---|
ObjectIdentity()
Constructor only for Externalizable. |
|
ObjectIdentity(java.lang.Class pcClass,
java.lang.Object param)
Constructor with class and key. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Determine the ordering of identity objects. |
boolean |
equals(java.lang.Object obj)
Determine if the other object represents the same object id. |
java.lang.Object |
getKey()
Return the key. |
int |
hashCode()
Provide the hash code for this instance. |
void |
readExternal(java.io.ObjectInput in)
Read this object. |
java.lang.String |
toString()
Return the String form of the object id. |
void |
writeExternal(java.io.ObjectOutput out)
Write this object. |
Methods inherited from class javax.jdo.identity.SingleFieldIdentity |
---|
assertKeyNotNull, compare, createKeyAsObject, getKeyAsObject, getTargetClass, getTargetClassName, hashClassName, setKeyAsObject |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObjectIdentity(java.lang.Class pcClass, java.lang.Object param)
pcClass
- the classparam
- the keypublic ObjectIdentity()
Method Detail |
---|
public java.lang.Object getKey()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class SingleFieldIdentity
obj
- the other object
public int hashCode()
hashCode
in class SingleFieldIdentity
public int compareTo(java.lang.Object o)
o
- Other identity
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class SingleFieldIdentity
out
- the output
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class SingleFieldIdentity
in
- the input
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |