org.exolab.jms.transaction
Class NullTransactionManager

java.lang.Object
  |
  +--org.exolab.jms.transaction.NullTransactionManager
All Implemented Interfaces:
javax.transaction.TransactionManager

public class NullTransactionManager
extends java.lang.Object
implements javax.transaction.TransactionManager

This class instantiates the NullTransactionManager, which is used in place of a real transaction manager. In particular it is used for the JDBM database

This is really an interim solution to support JDBM, with most of the methods having an empty body.

Version:
$Revision: 1.2 $ $Date: 2003/08/07 13:33:12 $
Author:
Jim Alateras

Constructor Summary
NullTransactionManager()
           
 
Method Summary
 void begin()
           
 void commit()
           
 int getStatus()
           
 javax.transaction.Transaction getTransaction()
           
 void resume(javax.transaction.Transaction transaction)
           
 void rollback()
           
 void setRollbackOnly()
           
 void setTransactionTimeout(int timeout)
           
 javax.transaction.Transaction suspend()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullTransactionManager

public NullTransactionManager()
Method Detail

begin

public void begin()
Specified by:
begin in interface javax.transaction.TransactionManager

commit

public void commit()
Specified by:
commit in interface javax.transaction.TransactionManager

rollback

public void rollback()
Specified by:
rollback in interface javax.transaction.TransactionManager

getStatus

public int getStatus()
Specified by:
getStatus in interface javax.transaction.TransactionManager

getTransaction

public javax.transaction.Transaction getTransaction()
Specified by:
getTransaction in interface javax.transaction.TransactionManager

resume

public void resume(javax.transaction.Transaction transaction)
Specified by:
resume in interface javax.transaction.TransactionManager

setRollbackOnly

public void setRollbackOnly()
Specified by:
setRollbackOnly in interface javax.transaction.TransactionManager

setTransactionTimeout

public void setTransactionTimeout(int timeout)
Specified by:
setTransactionTimeout in interface javax.transaction.TransactionManager

suspend

public javax.transaction.Transaction suspend()
Specified by:
suspend in interface javax.transaction.TransactionManager


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.