|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.odmg.LocalTxManager
public class LocalTxManager
In a non-appserver environment, without a transaction manager, we can safely associate the current ODMG transaction with the calling thread.
Constructor Summary | |
---|---|
LocalTxManager()
|
Method Summary | |
---|---|
void |
abortExternalTx(TransactionImpl odmgTrans)
included to keep interface contract consistent. |
void |
configure(org.apache.ojb.broker.util.configuration.Configuration config)
|
void |
deregisterTx(java.lang.Object token)
remove the current transaction from the map key'd by the calling thread. |
TransactionImpl |
getCurrentTransaction()
Returns the current transaction for the calling thread. |
TransactionImpl |
getTransaction()
Returns the current transaction for the calling thread or null
if no transaction was found. |
void |
registerTx(TransactionImpl tx)
add the current transaction to the map key'd by the calling thread. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalTxManager()
Method Detail |
---|
public TransactionImpl getCurrentTransaction()
getCurrentTransaction
in interface OJBTxManager
TransactionNotInProgressException
- TransactionNotInProgressException
if no transaction was found.public TransactionImpl getTransaction()
null
if no transaction was found.
getTransaction
in interface OJBTxManager
public void registerTx(TransactionImpl tx)
registerTx
in interface OJBTxManager
public void deregisterTx(java.lang.Object token)
deregisterTx
in interface OJBTxManager
public void abortExternalTx(TransactionImpl odmgTrans)
abortExternalTx
in interface OJBTxManager
public void configure(org.apache.ojb.broker.util.configuration.Configuration config)
configure
in interface org.apache.ojb.broker.util.configuration.Configurable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |