The diagram above presents an overview of the
PersistenceManager interface. For a complete
treatment of the
PersistenceManager API, see the
Javadoc documentation. Methods whose parameter signatures consist
of an ellipsis (...) are overloaded to take multiple parameter types.
Kodo extends the standard
PersistenceManager is the primary interface
to the JDO runtime.
PersistenceManager manages a cache of
persistent and transactional objects, and has an association with
We divide the methods of the
into the following functional categories:
User object association.
Persistence-capable lifecycle management.
Detach and attach functionality.
JDO identity management.
public Object getUserObject (); public void setUserObject (Object obj); public Object putUserObject (Object key, Object obj); public Object getUserObject (Object key); public Object removeUserObject (Object key);
PersistenceManager's user objects
allow you to associate arbitrary objects with each
PersistenceManager. The given objects are not
used in any way by the JDO implementation.
methods associate a primary user object with the
removeUserObject methods, on the other hand,
delegate to an internal map of secondary user objects. As in the
java.util.Map APIs, the
remove operations return
the object formerly stored under the given key.