javax.jdo.identity.ObjectIdentity - JDO class
This class is for identity with a single Object type field.
- Since:
- JDO 1.0
Constructor only for Externalizable.
Constructor only for Externalizable.
- Since:
- JDO 1.0
Constructor with class and key.
Constructor with class and key.
- Parameters:
-
pcClass
- the class -
param
- the key
- Since:
- JDO 1.0
Determine the ordering of identity objects.
Determine the ordering of identity objects.
- Parameters:
-
o
- Other identity
- Returns:
- The relative ordering between the objects
- Since:
- JDO 2.2
Determine if the other object represents the same object id.
Determine if the other object represents the same object id.
- Parameters:
-
obj
- the other object
- Returns:
- true if both objects represent the same object id
- Since:
- JDO 1.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.
Return the key.
- Returns:
- the key
- 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 this object.
Read this object. Read the superclass first.
- Parameters:
-
in
- the input
- Since:
- JDO 1.0
Return the String form of the object id.
Return the String form of the object id. The class of the object id is written as the first part of the result so that the class can be reconstructed later. Then the toString of the key instance is appended. During construction, this process is reversed. The class is extracted from the first part of the String, and the String constructor of the key is used to construct the key itself.
- Returns:
- the String form of the key
- Since:
- JDO 1.0
Write this object.
Write this object. Write the superclass first.
- Parameters:
-
out
- the output
- Since:
- JDO 1.0