getObjectId(pc) - JDO JDOHelper's static method
Static Method javax.jdo.JDOHelper
Persistent instances of
PersistenceCapable classes have a JDO identity managed by the
PersistenceManager. This method returns a copy of the ObjectId that represents the JDO identity.
Transient instances and instances of classes that do not implement
The ObjectId may be serialized and later restored, and used with a
PersistenceManager from the same JDO implementation to locate a persistent instance with the same data store identity.
If the JDO identity is managed by the application, then the ObjectId may be used with a
PersistenceManager from any JDO implementation that supports the
If the JDO identity is not managed by the application or the data store, then the ObjectId returned is only valid within the current transaction.
pc- the PersistenceCapable instance.
- a copy of the ObjectId of the parameter instance as of the beginning of the transaction.
- JDO 1.0