JBoss Transaction 7.0.0 SPI 7.0.0.Final-redhat-2

org.jboss.tm
Class TransactionLocalDelegateImpl

java.lang.Object
  extended by org.jboss.tm.TransactionLocalDelegateImpl
All Implemented Interfaces:
TransactionLocalDelegate

Deprecated.

@Deprecated
public class TransactionLocalDelegateImpl
extends Object
implements TransactionLocalDelegate

An implementation of the transaction local implementation using Transaction synchronizations. There is one of these per transaction local

Version:
$Revision: 37459 $
Author:
Adrian Brock

Nested Class Summary
protected static class TransactionLocalDelegateImpl.TransactionLocalSynchronization
          Deprecated.  
 
Field Summary
protected  TransactionManager manager
          Deprecated. The transaction manager
protected static ConcurrentHashMap<Transaction,TransactionLocalDelegateImpl.TransactionLocalSynchronization> synchronizationsByTransaction
          Deprecated. The synchronizations for each transaction
 
Constructor Summary
TransactionLocalDelegateImpl(TransactionManager manager)
          Deprecated. Construct a new delegate for the given transaction manager
 
Method Summary
 boolean containsValue(TransactionLocal local, Transaction tx)
          Deprecated. does Transaction contain object?
protected static TransactionLocalDelegateImpl.TransactionLocalSynchronization getSynchronization(Transaction tx, boolean create)
          Deprecated. Retrieve a synchronization for the transaction
 Object getValue(TransactionLocal local, Transaction tx)
          Deprecated. get the transaction local value.
 void lock(TransactionLocal local, Transaction tx)
          Deprecated. Lock the transaction local in the context of this transaction
protected static void removeSynchronization(Transaction tx)
          Deprecated. Remove a synchronization
 void storeValue(TransactionLocal local, Transaction tx, Object value)
          Deprecated. put the value in the transaction local
 void unlock(TransactionLocal local, Transaction tx)
          Deprecated. 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

manager

protected TransactionManager manager
Deprecated. 
The transaction manager


synchronizationsByTransaction

protected static ConcurrentHashMap<Transaction,TransactionLocalDelegateImpl.TransactionLocalSynchronization> synchronizationsByTransaction
Deprecated. 
The synchronizations for each transaction

Constructor Detail

TransactionLocalDelegateImpl

public TransactionLocalDelegateImpl(TransactionManager manager)
Deprecated. 
Construct a new delegate for the given transaction manager

Parameters:
manager - the transaction manager
Method Detail

getSynchronization

protected static TransactionLocalDelegateImpl.TransactionLocalSynchronization getSynchronization(Transaction tx,
                                                                                                 boolean create)
Deprecated. 
Retrieve a synchronization for the transaction

Parameters:
tx - the transaction
create - whether to create a synchronization if one doesn't exist
Returns:
the synchronization

removeSynchronization

protected static void removeSynchronization(Transaction tx)
Deprecated. 
Remove a synchronization

Parameters:
tx - the transaction to remove

lock

public void lock(TransactionLocal local,
                 Transaction tx)
          throws InterruptedException
Deprecated. 
Description copied from interface: TransactionLocalDelegate
Lock the transaction local in the context of this transaction

Specified by:
lock in interface TransactionLocalDelegate
Parameters:
local - the transaction local
tx - the transcation
Throws:
InterruptedException - if the thread is interrupted

unlock

public void unlock(TransactionLocal local,
                   Transaction tx)
Deprecated. 
Description copied from interface: TransactionLocalDelegate
Unlock the transaction local in the context of this transaction

Specified by:
unlock in interface TransactionLocalDelegate
Parameters:
local - the transaction local
tx - the transcation

getValue

public Object getValue(TransactionLocal local,
                       Transaction tx)
Deprecated. 
Description copied from interface: TransactionLocalDelegate
get the transaction local value.

Specified by:
getValue in interface TransactionLocalDelegate
Parameters:
local - the transaction local
tx - the transcation
Returns:
the value

storeValue

public void storeValue(TransactionLocal local,
                       Transaction tx,
                       Object value)
Deprecated. 
Description copied from interface: TransactionLocalDelegate
put the value in the transaction local

Specified by:
storeValue in interface TransactionLocalDelegate
Parameters:
local - the transaction local
tx - the transcation
value - the value

containsValue

public boolean containsValue(TransactionLocal local,
                             Transaction tx)
Deprecated. 
Description copied from interface: TransactionLocalDelegate
does Transaction contain object?

Specified by:
containsValue in interface TransactionLocalDelegate
Parameters:
local - the transaction local
tx - the transcation
Returns:
true if it has the value

JBoss Transaction 7.0.0 SPI 7.0.0.Final-redhat-2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.