|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.ejb21.JEntitySwitch org.ow2.jonas.lib.ejb21.JEntitySwitchDB
public class 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 HashMap |
itsContext
Map of EntityContext's for transactions Key is the Transaction. |
Fields inherited from class org.ow2.jonas.lib.ejb21.JEntitySwitch |
---|
bf, blockedtx, counter, countIH, countIT, deadlockTimeout, estimestamp, FEW_SECONDS, ident, inactivityTimeout, inDirtyList, isdetached, isremoved, lazyregister, local, lockpolicy, mustReload, mustStore, myTimerService, pk, readTimeout, reentrant, remote, runningtx, shared, todiscard, txUpdates, waiters, writingtx |
Constructor Summary | |
---|---|
JEntitySwitchDB()
empty constructor. |
Method Summary | |
---|---|
void |
endIH()
Called only for CS policy, after passivateIH |
protected JEntityContext |
getContext4Tx(Transaction tx)
|
JEntityContext |
getICtx(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)
|
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, 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 ihContext
protected HashMap itsContext
Constructor Detail |
---|
public JEntitySwitchDB()
Method Detail |
---|
protected void initpolicy(JEntityFactory bf)
initpolicy
in class JEntitySwitch
protected JEntityContext getContext4Tx(Transaction tx)
tx
- The Transaction
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 JEntitySwitch
store
- not used for this policypassivate
- always true for this policy
public void endIH()
JEntitySwitch
endIH
in class JEntitySwitch
public JEntityContext getICtx(Transaction tx, boolean checkr)
getICtx
in class JEntitySwitch
tx
- - the Transaction objectcheckr
- - true if we must check non-reentrance.
public int getState()
getState
in class JEntitySwitch
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |