| java.lang.Object org.objectweb.jonas_ejb.container.JEntitySwitch org.objectweb.jonas_ejb.container.JEntitySwitchDB
JEntitySwitchDB | public class JEntitySwitchDB extends JEntitySwitch (Code) | | DataBase lock policy : 1 instance per transactions.
Transaction Isolation is managed by the database.
author: Philippe Durieux |
itsContext | protected HashMap itsContext(Code) | | Map of EntityContext's for transactions Key is the Transaction.
|
JEntitySwitchDB | public JEntitySwitchDB()(Code) | | empty constructor. Object is initialized via init() because it is
implemented differently according to jorm mappers.
|
endIH | public void endIH()(Code) | | |
getContext4Tx | protected JEntityContext getContext4Tx(Transaction tx)(Code) | | Parameters: tx - The Transaction the JEntityContext used for this tx |
getICtx | public JEntityContext getICtx(Transaction tx, boolean checkr)(Code) | | Get a context/instance associated with this transaction Called at each
request on the bean (including remove)
Parameters: tx - - the Transaction object the BeanContext |
getState | public int getState()(Code) | | State of this instance. State values are 0=in-tx, 1=out-tx, 2=idle,3=passive, 4=removed. we don't synchronize this method to avoidjadmin blocks |
passivateIH | public synchronized int passivateIH(boolean store, boolean passivate)(Code) | | try to passivate instances
Parameters: store - not used for this policy Parameters: passivate - always true for this policy result of operation: (not really used here)ALL_DONE = instances passivatedNOT_DONE = not all passivated |
removeContext4Tx | protected void removeContext4Tx(Transaction tx)(Code) | | |
setContext4Tx | protected void setContext4Tx(Transaction tx, JEntityContext ctx)(Code) | | Parameters: tx - The Transaction Parameters: the - JEntityContext used for this tx |
waitmyturn | public void waitmyturn(Transaction tx)(Code) | | |
Methods inherited from org.objectweb.jonas_ejb.container.JEntitySwitch | public void bindICtx(Transaction tx, JEntityContext bctx)(Code)(Java Doc) protected void detachPk()(Code)(Java Doc) protected void discardContext(Transaction tx, boolean forgetpk, boolean pool)(Code)(Java Doc) abstract public void endIH()(Code)(Java Doc) public synchronized void forceDiscardICtx(Transaction tx)(Code)(Java Doc) public JFactory getBeanFactory()(Code)(Java Doc) public Transaction getBlockingTx(Transaction testedtx)(Code)(Java Doc) abstract JEntityContext getContext4Tx(Transaction tx)(Code)(Java Doc) public TimerService getEntityTimerService()(Code)(Java Doc) public JEntityContext getICtx(Transaction tx, JEntityContext newctx)(Code)(Java Doc) public JEntityContext getICtx(Transaction tx, boolean checkr)(Code)(Java Doc) public JEntityLocal getLocal()(Code)(Java Doc) public int getPolicy()(Code)(Java Doc) public Object getPrimaryKey()(Code)(Java Doc) public JEntityRemote getRemote()(Code)(Java Doc) abstract public int getState()(Code)(Java Doc) public void init(JEntityFactory bf, Object pk)(Code)(Java Doc) abstract protected void initpolicy(JEntityFactory bf)(Code)(Java Doc) public boolean lazyRegistering()(Code)(Java Doc) public synchronized JEntityContext mapICtx(Transaction tx, JEntityContext bctx, boolean forced, boolean holdit, boolean checkreentrance)(Code)(Java Doc) public void notifyTimeout(Timer timer)(Code)(Java Doc) public synchronized void notifyWriting(Transaction tx, JEntityContext bctx)(Code)(Java Doc) abstract public int passivateIH(boolean store, boolean passivate)(Code)(Java Doc) protected void registerCtx(Transaction tx, JEntityContext bctx)(Code)(Java Doc) public synchronized void releaseICtx(Transaction tx, boolean discard)(Code)(Java Doc) abstract void removeContext4Tx(Transaction tx)(Code)(Java Doc) abstract void setContext4Tx(Transaction tx, JEntityContext ctx)(Code)(Java Doc) public synchronized boolean terminate(Transaction tx)(Code)(Java Doc) public synchronized boolean tryBindICtx(Transaction tx, JEntityContext bctx, boolean simple) throws ObjectNotFoundException(Code)(Java Doc) public synchronized void txCompleted(Transaction tx, boolean committed)(Code)(Java Doc) abstract void waitmyturn(Transaction tx)(Code)(Java Doc)
|
|
|