|
||||||||||
| 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(java.lang.Class pcClass,
short key)
Constructor with class and key. |
|
ShortIdentity(java.lang.Class pcClass,
java.lang.Short key)
Constructor with class and key. |
|
ShortIdentity(java.lang.Class pcClass,
java.lang.String str)
Constructor with class and key. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
createKeyAsObject()
Create the key as an Object. |
boolean |
equals(java.lang.Object obj)
Determine if the other object represents the same object id. |
short |
getKey()
Return the key. |
void |
readExternal(java.io.ObjectInput in)
Read this object. |
java.lang.String |
toString()
Return the String form of the key. |
void |
writeExternal(java.io.ObjectOutput out)
Write this object. |
| Methods inherited from class javax.jdo.identity.SingleFieldIdentity |
|---|
assertKeyNotNull, 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(java.lang.Class pcClass,
short key)
pcClass - the classkey - the key
public ShortIdentity(java.lang.Class pcClass,
java.lang.Short key)
pcClass - the classkey - the key
public ShortIdentity(java.lang.Class pcClass,
java.lang.String str)
pcClass - the classstr - the keypublic ShortIdentity()
| Method Detail |
|---|
public short getKey()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class SingleFieldIdentityobj - the other object
protected java.lang.Object createKeyAsObject()
createKeyAsObject in class SingleFieldIdentity
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class SingleFieldIdentityout - the output
java.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class SingleFieldIdentityin - the input
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||