public class LocalTxManager extends java.lang.Object implements OJBTxManager
| Constructor and Description |
|---|
LocalTxManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
abortExternalTx(TransactionImpl odmgTrans)
included to keep interface contract consistent.
|
void |
configure(org.apache.ojb.broker.util.configuration.Configuration config)
configure an object using the Configuration pConfig
|
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.
|
public TransactionImpl getCurrentTransaction()
getCurrentTransaction in interface OJBTxManagerTransactionNotInProgressException - TransactionNotInProgressException if no transaction was found.public TransactionImpl getTransaction()
null
if no transaction was found.getTransaction in interface OJBTxManagerpublic void registerTx(TransactionImpl tx)
registerTx in interface OJBTxManagerpublic void deregisterTx(java.lang.Object token)
deregisterTx in interface OJBTxManagerpublic void abortExternalTx(TransactionImpl odmgTrans)
abortExternalTx in interface OJBTxManagerpublic void configure(org.apache.ojb.broker.util.configuration.Configuration config)
org.apache.ojb.broker.util.configuration.Configurableconfigure in interface org.apache.ojb.broker.util.configuration.Configurableconfig - the Configuration object used to configure current instance(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30