|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.tm.TransactionLocalDelegateImpl
An implementation of the transaction local implementation using Transaction synchronizations. There is one of these per transaction local
Nested Class Summary | |
protected static class |
TransactionLocalDelegateImpl.TransactionLocalSynchronization
|
Field Summary | |
protected TransactionManager |
manager
The transaction manager |
protected static EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap |
synchronizationsByTransaction
The synchronizations for each transaction |
Constructor Summary | |
TransactionLocalDelegateImpl(TransactionManager manager)
Construct a new delegate for the given transaction manager |
Method Summary | |
boolean |
containsValue(TransactionLocal unused,
Transaction tx)
does Transaction contain object? |
protected static TransactionLocalDelegateImpl.TransactionLocalSynchronization |
getSynchronization(Transaction tx,
boolean create)
Retrieve a synchronization for the transaction |
Object |
getValue(TransactionLocal unused,
Transaction tx)
get the transaction local value. |
protected static void |
removeSynchronization(Transaction tx)
Remove a synchronization |
void |
storeValue(TransactionLocal unused,
Transaction tx,
Object value)
put the value in the transaction local |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected TransactionManager manager
protected static EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap synchronizationsByTransaction
Constructor Detail |
public TransactionLocalDelegateImpl(TransactionManager manager)
manager
- the transaction managerMethod Detail |
protected static TransactionLocalDelegateImpl.TransactionLocalSynchronization getSynchronization(Transaction tx, boolean create)
tx
- the transactioncreate
- whether to create a synchronization if one doesn't existprotected static void removeSynchronization(Transaction tx)
tx
- the transaction to removepublic Object getValue(TransactionLocal unused, Transaction tx)
TransactionLocalDelegate
getValue
in interface TransactionLocalDelegate
public void storeValue(TransactionLocal unused, Transaction tx, Object value)
TransactionLocalDelegate
storeValue
in interface TransactionLocalDelegate
public boolean containsValue(TransactionLocal unused, Transaction tx)
TransactionLocalDelegate
containsValue
in interface TransactionLocalDelegate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |