ojb.odmg
Class TransactionTable

java.lang.Object
  |
  +--ojb.odmg.TransactionTable

public class TransactionTable
extends java.lang.Object

TransactionTable provides a mapping between the calling thread and the Transaction it is currently using. One thread can be joined with one transaction at a certain point in time. But a thread can join with different transactions subsequently. This mapping from threads to Transactions is based on ODMG.

Author:
Thomas Mahler & David Dixon-Peugh

Constructor Summary
TransactionTable()
          Creates new TransactionTable
 
Method Summary
 Transaction get(java.lang.Thread key_thread)
          Retreive a Transaction associated with a thread.
 void put(java.lang.Thread key_thread, Transaction value_tx)
          Store the Thread/Transaction pair in the TransactionTable
 void remove(java.lang.Thread key_thread)
          Remove the entry for the thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionTable

public TransactionTable()
Creates new TransactionTable

Method Detail

get

public Transaction get(java.lang.Thread key_thread)
Retreive a Transaction associated with a thread.

Parameters:
key_thread - The thread to lookup.
Returns:
The transaction associated with the thread.

put

public void put(java.lang.Thread key_thread,
                Transaction value_tx)
Store the Thread/Transaction pair in the TransactionTable

Parameters:
key_thread - Thread that the transaction will be associated to
value_tx - Transaction to be associated with the thread

remove

public void remove(java.lang.Thread key_thread)
Remove the entry for the thread

Parameters:
key_thread - Thread to be removed.


Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04