javax.jdo.identity.SingleFieldIdentity - JDO class
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.
- Since:
- JDO 1.0
Constructor only for Externalizable.
Constructor only for Externalizable.
- Since:
- JDO 2.0
Check the class and class name and object type.
Check the class and class name and object type. If restored from serialization, class will be null so compare class name.
- Parameters:
-
obj
- the other object
- Returns:
- true if the class or class name is the same
- Since:
- JDO 1.0
Return the key as an Object.
Return the key as an Object. The method is synchronized to avoid race conditions in multi-threaded environments.
- Returns:
- the key as an Object.
- Since:
- JDO 2.0
Return the target class.
Return the target class.
- Returns:
- the target class.
- Since:
- JDO 2.0
Return the target class name.
Return the target class name.
- Returns:
- the target class name.
- Since:
- JDO 2.0
Return the cached hash code.
Return the cached hash code.
- Returns:
- the cached hash code.
- Since:
- JDO 1.0
Read from the input stream.
Read from the input stream. Creates a new instance with the target class name set
- Parameters:
-
in
-
- Since:
- JDO 1.0
Write to the output stream.
Write to the output stream.
- Parameters:
-
out
- the stream
- Since:
- JDO 1.0