|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.jonas_ejb.container.JEntitySwitch
org.objectweb.jonas_ejb.container.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.objectweb.jonas_ejb.container.JEntitySwitch |
bf, blockedtx, counter, countIH, countIT, deadlockTimeout, estimestamp, FEW_SECONDS, ident, inactivityTimeout, inDirtyList, 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(javax.transaction.Transaction tx)
|
int |
getState()
|
protected void |
initpolicy(JEntityFactory bf)
|
int |
passivateIH(boolean store,
boolean passivate)
try to passivate instances |
protected void |
removeContext4Tx(javax.transaction.Transaction tx)
|
protected void |
setContext4Tx(javax.transaction.Transaction tx,
JEntityContext ctx)
|
void |
waitmyturn(javax.transaction.Transaction tx)
|
| Methods inherited from class org.objectweb.jonas_ejb.container.JEntitySwitch |
bindICtx, discardContext, forceDiscardICtx, getBeanFactory, getBlockingTx, getEntityTimerService, getICtx, getICtx, getLocal, getPolicy, getPrimaryKey, getRemote, init, lazyRegistering, mapICtx, notifyTimeout, notifyWriting, registerCtx, releaseICtx, 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(javax.transaction.Transaction tx)
protected void setContext4Tx(javax.transaction.Transaction tx,
JEntityContext ctx)
tx - The Transactionprotected void removeContext4Tx(javax.transaction.Transaction tx)
public void waitmyturn(javax.transaction.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 | |||||||||