ObjectDB ObjectDB

getPersistenceManager(pc) - JDO JDOHelper's static method

Static Method
javax.jdo.JDOHelper
PersistenceManager getPersistenceManager(
  Object pc
)

Return the associated PersistenceManager if there is one. Transactional and persistent instances return the associated PersistenceManager.

Transient non-transactional instances and instances of classes that do not implement PersistenceCapable return null.

Parameters:
pc - the PersistenceCapable instance.
Returns:
the PersistenceManager associated with the parameter instance.
Since:
JDO 1.0
See Also:
PersistenceCapable.jdoGetPersistenceManager()