6.3. PersistenceManagerFactory

An instance of a concrete class implementing the PersistenceManagerFactory interface is provided as a part of each JDO implementation. This is the usual source from which PersistenceManager instances are obtained. Although it is possible to construct a PersistenceManager directly without doing so through a factory, as noted earlier, this approach is less common.

The PersistenceManagerFactory interface details accessor and mutator methods for each of its properties. The accessor (get) methods can be used at any time to determine the corresponding property values which are assigned to persistence managers obtained from a particular factory instance.

The mutator (set) methods may be used to configure the factory only ...

Get Java™ Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.