org.apache.ojb.broker.transaction
Interface OJBTxManager


public interface OJBTxManager

Class give support in transaction handling.

Version:
$Id: OJBTxManager.java,v 1.1 2004/05/03 23:05:56 arminw Exp $
Author:
Armin Waibel

Method Summary
 void deregisterTx(OJBTxObject obj)
           
 javax.transaction.Transaction getCurrentJTATransaction()
          Returns the current transaction for the calling thread.
 javax.transaction.Transaction getJTATransaction()
          Returns the current transaction for the calling thread or null if no transaction was found.
 void registerTx(OJBTxObject obj)
           
 

Method Detail

registerTx

public void registerTx(OJBTxObject obj)

deregisterTx

public void deregisterTx(OJBTxObject obj)

getJTATransaction

public javax.transaction.Transaction getJTATransaction()
Returns the current transaction for the calling thread or null if no transaction was found.

See Also:
getCurrentJTATransaction()

getCurrentJTATransaction

public javax.transaction.Transaction getCurrentJTATransaction()
Returns the current transaction for the calling thread.

Throws:
TransactionNotInProgressException - if no transaction was found.
See Also:
getJTATransaction()


(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2