public class JTATxManager extends java.lang.Object implements OJBTxManager
| Constructor and Description |
|---|
JTATxManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
abortExternalTx(TransactionImpl odmgTrans)
Abort an active extern transaction associated with the given PB.
|
void |
configure(org.apache.ojb.broker.util.configuration.Configuration config)
configure an object using the Configuration pConfig
|
void |
deregisterTx(java.lang.Object transaction)
Remove the ODMG transaction from the transaction buffer
ODMG transactions are associated with JTA transactions via a map
|
TransactionImpl |
getCurrentTransaction()
Returns the current transaction based on the JTA Transaction.
|
javax.transaction.Transaction |
getJTATransaction() |
TransactionImpl |
getTransaction()
Returns the current transaction based on the JTA Transaction or
null
if no transaction was found. |
void |
registerTx(TransactionImpl odmgTrans) |
public void deregisterTx(java.lang.Object transaction)
deregisterTx in interface OJBTxManagerpublic void registerTx(TransactionImpl odmgTrans)
registerTx in interface OJBTxManagerpublic javax.transaction.Transaction getJTATransaction()
throws javax.transaction.SystemException
javax.transaction.SystemExceptionpublic TransactionImpl getCurrentTransaction()
getCurrentTransaction in interface OJBTxManagerTransactionNotInProgressException - if no transaction was found.public TransactionImpl getTransaction()
null
if no transaction was found.getTransaction 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