com.triactive.jdo.state
Class PersistentDirty
java.lang.Object
com.triactive.jdo.state.LifeCycleState
com.triactive.jdo.state.PersistentDirty
- class PersistentDirty
- extends LifeCycleState
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,
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 |
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
PersistentDirty
protected PersistentDirty()
transitionDeletePersistent
public LifeCycleState transitionDeletePersistent(StateManagerImpl sm)
- Overrides:
transitionDeletePersistent
in class LifeCycleState
transitionMakeNontransactional
public LifeCycleState transitionMakeNontransactional(StateManagerImpl sm)
- Overrides:
transitionMakeNontransactional
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,
javax.jdo.Transaction tx)
- Overrides:
transitionRefresh
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)
transitionMakeTransactional
public LifeCycleState transitionMakeTransactional(StateManagerImpl sm)
transitionEvict
public LifeCycleState transitionEvict(StateManagerImpl sm)
transitionReadField
public LifeCycleState transitionReadField(StateManagerImpl sm,
javax.jdo.Transaction tx)
transitionWriteField
public LifeCycleState transitionWriteField(StateManagerImpl sm,
javax.jdo.Transaction tx)
transitionRetrieve
public LifeCycleState transitionRetrieve(StateManagerImpl sm,
javax.jdo.Transaction tx,
boolean DFGOnly)
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.