|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.tm.TransactionLocalDelegateImpl
public class 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 local,
Transaction tx)
does Transaction contain object? |
protected static TransactionLocalDelegateImpl.TransactionLocalSynchronization |
getSynchronization(Transaction tx,
boolean create)
Retrieve a synchronization for the transaction |
Object |
getValue(TransactionLocal local,
Transaction tx)
get the transaction local value. |
void |
lock(TransactionLocal local,
Transaction tx)
Lock the transaction local in the context of this transaction |
protected static void |
removeSynchronization(Transaction tx)
Remove a synchronization |
void |
storeValue(TransactionLocal local,
Transaction tx,
Object value)
put the value in the transaction local |
void |
unlock(TransactionLocal local,
Transaction tx)
Unlock the transaction local in the context of this transaction |
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 void lock(TransactionLocal local, Transaction tx) throws InterruptedException
TransactionLocalDelegate
lock
in interface TransactionLocalDelegate
InterruptedException
- if the thread is interruptedpublic void unlock(TransactionLocal local, Transaction tx)
TransactionLocalDelegate
unlock
in interface TransactionLocalDelegate
public Object getValue(TransactionLocal local, Transaction tx)
TransactionLocalDelegate
getValue
in interface TransactionLocalDelegate
public void storeValue(TransactionLocal local, Transaction tx, Object value)
TransactionLocalDelegate
storeValue
in interface TransactionLocalDelegate
public boolean containsValue(TransactionLocal local, Transaction tx)
TransactionLocalDelegate
containsValue
in interface TransactionLocalDelegate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |