|
||||||||||
| 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.ShortIdentity
public class ShortIdentity
This class is for identity with a single short field.
| Field Summary |
|---|
| Fields inherited from class javax.jdo.identity.SingleFieldIdentity |
|---|
hashCode, keyAsObject, msg |
| Constructor Summary | |
|---|---|
ShortIdentity()
Constructor only for Externalizable. |
|
ShortIdentity(Class pcClass,
short key)
Constructor with class and key. |
|
ShortIdentity(Class pcClass,
Short key)
Constructor with class and key. |
|
ShortIdentity(Class pcClass,
String str)
Constructor with class and key. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Determine the ordering of identity objects. |
protected Object |
createKeyAsObject()
Create the key as an Object. |
boolean |
equals(Object obj)
Determine if the other object represents the same object id. |
short |
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, getKeyAsObject, getTargetClass, getTargetClassName, hashClassName, hashCode, setKeyAsObject |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ShortIdentity(Class pcClass,
short key)
pcClass - the classkey - the key
public ShortIdentity(Class pcClass,
Short key)
pcClass - the classkey - the key
public ShortIdentity(Class pcClass,
String str)
pcClass - the classstr - the keypublic ShortIdentity()
| Method Detail |
|---|
public short getKey()
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class SingleFieldIdentityobj - the other object
public int compareTo(Object o)
o - Other identity
protected Object createKeyAsObject()
createKeyAsObject in class SingleFieldIdentity
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class SingleFieldIdentityout - the output
IOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class SingleFieldIdentityin - the input
IOException
ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||