Methods Summary |
---|
public boolean | needsReload(boolean optimistic, boolean nontransactionalRead, boolean transactionActive)
//
// Don't allow reload in the transaction is not active
// and nontransactionalRead is false.
//
if (!transactionActive && !nontransactionalRead) {
return false;
}
return true;
|
public LifeCycleState | transitionDeletePersistent()Operations that cause life cycle state transitions
return changeState(P_DELETED);
|
public LifeCycleState | transitionReadField(boolean optimistic, boolean nontransactionalRead, boolean transactionActive)
if (!nontransactionalRead) {
assertTransaction(transactionActive);
}
if (optimistic || (nontransactionalRead && !transactionActive)) {
return changeState(P_NON_TX);
} else {
return changeState(P_CLEAN);
}
|
public LifeCycleState | transitionWriteField(boolean transactionActive)
assertTransaction(transactionActive);
return changeState(P_DIRTY);
|