|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.jdo.identity.SingleFieldIdentity
public abstract class SingleFieldIdentity
This class is the abstract base class for all single field identity classes. A common case of application identity uses exactly one persistent field in the class to represent identity. In this case, the application can use a standard JDO class instead of creating a new user-defined class for the purpose.
| Constructor Summary | |
|---|---|
SingleFieldIdentity()
Constructor only for Externalizable. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Check the class and class name and object type. |
java.lang.Object |
getKeyAsObject()
Return the key as an Object. |
java.lang.Class |
getTargetClass()
Return the target class. |
java.lang.String |
getTargetClassName()
Return the target class name. |
int |
hashCode()
Return the cached hash code. |
void |
readExternal(java.io.ObjectInput in)
Read from the input stream. |
void |
writeExternal(java.io.ObjectOutput out)
Write to the output stream. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public SingleFieldIdentity()
| Method Detail |
|---|
public java.lang.Class getTargetClass()
public java.lang.String getTargetClassName()
public java.lang.Object getKeyAsObject()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the other object
public int hashCode()
hashCode in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - the stream
java.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||