ojb.server
Class TransactionTable
java.lang.Object
|
+--ojb.server.TransactionTable
- public class TransactionTable
- extends java.lang.Object
TransactionTable provides a mapping between the calling
thread and the Transaction it is currently using.
If the transaction isn't associate, it will return NULL.
- Author:
- Thomas Mahler & David Dixon-Peugh
Method Summary |
Transaction |
get(java.lang.Thread value_thread)
Retreive a Transaction associated with a thread. |
void |
put(java.lang.Thread value_thread,
Transaction key_tx)
Store the Thread/Transaction pair in the TransactionTable |
void |
remove(java.lang.Thread value_thread)
Remove the thread from the associated transaction. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionTable
public TransactionTable()
- Creates new TransactionTable
get
public Transaction get(java.lang.Thread value_thread)
- Retreive a Transaction associated with a thread.
- Parameters:
value_thread
- The thread to lookup.- Returns:
- The transaction associated with the thread.
put
public void put(java.lang.Thread value_thread,
Transaction key_tx)
- Store the Thread/Transaction pair in the TransactionTable
- Parameters:
key_tx
- Transaction to be associated with the threadvalue_thread
- Thread associated with the transaction.
remove
public void remove(java.lang.Thread value_thread)
- Remove the thread from the associated transaction.
- Parameters:
value_thread
- Thread to be removed.
Authors: Thomas Mahler, David Dixon-Peugh. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.1.120, 2001-05-12