Package org.apache.openjpa.kernel
Class PCState
- java.lang.Object
-
- org.apache.openjpa.kernel.PCState
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
PNonTransDeletedState
public class PCState extends java.lang.Object implements java.io.Serializable
Base class for all lifecycle states. Each instance is managed by aOpenJPAStateManager
, 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static PCState
ECLEAN
Embedded-Cleanstatic PCState
ECOPY
Embedded-Copystatic PCState
EDELETED
Embedded-Deletedstatic PCState
EDIRTY
Embedded-Dirtystatic PCState
ENONTRANS
Embedded-Nontransactionalstatic PCState
HOLLOW
Hollow; exists in data storestatic PCState
PCLEAN
Persistent-Cleanstatic PCState
PDELETED
Persistent-Deletedstatic PCState
PDELETEDFLUSHED
Persistent-Deleted-Flushedstatic PCState
PDIRTY
Persistent-Dirtystatic PCState
PNEW
Persistent-Newstatic PCState
PNEWDELETED
Persistent-New-Deletedstatic PCState
PNEWFLUSHEDDELETED
Persistent-New-Flushed-Deletedstatic PCState
PNEWFLUSHEDDELETEDFLUSHED
Persistent-New-Flushed-Deleted-Flushedstatic PCState
PNEWPROVISIONAL
Persistent-New-Provisionalstatic PCState
PNONTRANS
Persistent-Nontransactinoalstatic PCState
PNONTRANSDELETED
Persistent-Deleted-Nontransactionalstatic PCState
PNONTRANSDIRTY
Persistent-Dirty-Nontransactinoalstatic PCState
PNONTRANSNEW
Persistent-New-Nontransactionalstatic PCState
TCLEAN
Transient-Cleanstatic PCState
TDIRTY
Transient-Dirtystatic PCState
TLOADED
Transient-Loadedstatic PCState
TRANSIENT
Transient; unmanaged instance
-
Constructor Summary
Constructors Constructor Description PCState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
readResolve()
-
-
-
Field Detail
-
PNEW
public static final PCState PNEW
Persistent-New
-
PCLEAN
public static final PCState PCLEAN
Persistent-Clean
-
PDIRTY
public static final PCState PDIRTY
Persistent-Dirty
-
PDELETED
public static final PCState PDELETED
Persistent-Deleted
-
PNEWDELETED
public static final PCState PNEWDELETED
Persistent-New-Deleted
-
PNEWPROVISIONAL
public static final PCState PNEWPROVISIONAL
Persistent-New-Provisional
-
PNONTRANS
public static final PCState PNONTRANS
Persistent-Nontransactinoal
-
PNONTRANSDIRTY
public static final PCState PNONTRANSDIRTY
Persistent-Dirty-Nontransactinoal
-
PNONTRANSNEW
public static final PCState PNONTRANSNEW
Persistent-New-Nontransactional
-
PNONTRANSDELETED
public static final PCState PNONTRANSDELETED
Persistent-Deleted-Nontransactional
-
HOLLOW
public static final PCState HOLLOW
Hollow; exists in data store
-
TRANSIENT
public static final PCState TRANSIENT
Transient; unmanaged instance
-
TCLEAN
public static final PCState TCLEAN
Transient-Clean
-
TDIRTY
public static final PCState TDIRTY
Transient-Dirty
-
TLOADED
public static final PCState TLOADED
Transient-Loaded
-
ECOPY
public static final PCState ECOPY
Embedded-Copy
-
ECLEAN
public static final PCState ECLEAN
Embedded-Clean
-
EDIRTY
public static final PCState EDIRTY
Embedded-Dirty
-
EDELETED
public static final PCState EDELETED
Embedded-Deleted
-
ENONTRANS
public static final PCState ENONTRANS
Embedded-Nontransactional
-
PNEWFLUSHEDDELETED
public static final PCState PNEWFLUSHEDDELETED
Persistent-New-Flushed-Deleted
-
PNEWFLUSHEDDELETEDFLUSHED
public static final PCState PNEWFLUSHEDDELETEDFLUSHED
Persistent-New-Flushed-Deleted-Flushed
-
PDELETEDFLUSHED
public static final PCState PDELETEDFLUSHED
Persistent-Deleted-Flushed
-
-