@Deprecated public class TransactionLocalDelegateImpl extends java.lang.Object implements TransactionLocalDelegate
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TransactionLocalDelegateImpl.TransactionLocalSynchronization
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
protected javax.transaction.TransactionManager |
manager
Deprecated.
The transaction manager
|
protected static java.util.concurrent.ConcurrentHashMap<javax.transaction.Transaction,TransactionLocalDelegateImpl.TransactionLocalSynchronization> |
synchronizationsByTransaction
Deprecated.
The synchronizations for each transaction
|
| Constructor and Description |
|---|
TransactionLocalDelegateImpl(javax.transaction.TransactionManager manager)
Deprecated.
Construct a new delegate for the given transaction manager
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsValue(TransactionLocal local,
javax.transaction.Transaction tx)
Deprecated.
does Transaction contain object?
|
protected static TransactionLocalDelegateImpl.TransactionLocalSynchronization |
getSynchronization(javax.transaction.Transaction tx,
boolean create)
Deprecated.
Retrieve a synchronization for the transaction
|
java.lang.Object |
getValue(TransactionLocal local,
javax.transaction.Transaction tx)
Deprecated.
get the transaction local value.
|
void |
lock(TransactionLocal local,
javax.transaction.Transaction tx)
Deprecated.
Lock the transaction local in the context of this transaction
|
protected static void |
removeSynchronization(javax.transaction.Transaction tx)
Deprecated.
Remove a synchronization
|
void |
storeValue(TransactionLocal local,
javax.transaction.Transaction tx,
java.lang.Object value)
Deprecated.
put the value in the transaction local
|
void |
unlock(TransactionLocal local,
javax.transaction.Transaction tx)
Deprecated.
Unlock the transaction local in the context of this transaction
|
protected javax.transaction.TransactionManager manager
protected static java.util.concurrent.ConcurrentHashMap<javax.transaction.Transaction,TransactionLocalDelegateImpl.TransactionLocalSynchronization> synchronizationsByTransaction
public TransactionLocalDelegateImpl(javax.transaction.TransactionManager manager)
manager - the transaction managerprotected static TransactionLocalDelegateImpl.TransactionLocalSynchronization getSynchronization(javax.transaction.Transaction tx, boolean create)
tx - the transactioncreate - whether to create a synchronization if one doesn't existprotected static void removeSynchronization(javax.transaction.Transaction tx)
tx - the transaction to removepublic void lock(TransactionLocal local, javax.transaction.Transaction tx) throws java.lang.InterruptedException
TransactionLocalDelegatelock in interface TransactionLocalDelegatelocal - the transaction localtx - the transcationjava.lang.InterruptedException - if the thread is interruptedpublic void unlock(TransactionLocal local, javax.transaction.Transaction tx)
TransactionLocalDelegateunlock in interface TransactionLocalDelegatelocal - the transaction localtx - the transcationpublic java.lang.Object getValue(TransactionLocal local, javax.transaction.Transaction tx)
TransactionLocalDelegategetValue in interface TransactionLocalDelegatelocal - the transaction localtx - the transcationpublic void storeValue(TransactionLocal local, javax.transaction.Transaction tx, java.lang.Object value)
TransactionLocalDelegatestoreValue in interface TransactionLocalDelegatelocal - the transaction localtx - the transcationvalue - the valuepublic boolean containsValue(TransactionLocal local, javax.transaction.Transaction tx)
TransactionLocalDelegatecontainsValue in interface TransactionLocalDelegatelocal - the transaction localtx - the transcation