public abstract class LifeCycleState extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
AP_NEW
Constants to specify the life cycle state type
|
static int |
AP_NEW_DELETED
Constants to specify the life cycle state type
|
static int |
AP_NEW_FLUSHED
Constants to specify the life cycle state type
|
static int |
AP_NEW_FLUSHED_DELETED
Constants to specify the life cycle state type
|
static int |
AP_NEW_FLUSHED_PENDING
Constants to specify the life cycle state type
|
static int |
AP_NEW_PENDING
Constants to specify the life cycle state type
|
protected static int |
DELETE_OP
Constants to specify database operation to be executed
|
static int |
HOLLOW
Constants to specify the life cycle state type
|
protected static int |
INSERT_OP
Constants to specify database operation to be executed
|
protected boolean |
isAutoPersistent |
protected boolean |
isBeforeImageUpdatable |
protected boolean |
isDeleted |
protected boolean |
isDirty |
protected boolean |
isFlushed |
protected boolean |
isNavigable |
protected boolean |
isNew |
protected boolean |
isPersistent |
protected boolean |
isPersistentInDataStore |
protected boolean |
isRefreshable |
protected boolean |
isTransactional |
protected static ResourceBundle |
messages
I18N message handler
|
protected boolean |
needMerge |
protected boolean |
needsRegister |
protected boolean |
needsReload |
protected boolean |
needsRestoreOnRollback |
protected static int |
NO_OP
Constants to specify database operation to be executed
|
static int |
P_CLEAN
Constants to specify the life cycle state type
|
static int |
P_DELETED
Constants to specify the life cycle state type
|
static int |
P_DELETED_FLUSHED
Constants to specify the life cycle state type
|
static int |
P_DIRTY
Constants to specify the life cycle state type
|
static int |
P_NEW
Constants to specify the life cycle state type
|
static int |
P_NEW_DELETED
Constants to specify the life cycle state type
|
static int |
P_NEW_FLUSHED
Constants to specify the life cycle state type
|
static int |
P_NEW_FLUSHED_DELETED
Constants to specify the life cycle state type
|
static int |
P_NON_TX
Constants to specify the life cycle state type
|
protected int |
stateType |
static int |
TOTAL
Constants to specify the life cycle state type
|
static int |
TRANSIENT
Constants to specify the life cycle state type
|
protected static int |
UPDATE_OP
Constants to specify database operation to be executed
|
protected int |
updateAction |
| Constructor and Description |
|---|
LifeCycleState() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertTransaction(boolean transactionActive) |
LifeCycleState |
changeState(int newStateType)
Life Cycle State change
|
static LifeCycleState |
getLifeCycleState(int state)
Returns the LifeCycleState for the state constant.
|
int |
getUpdateAction() |
protected static void |
initLifeCycleState()
Initialises the objects.
|
boolean |
isAutoPersistent()
Return whether the object is auto-persistent.
|
boolean |
isBeforeImageUpdatable() |
boolean |
isDeleted()
Return whether the object is deleted.
|
boolean |
isDirty()
Return whether the object is dirty, i.e.
|
boolean |
isNavigable()
Return whether the object can dynamically navigate to fields that are
not present.
|
boolean |
isNew()
Return whether the object was newly created.
|
boolean |
isPersistent()
Return whether the object is persistent.
|
boolean |
isPersistentInDataStore()
Return whether the object is persistent in data store.
|
boolean |
isRefreshable()
Return whether the object can be refreshed from the database.
|
boolean |
isTransactional()
Return whether the object is transactional.
|
boolean |
needMerge() |
boolean |
needsRegister()
Return whether the object is registered with the persistence manager.
|
boolean |
needsReload(boolean optimistic,
boolean nontransactionalRead,
boolean transactionActive) |
boolean |
needsRestoreOnRollback(boolean retainValues) |
int |
stateType()
Returns the type of the life cycle state
|
String |
toString() |
LifeCycleState |
transitionCommit(boolean retainValues) |
LifeCycleState |
transitionDeletePersistent() |
LifeCycleState |
transitionFlushed() |
LifeCycleState |
transitionMakePending() |
LifeCycleState |
transitionMakePersistent() |
LifeCycleState |
transitionReadField(boolean optimisitic,
boolean nontransactionalRead,
boolean transactionActive) |
LifeCycleState |
transitionRefreshPersistent() |
LifeCycleState |
transitionReload(boolean transactionActive) |
LifeCycleState |
transitionRollback(boolean retainValues) |
LifeCycleState |
transitionWriteField(boolean transactionActive) |
protected static final ResourceBundle messages
protected boolean isPersistent
protected boolean isAutoPersistent
protected boolean isPersistentInDataStore
protected boolean isTransactional
protected boolean isDirty
protected boolean isNew
protected boolean isDeleted
protected boolean isFlushed
protected boolean isNavigable
protected boolean isRefreshable
protected boolean isBeforeImageUpdatable
protected boolean needsRegister
protected boolean needsReload
protected boolean needsRestoreOnRollback
protected boolean needMerge
protected int updateAction
protected int stateType
protected static final int NO_OP
protected static final int INSERT_OP
protected static final int UPDATE_OP
protected static final int DELETE_OP
public static final int HOLLOW
public static final int P_NON_TX
public static final int P_CLEAN
public static final int P_DIRTY
public static final int P_NEW
public static final int P_NEW_FLUSHED
public static final int P_NEW_FLUSHED_DELETED
public static final int P_NEW_DELETED
public static final int P_DELETED
public static final int P_DELETED_FLUSHED
public static final int AP_NEW
public static final int AP_NEW_PENDING
public static final int AP_NEW_FLUSHED
public static final int AP_NEW_FLUSHED_PENDING
public static final int AP_NEW_FLUSHED_DELETED
public static final int AP_NEW_DELETED
public static final int TRANSIENT
public static final int TOTAL
protected static void initLifeCycleState()
public static LifeCycleState getLifeCycleState(int state)
state - the type as integerpublic int stateType()
public LifeCycleState transitionMakePersistent()
public LifeCycleState transitionDeletePersistent()
public LifeCycleState transitionRefreshPersistent()
public LifeCycleState transitionReload(boolean transactionActive)
public LifeCycleState transitionCommit(boolean retainValues)
public LifeCycleState transitionRollback(boolean retainValues)
public LifeCycleState transitionFlushed()
public LifeCycleState transitionMakePending()
public LifeCycleState transitionReadField(boolean optimisitic, boolean nontransactionalRead, boolean transactionActive)
public LifeCycleState transitionWriteField(boolean transactionActive)
protected void assertTransaction(boolean transactionActive)
public boolean isPersistent()
public boolean isAutoPersistent()
public boolean isPersistentInDataStore()
public boolean isTransactional()
public boolean isDirty()
public boolean isNew()
public boolean isDeleted()
public boolean needsRegister()
public boolean isNavigable()
public boolean isRefreshable()
public boolean isBeforeImageUpdatable()
public boolean needsReload(boolean optimistic,
boolean nontransactionalRead,
boolean transactionActive)
public boolean needsRestoreOnRollback(boolean retainValues)
public boolean needMerge()
public int getUpdateAction()
public LifeCycleState changeState(int newStateType)
Copyright © 2019. All rights reserved.