|
||||||||||
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.JEntitySwitchDB
DataBase lock policy : 1 instance per transactions. Transaction Isolation is managed by the database.
Field Summary | |
protected JEntityContext |
ihContext
EntityContext for non-transacted requests |
protected java.util.HashMap |
itsContext
Map of EntityContext's for transactions Key is the Transaction. |
Fields inherited from class org.objectweb.jonas_ejb.container.JEntitySwitch |
bf, blockedtx, counter, countIH, countIT, ident, inactivityTimeout, inDirtyList, isremoved, lazyregister, local, lockpolicy, mustReload, mustStore, myTimerService, pk, reentrant, remote, runningtx, shared, timestamp, todiscard, txUpdates, waiters, writingtx |
Constructor Summary | |
JEntitySwitchDB()
empty constructor. |
Method Summary | |
void |
endIH()
|
protected JEntityContext |
getContext4Tx(javax.transaction.Transaction tx)
|
JEntityContext |
getICtx(javax.transaction.Transaction tx,
boolean checkr)
Get a context/instance associated with this transaction Called at each request on the bean (including remove) |
int |
getState()
|
protected void |
initpolicy(JEntityFactory bf)
|
void |
notifyWriting(javax.transaction.Transaction tx,
JEntityContext bctx)
This transaction has just modified this instance. |
boolean |
passivateIH(boolean passivation)
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, discardICtx, getBeanFactory, getBlockedTx, getBlockingTx, getEntityTimerService, getICtx, getLocal, getPolicy, getPrimaryKey, getRemote, init, lazyRegistering, mapICtx, notifyTimeout, 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 ihContext
protected java.util.HashMap itsContext
Constructor Detail |
public JEntitySwitchDB()
Method Detail |
protected void initpolicy(JEntityFactory bf)
initpolicy
in class JEntitySwitch
protected JEntityContext getContext4Tx(javax.transaction.Transaction tx)
tx
- The Transaction
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 boolean passivateIH(boolean passivation)
passivateIH
in class JEntitySwitch
passivation
- false if only store bean state.
public void endIH()
endIH
in class JEntitySwitch
public JEntityContext getICtx(javax.transaction.Transaction tx, boolean checkr)
getICtx
in class JEntitySwitch
tx
- - the Transaction object
public void notifyWriting(javax.transaction.Transaction tx, JEntityContext bctx)
notifyWriting
in class JEntitySwitch
tx
- transactionpublic int getState()
getState
in class JEntitySwitch
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |