|
||||||||||
| 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.ByteIdentity
public class ByteIdentity
This class is for identity with a single byte field.
| Constructor Summary | |
|---|---|
ByteIdentity()
Constructor only for Externalizable. |
|
ByteIdentity(java.lang.Class pcClass,
byte key)
Constructor with class and key. |
|
ByteIdentity(java.lang.Class pcClass,
java.lang.Byte key)
Constructor with class and key. |
|
ByteIdentity(java.lang.Class pcClass,
java.lang.String str)
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. |
byte |
getKey()
Return the key. |
void |
readExternal(java.io.ObjectInput in)
Read this object. |
java.lang.String |
toString()
Return the String version of the key. |
void |
writeExternal(java.io.ObjectOutput out)
Write this object. |
| Methods inherited from class javax.jdo.identity.SingleFieldIdentity |
|---|
getKeyAsObject, getTargetClass, getTargetClassName, hashCode |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ByteIdentity(java.lang.Class pcClass,
byte key)
pcClass - the target classkey - the key
public ByteIdentity(java.lang.Class pcClass,
java.lang.Byte key)
pcClass - the target classkey - the key
public ByteIdentity(java.lang.Class pcClass,
java.lang.String str)
pcClass - the target classstr - the keypublic ByteIdentity()
| Method Detail |
|---|
public byte 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
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.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 | |||||||||