org.apache.openjpa.kernel
Class PCState

java.lang.Object
  extended by 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 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:
Serialized Form

Field Summary
static PCState ECLEAN
          Embedded-Clean
static PCState ECOPY
          Embedded-Copy
static PCState EDELETED
          Embedded-Deleted
static PCState EDIRTY
          Embedded-Dirty
static PCState ENONTRANS
          Embedded-Nontransactional
static PCState HOLLOW
          Hollow; exists in data store
static PCState PCLEAN
          Persistent-Clean
static PCState PDELETED
          Persistent-Deleted
static PCState PDELETEDFLUSHED
          Persistent-Deleted-Flushed
static PCState PDIRTY
          Persistent-Dirty
static PCState PNEW
          Persistent-New
static PCState PNEWDELETED
          Persistent-New-Deleted
static PCState PNEWFLUSHEDDELETED
          Persistent-New-Flushed-Deleted
static PCState PNEWFLUSHEDDELETEDFLUSHED
          Persistent-New-Flushed-Deleted-Flushed
static PCState PNONTRANS
          Persistent-Nontransactinoal
static PCState PNONTRANSDELETED
          Persistent-Deleted-Nontransactional
static PCState PNONTRANSDIRTY
          Persistent-Dirty-Nontransactinoal
static PCState PNONTRANSNEW
          Persistent-New-Nontransactional
static PCState TCLEAN
          Transient-Clean
static PCState TDIRTY
          Transient-Dirty
static PCState TLOADED
          Transient-Loaded
static PCState TRANSIENT
          Transient; unmanaged instance
 
Constructor Summary
PCState()
           
 
Method Summary
protected  java.lang.Object readResolve()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


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 Detail

PCState

public PCState()
Method Detail

readResolve

protected java.lang.Object readResolve()
                                throws java.io.ObjectStreamException
Throws:
java.io.ObjectStreamException


Copyright © 2006 Apache Software Foundation. All Rights Reserved.