|
||||||||||
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.StringIdentity
public class StringIdentity
This class is for identity with a single String field.
Field Summary |
---|
Fields inherited from class javax.jdo.identity.SingleFieldIdentity |
---|
hashCode, keyAsObject, msg |
Constructor Summary | |
---|---|
StringIdentity()
Constructor only for Externalizable. |
|
StringIdentity(Class pcClass,
String key)
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. |
String |
getKey()
Return the key. |
void |
readExternal(ObjectInput in)
Read this object. |
String |
toString()
Return the String form of the key. |
void |
writeExternal(ObjectOutput out)
Write this object. |
Methods inherited from class javax.jdo.identity.SingleFieldIdentity |
---|
assertKeyNotNull, compare, createKeyAsObject, getKeyAsObject, getTargetClass, getTargetClassName, hashClassName, hashCode, setKeyAsObject |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringIdentity(Class pcClass, String key)
pcClass
- the classkey
- the keypublic StringIdentity()
Method Detail |
---|
public String getKey()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class SingleFieldIdentity
obj
- the other object
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 |