com.triactive.jdo.state
Class PersistentNontransactional

java.lang.Object
  extended bycom.triactive.jdo.state.LifeCycleState
      extended bycom.triactive.jdo.state.PersistentNontransactional

class PersistentNontransactional
extends LifeCycleState


Field Summary
static int HOLLOW
           
protected  boolean isDeleted
           
protected  boolean isDirty
           
protected  boolean isNew
           
protected  boolean isTransactional
           
protected static org.apache.log4j.Category LOG
           
static int P_CLEAN
           
static int P_DELETED
           
static int P_DIRTY
           
static int P_NEW
           
static int P_NEW_DELETED
           
static int P_NONTRANS
           
protected  int stateType
           
static int TOTAL
           
static int TRANSIENT
           
 
Constructor Summary
protected PersistentNontransactional()
           
 
Method Summary
protected  LifeCycleState changeState(StateManagerImpl sm, int newStateType)
           
static LifeCycleState getLifeCycleState(int stateType)
          Returns the LifeCycleState for the state constant.
 boolean isDeleted()
          Return whether the object is deleted.
 boolean isDirty()
          Return whether the object is dirty, ie has been changed (created, updated, deleted) in this Tx.
 boolean isNew()
          Return whether the object was newly created.
 boolean isTransactional()
          Return whether the object is transactional.
 int stateType()
          Returns the type of the life cycle state
 java.lang.String toString()
           
 LifeCycleState transitionCommit(StateManagerImpl sm, javax.jdo.Transaction tx)
           
 LifeCycleState transitionDeletePersistent(StateManagerImpl sm)
           
 LifeCycleState transitionEvict(StateManagerImpl sm)
           
 LifeCycleState transitionMakeNontransactional(StateManagerImpl sm)
           
 LifeCycleState transitionMakePersistent(StateManagerImpl sm)
           
 LifeCycleState transitionMakeTransactional(StateManagerImpl sm)
           
 LifeCycleState transitionMakeTransient(StateManagerImpl sm)
           
 LifeCycleState transitionReadField(StateManagerImpl sm, javax.jdo.Transaction tx)
           
 LifeCycleState transitionRefresh(StateManagerImpl sm)
           
 LifeCycleState transitionRefresh(StateManagerImpl sm, javax.jdo.Transaction tx)
           
 LifeCycleState transitionRetrieve(StateManagerImpl sm, javax.jdo.Transaction tx, boolean DFGOnly)
           
 LifeCycleState transitionRollback(StateManagerImpl sm, javax.jdo.Transaction tx)
           
 LifeCycleState transitionWriteField(StateManagerImpl sm, javax.jdo.Transaction tx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.log4j.Category LOG

HOLLOW

public static final int HOLLOW
See Also:
Constant Field Values

P_CLEAN

public static final int P_CLEAN
See Also:
Constant Field Values

P_DIRTY

public static final int P_DIRTY
See Also:
Constant Field Values

P_NEW

public static final int P_NEW
See Also:
Constant Field Values

P_NEW_DELETED

public static final int P_NEW_DELETED
See Also:
Constant Field Values

P_DELETED

public static final int P_DELETED
See Also:
Constant Field Values

P_NONTRANS

public static final int P_NONTRANS
See Also:
Constant Field Values

TRANSIENT

public static final int TRANSIENT
See Also:
Constant Field Values

TOTAL

public static final int TOTAL
See Also:
Constant Field Values

isDirty

protected boolean isDirty

isNew

protected boolean isNew

isDeleted

protected boolean isDeleted

isTransactional

protected boolean isTransactional

stateType

protected int stateType
Constructor Detail

PersistentNontransactional

protected PersistentNontransactional()
Method Detail

transitionDeletePersistent

public LifeCycleState transitionDeletePersistent(StateManagerImpl sm)
Overrides:
transitionDeletePersistent in class LifeCycleState

transitionMakeTransactional

public LifeCycleState transitionMakeTransactional(StateManagerImpl sm)
Overrides:
transitionMakeTransactional in class LifeCycleState

transitionMakeTransient

public LifeCycleState transitionMakeTransient(StateManagerImpl sm)
Overrides:
transitionMakeTransient in class LifeCycleState

transitionCommit

public LifeCycleState transitionCommit(StateManagerImpl sm,
                                       javax.jdo.Transaction tx)
Overrides:
transitionCommit in class LifeCycleState

transitionRollback

public LifeCycleState transitionRollback(StateManagerImpl sm,
                                         javax.jdo.Transaction tx)
Overrides:
transitionRollback in class LifeCycleState

transitionRefresh

public LifeCycleState transitionRefresh(StateManagerImpl sm)

transitionEvict

public LifeCycleState transitionEvict(StateManagerImpl sm)
Overrides:
transitionEvict in class LifeCycleState

transitionReadField

public LifeCycleState transitionReadField(StateManagerImpl sm,
                                          javax.jdo.Transaction tx)
Overrides:
transitionReadField in class LifeCycleState

transitionWriteField

public LifeCycleState transitionWriteField(StateManagerImpl sm,
                                           javax.jdo.Transaction tx)
Overrides:
transitionWriteField in class LifeCycleState

transitionRetrieve

public LifeCycleState transitionRetrieve(StateManagerImpl sm,
                                         javax.jdo.Transaction tx,
                                         boolean DFGOnly)
Overrides:
transitionRetrieve in class LifeCycleState

toString

public java.lang.String toString()

getLifeCycleState

public static LifeCycleState getLifeCycleState(int stateType)
Returns the LifeCycleState for the state constant.

Parameters:
stateType - the type as integer
Returns:
the type as LifeCycleState object

stateType

public int stateType()
Returns the type of the life cycle state

Returns:
the type of this life cycle state

changeState

protected LifeCycleState changeState(StateManagerImpl sm,
                                     int newStateType)

transitionMakePersistent

public LifeCycleState transitionMakePersistent(StateManagerImpl sm)

transitionMakeNontransactional

public LifeCycleState transitionMakeNontransactional(StateManagerImpl sm)

transitionRefresh

public LifeCycleState transitionRefresh(StateManagerImpl sm,
                                        javax.jdo.Transaction tx)

isDirty

public boolean isDirty()
Return whether the object is dirty, ie has been changed (created, updated, deleted) in this Tx.


isNew

public boolean isNew()
Return whether the object was newly created.


isDeleted

public boolean isDeleted()
Return whether the object is deleted.


isTransactional

public boolean isTransactional()
Return whether the object is transactional.



Copyright © 2001 TriActive, Inc. All Rights Reserved.