3.2. The JDO Basics
The JDO specification defines 20 or so classes and interfaces in total, but a developer needs to know only five main classes (which are actually Java interfaces):
PersistenceManagerFactory
PersistenceManager
Extent
Query
Transaction
Figure 3-3 provides a simplified class diagram showing how these interfaces are related:
Figure 3-3. A simplified JDO class diagram.
A PersistenceManagerFactory is used to get a PersistenceManager instance. There is a one-to-many relationship between the PersistenceManagerFactory and the PersistenceManager. A PersistenceManagerFactory can create and manage many PersistenceManager instances and even ...
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.