The javax.jdo.spi Package
The javax.jdo.spi
package defines interfaces used by JDO implementations.
Your application should not use the interfaces in this package. However,
a few interfaces in this package are useful for you to be aware of, as
they are directly responsible for managing the state of persistent
instances.
PersistenceCapable
The
PersistenceCapable
interface allows an implementation to manage the values of fields and the lifecycle state of persistent instances. Every instance managed by aPersistenceManager
needs to be of a class that implementsPersistenceCapable
. When you enhance a persistent class, code is added to the class to implement thePersistenceCapable
interface.You should not directly use the
PersistenceCapable
methods added by the enhancer. Some of its methods provide information useful to your application; these methods are made accessible to you through theJDOHelper
andPersistenceManager
interfaces.StateManager
Every persistent and transactional instance has a reference to a
StateManager
instance. (Chapter 13 covers transactional instances.) AStateManager
interfaces with thePersistenceManager
and is responsible for managing the values of fields and state transitions of an instance. (Chapter 11 covers state transitions.)JDOPermission
The
JDOPermission
class is used to grant the JDO implementation permission to perform privileged operations if you have a Java security manager in your Java runtime environment.JDOPermission
extendsjava.security.BasicPermission ...
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.