|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.ejb21.JEntitySwitch
org.ow2.jonas.lib.ejb21.JEntitySwitchCRC
public class JEntitySwitchCRC
Container read committed lock policy. transactions are serialized by the container. Accesses outside transaction read committed state.
| Field Summary | |
|---|---|
protected JEntityContext |
ihContext
EntityContext for non-transacted requests |
protected JEntityContext |
itContext
EntityContext for transacted requests |
| Fields inherited from class org.ow2.jonas.lib.ejb21.JEntitySwitch |
|---|
bf, blockedtx, counter, countIH, countIT, deadlockTimeout, estimestamp, FEW_SECONDS, ident, inactivityTimeout, inDirtyList, infindbypk, isdetached, isremoved, lazyregister, local, lockpolicy, mustReload, mustStore, myTimerService, pk, readTimeout, reentrant, remote, runningtx, shared, todiscard, txUpdates, waiters, writingtx |
| Constructor Summary | |
|---|---|
JEntitySwitchCRC()
empty constructor. |
|
| Method Summary | |
|---|---|
void |
endIH()
Called only for CS policy, after passivateIH |
protected JEntityContext |
getContext4Tx(Transaction tx)
|
int |
getState()
|
protected void |
initpolicy(JEntityFactory bf)
|
int |
passivateIH(boolean store,
boolean passivate)
try to passivate instances |
protected void |
removeContext4Tx(Transaction tx)
|
protected void |
setContext4Tx(Transaction tx,
JEntityContext ctx)
|
void |
waitmyturn(Transaction tx)
|
| Methods inherited from class org.ow2.jonas.lib.ejb21.JEntitySwitch |
|---|
bindICtx, detachPk, discardContext, forceDiscardICtx, getBeanFactory, getBlockingTx, getEntityTimerService, getICtx, getICtx, getLocal, getPolicy, getPrimaryKey, getRemote, init, isInFindByPK, isWriteInsideTx, lazyRegistering, mapICtx, notifyTimeout, notifyWriting, registerCtx, releaseICtx, setInFindByPK, terminate, tryBindICtx, txCompleted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JEntityContext itContext
protected JEntityContext ihContext
| Constructor Detail |
|---|
public JEntitySwitchCRC()
| Method Detail |
|---|
protected void initpolicy(JEntityFactory bf)
initpolicy in class JEntitySwitchprotected JEntityContext getContext4Tx(Transaction tx)
protected void setContext4Tx(Transaction tx,
JEntityContext ctx)
tx - The Transactionthe - JEntityContext used for this txprotected void removeContext4Tx(Transaction tx)
public void waitmyturn(Transaction tx)
public int passivateIH(boolean store,
boolean passivate)
passivateIH in class JEntitySwitchstore - not used for this policypassivate - always true for this policy
public void endIH()
JEntitySwitch
endIH in class JEntitySwitchpublic int getState()
getState in class JEntitySwitch
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||