org.apache.ojb.odmg
Interface OJBTxManager

All Superinterfaces:
org.apache.ojb.broker.util.configuration.Configurable
All Known Implementing Classes:
JTATxManager, LocalTxManager

public interface OJBTxManager
extends org.apache.ojb.broker.util.configuration.Configurable

The OJBTxManager defines the contract for associating the caller with the current or new transaction in ODMG.

Version:
$Id: $
Author:
Matthew Baird

Method Summary
 void abortExternalTx(TransactionImpl odmgTrans)
           
 void deregisterTx(java.lang.Object token)
           
 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)
           
 
Methods inherited from interface org.apache.ojb.broker.util.configuration.Configurable
configure
 

Method Detail

getCurrentTransaction

public TransactionImpl getCurrentTransaction()
Returns the current transaction for the calling thread.

Throws:
{@link - org.odmg.TransactionNotProgressException} if no transaction was found.

getTransaction

public TransactionImpl getTransaction()
Returns the current transaction for the calling thread or null if no transaction was found.


registerTx

public void registerTx(TransactionImpl tx)

deregisterTx

public void deregisterTx(java.lang.Object token)

abortExternalTx

public void abortExternalTx(TransactionImpl odmgTrans)


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14