|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ojb.odmg.TransactionTable
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.
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 |
public TransactionTable()
Method Detail |
public Transaction get(java.lang.Thread key_thread)
key_thread
- The thread to lookup.
public void put(java.lang.Thread key_thread, Transaction value_tx)
key_thread
- Thread that the transaction will be associated tovalue_tx
- Transaction to be associated with the threadpublic void remove(java.lang.Thread key_thread)
key_thread
- Thread to be removed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |