|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.speedo.api.LifeCycle
Representation of the life cycle of a JDO Instance.
Constructor Summary | |
LifeCycle()
|
Method Summary | |
static byte |
initState()
Gets the initial state |
static boolean |
isDeleted(byte status)
Indicates if the instance is deleted |
static boolean |
isDirty(byte status)
Indicates if the instance is dirty |
static boolean |
isNew(byte status)
Indicates if the instance is new |
static boolean |
isPersistent(byte status)
Indicates if the instance is persistent |
static boolean |
isTransactional(byte status)
Indicates if the instance is transactional |
static boolean |
isTransient(byte status)
Indicates if the instance is transient |
static byte |
makeDirty(byte status)
Make the instance dirty. |
static byte |
nextStatePersistenceCapable(byte status,
byte action)
Gets the state transition in the JDO instances life cycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte NOT_APPLICABLE
public static final byte ERROR
public static final byte TRANSIENT
public static final byte TRANSIENT_CLEAN
public static final byte TRANSIENT_DIRTY
public static final byte PERSISTENT_NEW
public static final byte PERSISTENT_NONTRANSACTIONAL
public static final byte PERSISTENT_CLEAN
public static final byte PERSISTENT_DIRTY
public static final byte HOLLOW
public static final byte PERSISTENT_DELETED
public static final byte PERSISTENT_NEW_DELETED
public static final byte ACTION_MAKEPERSISTENT
public static final byte ACTION_DELETEPERSISTENT
public static final byte ACTION_MAKETRANSACTIONAL
public static final byte ACTION_MAKENONTRANSACTIONAL
public static final byte ACTION_MAKETRANSIENT
public static final byte ACTION_COMMIT
public static final byte ACTION_COMMIT_RETAINVALUES
public static final byte ACTION_ROLLBACK
public static final byte ACTION_ROLLBACK_RETAINVALUES
public static final byte ACTION_REFRESH_ACTIVEDATASTORETRANSACTION
public static final byte ACTION_REFRESH_ACTIVEOPTIMISTICTRANSACTION
public static final byte ACTION_EVICT
public static final byte ACTION_READFIELD_OUTSIDETRANSACTION
public static final byte ACTION_READFIELD_ACTIVEOPTIMISTICTRANSACTION
public static final byte ACTION_READFIELD_ACTIVEDATASTORETRANSACTION
public static final byte ACTION_WRITEFIELD_ACTIVEDATASTORETRANSACTION
public static final byte ACTION_WRITEFIELD_OUTSIDETRANSACTION
public static final byte ACTION_MAKEDIRTY
Constructor Detail |
public LifeCycle()
Method Detail |
public static byte nextStatePersistenceCapable(byte status, byte action)
status
- current instance statusaction
- method that is currently invokedpublic static byte makeDirty(byte status)
status
- current statuspublic static boolean isPersistent(byte status)
status
- current instance statuspublic static boolean isTransactional(byte status)
status
- current instance statuspublic static boolean isNew(byte status)
status
- current instance statuspublic static boolean isDirty(byte status)
status
- current instance statuspublic static boolean isDeleted(byte status)
status
- current instance statuspublic static byte initState()
TRANSIENT
public static boolean isTransient(byte status)
status
- current instance status
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |