| java.lang.Object org.objectweb.jonas_ejb.container.JEntitySwitch org.objectweb.jonas_ejb.container.JEntitySwitchCST
All known Subclasses: org.objectweb.jonas_ejb.container.JEntitySwitchRO, org.objectweb.jonas_ejb.container.JEntitySwitchCRU, org.objectweb.jonas_ejb.container.JEntitySwitchCRW, org.objectweb.jonas_ejb.container.JEntitySwitchCS,
JEntitySwitchCST | public class JEntitySwitchCST extends JEntitySwitch (Code) | | Container Serialized Transacted (CST) lock-policy.
Transaction Isolation managed by the container.
All transactions are serialized.
author: Philippe Durieux |
JEntitySwitchCST | public JEntitySwitchCST()(Code) | | empty constructor. Object is initialized via init() because it is
implemented differently according to jorm mappers.
|
endIH | public synchronized void endIH()(Code) | | Instance is ready to use for new transaction.
|
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) | | |
tryBindICtx | public synchronized boolean tryBindICtx(Transaction tx, JEntityContext bctx, boolean simple) throws ObjectNotFoundException(Code) | | Try to bind a JEntityContext if none already bound. Called by finder
methods. This is actually kind of optimization.
Can be bypassed if problems: just return false.
Parameters: tx - - the Transaction object Parameters: bctx - The Entity Context Parameters: simple - True if simple finder method true if context has been bound to this EntitySwitch. |
waitmyturn | public void waitmyturn(Transaction tx)(Code) | | Wait until I'm allowed to work on this instance.
Transaction isolation may be done here, depending on lock-policy.
Parameters: tx - Transaction |
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)
|
|
|