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.
PersistenceCapableThe
PersistenceCapableinterface allows an implementation to manage the values of fields and the lifecycle state of persistent instances. Every instance managed by aPersistenceManagerneeds to be of a class that implementsPersistenceCapable. When you enhance a persistent class, code is added to the class to implement thePersistenceCapableinterface.You should not directly use the
PersistenceCapablemethods added by the enhancer. Some of its methods provide information useful to your application; these methods are made accessible to you through theJDOHelperandPersistenceManagerinterfaces.StateManagerEvery persistent and transactional instance has a reference to a
StateManagerinstance. (Chapter 13 covers transactional instances.) AStateManagerinterfaces with thePersistenceManagerand is responsible for managing the values of fields and state transitions of an instance. (Chapter 11 covers state transitions.)JDOPermissionThe
JDOPermissionclass is used to grant the JDO implementation permission to perform privileged operations if you have a Java security manager in your Java runtime environment.JDOPermissionextendsjava.security.BasicPermission ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access