Chapter 8. PersistenceManager
Prev | Part II. Java Data Objects | Next

## Chapter 8. PersistenceManager

The diagram above presents an overview of the most commonly-used methods and properties of the `PersistenceManager` interface. For a complete treatment of the `PersistenceManager` API, see the Javadoc documentation. Java bean-like properties with "getter" and "setter" methods are listed as field declarations. Methods whose parameter signatures consist of an ellipsis (...) are overloaded to take multiple parameter types.

The `PersistenceManager` is the primary interface used by application developers to interact with the JDO runtime. Each `PersistenceManager` manages a cache of persistent and transactional objects, and has an association with a single `Transaction`.

The methods of the `PersistenceManager` can be divided into the following functional categories:

- User object association.

- Configuration properties.

- `Transaction` association.

- Persistence-capable lifecycle management.

- JDO identity management.

- `Query` factory.

- `Extent` factory.

- Closing.

## 8.1. User Object Association

    public Object getUserObject ();
    public void setUserObject (Object obj);

The `PersistenceManager`'s `UserObject` property allows you to associate an arbitrary object with each `PersistenceManager`. The given object is not used in any way by the JDO implementation.

Prev | Up | Next
7.4. Properties and Supported Options | Home | 8.2. Configuration Properties