5.3. Basic APIs

The following six interfaces provide the basic set of JDO APIs that most applications need to use:

  • PersistenceManagerFactory

  • PersistenceManager

  • Transaction

  • Query

  • Extent

  • InstanceCallbacks

For each interface described in the following sections, you find a description of its purpose, followed by an overview of each method, and then examples that show how to use those methods in practice.

5.3.1. javax.jdo.PersistenceManagerFactory

The PersistenceManagerFactory interface is typically the starting point for any JDO application; from it, an application gets instances of PersistenceManager. The PersistenceManagerFactory has a number of standard properties that can be configured; in addition, vendors can add their own properties to their

Get Core 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.