Package org.datanucleus.state
Provides classes relating to the life cycle state management of a persistable object.
Refer to section 5.5 of the JDO 1.0 specification for a description of this type of StateManager.
The org.datanucleus.enhancement.StateManager definition of a StateManager is extended by org.datanucleus.state.DNStateManager
providing the additional handling needed for participating in the persistence process.
Each persistable object has a particular org.datanucleus.state.LifeCycleState and the associated states for each API allow transitioning between states
using the associated methods.
-
Interface Summary Interface Description CallbackHandler CallBack handlers receive notification of events on persistent objects.DNStateManager<T> StateManager for DataNucleus systems for a managed object, extending the basic enhancement contract for a StateManager.LockManager Interface defining a manager for locking of objects.RelationshipManager Manager for (bidirectional) relationships of an object (StateManager).StateManagerFactory Factory for StateManagers. -
Class Summary Class Description AppIdObjectIdFieldConsumer Simple class to handle the copying of PK fields from an object id to an object.LifeCycleState Base Class representing the life cycle state.LockManagerImpl Implementation of a lock manager for objects.ReferentialStateManagerImpl Implementation of a StateManager for use where insertion ordering is important (such as RDBMS).RelationshipManagerImpl Manager for (bidirectional) relationships of an object (StateManager).SavedState Definition of the saved state of a Persistable object.StateManagerFactoryImpl Factory for StateManagers.StateManagerImpl Implementation of a StateManager, supporting the bytecode enhancement contract of DataNucleus.StateManagerPool Pool of StateManager objects. -
Enum Summary Enum Description LockMode Locking modes for persistable objects. -
Exception Summary Exception Description IllegalStateTransitionException A IllegalStateTransitionException is thrown if a life-cycle state attempts a transition that is illegal.