ObjectDB ObjectDB

jdoGetTransactionalObjectId() - JDO PersistenceCapable's method

Method
javax.jdo.spi.PersistenceCapable
Object jdoGetTransactionalObjectId()

Return a copy of the JDO identity associated with this instance. This method is the same as jdoGetObjectId if the identity of the instance has not changed in the current transaction.

If the JDO identity is being changed in the transaction, this method returns the current object id as modified in the current transaction.

Returns:
a copy of the ObjectId of this instance as modified in the transaction.
Since:
JDO 1.0
See Also:
jdoGetObjectId()
PersistenceManager.getObjectId(Object pc)
PersistenceManager.getObjectById(Object oid, boolean validate)