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: OJBTxManager.java 365232 2005-12-21 22:36:07Z tomdz $
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

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

Throws:
TransactionNotInProgressException - if no transaction was found.

getTransaction

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


registerTx

void registerTx(TransactionImpl tx)

deregisterTx

void deregisterTx(java.lang.Object token)

abortExternalTx

void abortExternalTx(TransactionImpl odmgTrans)


(C) 2002 - 2006 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