|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.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(Class pcClass,
Object param)
Constructor with class and key. |
Method Summary | |
---|---|
int |
compareTo(Object o)
Determine the ordering of identity objects. |
boolean |
equals(Object obj)
Determine if the other object represents the same object id. |
Object |
getKey()
Return the key. |
int |
hashCode()
Provide the hash code for this instance. |
void |
readExternal(ObjectInput in)
Read this object. |
String |
toString()
Return the String form of the object id. |
void |
writeExternal(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(Class pcClass, Object param)
pcClass
- the classparam
- the keypublic ObjectIdentity()
Method Detail |
---|
public Object getKey()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class SingleFieldIdentity
obj
- the other object
public int hashCode()
hashCode
in class SingleFieldIdentity
public int compareTo(Object o)
o
- Other identity
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class SingleFieldIdentity
out
- the output
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class SingleFieldIdentity
in
- the input
IOException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |