| java.lang.Object org.objectweb.jonas_ejb.container.JEntitySwitch org.objectweb.jonas_ejb.container.JEntitySwitchCST org.objectweb.jonas_ejb.container.JEntitySwitchRO
JEntitySwitchRO | public class JEntitySwitchRO extends JEntitySwitchCST (Code) | | ReadOnly lock policy : Instance are never written to database.
They are regularly read from database if bean is shared.
author: Philippe Durieux |
Method Summary | |
protected void | initpolicy(JEntityFactory bf) | public synchronized JEntityContext | mapICtx(Transaction tx, JEntityContext bctx, boolean forced, boolean holdit, boolean notused) Map a context and its instance.
Parameters: tx - - the Transaction object Parameters: bctx - - the JEntityContext to bind if not null Parameters: forced - - force to take this context. | public synchronized void | txCompleted(Transaction tx, boolean committed) This transaction is now over. | public void | waitmyturn(Transaction tx) |
nextRead | protected long nextRead(Code) | | |
JEntitySwitchRO | public JEntitySwitchRO()(Code) | | empty constructor. Object is initialized via init() because it is
implemented differently according to jorm mappers.
|
mapICtx | public synchronized JEntityContext mapICtx(Transaction tx, JEntityContext bctx, boolean forced, boolean holdit, boolean notused)(Code) | | Map a context and its instance.
Parameters: tx - - the Transaction object Parameters: bctx - - the JEntityContext to bind if not null Parameters: forced - - force to take this context. (case of create) Parameters: holdit - - increment count to hold it, a release will be calledlater. JEntityContext actually mapped |
txCompleted | public synchronized void txCompleted(Transaction tx, boolean committed)(Code) | | This transaction is now over. We can dispose of the instance for another
transaction or discard it.
Parameters: tx - the transaction object Parameters: committed - true if transaction was committed. |
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)
|
|
|