Home » JDO » PersistenceCapable » jdoGetPersistenceManager() - JDO PersistenceCapable's method

jdoGetPersistenceManager() - JDO PersistenceCapable's method

Method
javax.jdo.spi.PersistenceCapable
PersistenceManager jdoGetPersistenceManager()

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

Transient non-transactional instances return null.

This method always delegates to the StateManager if it is non-null.

Returns:
the PersistenceManager associated with this instance.
Since:
JDO 1.0

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.