|
||||||||||
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.JEntitySwitchCST
public class JEntitySwitchCST
Container Serialized Transacted (CST) lock-policy. Transaction Isolation managed by the container. All transactions are serialized.
Field Summary | |
---|---|
protected JEntityContext |
itContext
unique EntityContext |
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 | |
---|---|
JEntitySwitchCST()
empty constructor. |
Method Summary | |
---|---|
void |
endIH()
Instance is ready to use for new transaction. |
protected JEntityContext |
getContext4Tx(Transaction tx)
|
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)
|
boolean |
tryBindICtx(Transaction tx,
JEntityContext bctx,
boolean simple)
Try to bind a JEntityContext if none already bound. |
void |
waitmyturn(Transaction tx)
Wait until I'm allowed to work on this instance. |
Methods inherited from class org.ow2.jonas.lib.ejb21.JEntitySwitch |
---|
bindICtx, detachPk, discardContext, forceDiscardICtx, getBeanFactory, getBlockingTx, getEntityTimerService, getICtx, getICtx, getLocal, getPolicy, getPrimaryKey, getRemote, init, lazyRegistering, mapICtx, notifyTimeout, notifyWriting, registerCtx, releaseICtx, terminate, txCompleted |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JEntityContext itContext
Constructor Detail |
---|
public JEntitySwitchCST()
Method Detail |
---|
protected void initpolicy(JEntityFactory bf)
initpolicy
in class JEntitySwitch
protected JEntityContext getContext4Tx(Transaction tx)
protected void setContext4Tx(Transaction tx, JEntityContext ctx)
protected void removeContext4Tx(Transaction tx)
public void waitmyturn(Transaction tx)
tx
- Transactionpublic boolean tryBindICtx(Transaction tx, JEntityContext bctx, boolean simple) throws ObjectNotFoundException
tryBindICtx
in class JEntitySwitch
tx
- - the Transaction objectbctx
- The Entity Contextsimple
- True if simple finder method
ObjectNotFoundException
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()
endIH
in class JEntitySwitch
public int getState()
getState
in class JEntitySwitch
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |