Package org.apache.openjpa.kernel
Class PCState
java.lang.Object
org.apache.openjpa.kernel.PCState
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PNonTransDeletedState
Base class for all lifecycle states. Each instance is managed by
a
OpenJPAStateManager
, which in turn keeps a reference to its current
state.
The state governs the behavior of the instance during all lifecycle
events. The class itself is stateless, and is provided its context
on each method call. This base class provides no-op implementations
of all methods and maintains static singelton shared references to each
possible state.- Author:
- Abe White
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PCState
Embedded-Cleanstatic final PCState
Embedded-Copystatic final PCState
Embedded-Deletedstatic final PCState
Embedded-Dirtystatic final PCState
Embedded-Nontransactionalstatic final PCState
Hollow; exists in data storestatic final PCState
Persistent-Cleanstatic final PCState
Persistent-Deletedstatic final PCState
Persistent-Deleted-Flushedstatic final PCState
Persistent-Dirtystatic final PCState
Persistent-Newstatic final PCState
Persistent-New-Deletedstatic final PCState
Persistent-New-Flushed-Deletedstatic final PCState
Persistent-New-Flushed-Deleted-Flushedstatic final PCState
Persistent-New-Provisionalstatic final PCState
Persistent-Nontransactinoalstatic final PCState
Persistent-Deleted-Nontransactionalstatic final PCState
Persistent-Dirty-Nontransactinoalstatic final PCState
Persistent-New-Nontransactionalstatic final PCState
Transient-Cleanstatic final PCState
Transient-Dirtystatic final PCState
Transient-Loadedstatic final PCState
Transient; unmanaged instance -
Constructor Summary
-
Method Summary
-
Field Details
-
PNEW
Persistent-New -
PCLEAN
Persistent-Clean -
PDIRTY
Persistent-Dirty -
PDELETED
Persistent-Deleted -
PNEWDELETED
Persistent-New-Deleted -
PNEWPROVISIONAL
Persistent-New-Provisional -
PNONTRANS
Persistent-Nontransactinoal -
PNONTRANSDIRTY
Persistent-Dirty-Nontransactinoal -
PNONTRANSNEW
Persistent-New-Nontransactional -
PNONTRANSDELETED
Persistent-Deleted-Nontransactional -
HOLLOW
Hollow; exists in data store -
TRANSIENT
Transient; unmanaged instance -
TCLEAN
Transient-Clean -
TDIRTY
Transient-Dirty -
TLOADED
Transient-Loaded -
ECOPY
Embedded-Copy -
ECLEAN
Embedded-Clean -
EDIRTY
Embedded-Dirty -
EDELETED
Embedded-Deleted -
ENONTRANS
Embedded-Nontransactional -
PNEWFLUSHEDDELETED
Persistent-New-Flushed-Deleted -
PNEWFLUSHEDDELETEDFLUSHED
Persistent-New-Flushed-Deleted-Flushed -
PDELETEDFLUSHED
Persistent-Deleted-Flushed
-
-
Constructor Details
-
PCState
public PCState()
-
-
Method Details
-
readResolve
- Throws:
ObjectStreamException
-