org.jboss.tm
Interface TransactionLocalDelegate

All Known Implementing Classes:
TransactionLocalDelegateImpl, TxManager

public interface TransactionLocalDelegate

The interface to implementated for a transaction local implementation

Version:
$Revision: 57208 $
Author:
Adrian Brock

Method Summary
 boolean containsValue(TransactionLocal local, Transaction tx)
          does Transaction contain object?
 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
 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
 

Method Detail

getValue

Object getValue(TransactionLocal local,
                Transaction tx)
get the transaction local value.


storeValue

void storeValue(TransactionLocal local,
                Transaction tx,
                Object value)
put the value in the transaction local


containsValue

boolean containsValue(TransactionLocal local,
                      Transaction tx)
does Transaction contain object?


lock

void lock(TransactionLocal local,
          Transaction tx)
          throws InterruptedException
Lock the transaction local in the context of this transaction

Throws:
IllegalStateException - if the transaction is not active
InterruptedException - if the thread is interrupted

unlock

void unlock(TransactionLocal local,
            Transaction tx)
Unlock the transaction local in the context of this transaction



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.