|
||||||||||
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 org.ow2.jonas.lib.ejb21.JEntitySwitchCS
public class JEntitySwitchCS
Container Serialized (CS) lock-policy. Transaction Isolation managed by the container. Non transactional methods of the bean can modify the bean.
Field Summary | |
---|---|
protected long |
passivationTimeout
time in millisec. |
protected long |
ptimestamp
timestamp uses for passivationTimeout |
Fields inherited from class org.ow2.jonas.lib.ejb21.JEntitySwitchCST |
---|
itContext |
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 | |
---|---|
JEntitySwitchCS()
empty constructor. |
Method Summary | |
---|---|
void |
endIH()
Instance is ready to use for new transaction. |
protected void |
initpolicy(JEntityFactory bf)
|
int |
passivateIH(boolean store,
boolean passivate)
try to passivate instances |
void |
waitmyturn(Transaction tx)
Wait until I'm allowed to work on this instance. |
Methods inherited from class org.ow2.jonas.lib.ejb21.JEntitySwitchCST |
---|
getContext4Tx, getState, removeContext4Tx, setContext4Tx, tryBindICtx |
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 long passivationTimeout
protected long ptimestamp
Constructor Detail |
---|
public JEntitySwitchCS()
Method Detail |
---|
protected void initpolicy(JEntityFactory bf)
initpolicy
in class JEntitySwitchCST
public void waitmyturn(Transaction tx)
JEntitySwitchCST
waitmyturn
in class JEntitySwitchCST
tx
- Transactionpublic int passivateIH(boolean store, boolean passivate)
passivateIH
in class JEntitySwitchCST
store
- If we want to store the bean state first.passivate
- If we want to pasivate the bean also
public void endIH()
endIH
in class JEntitySwitchCST
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |