Class PCState

java.lang.Object
org.apache.openjpa.kernel.PCState
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PNonTransDeletedState

public class PCState extends Object implements Serializable
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 Details

    • 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
  • Constructor Details

    • PCState

      public PCState()
  • Method Details