org.jboss.narayana.blacktie.jatmibroker.jab.factory
Class Transaction

java.lang.Object
  extended by org.jboss.narayana.blacktie.jatmibroker.jab.factory.Transaction

public class Transaction
extends Object

The JABTransaction provides the programmer access to the underlying transaction object it can be committed or rolled back at most once.

See Also:
JABConnection

Method Summary
 void commit()
          Commit the work performed within the scope of this transaction
 void rollback()
          Discard the work associated with this transaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

commit

public void commit()
            throws TransactionException
Commit the work performed within the scope of this transaction

Throws:
JABException - In case the transaction cannot be committed
TransactionException

rollback

public void rollback()
              throws TransactionException
Discard the work associated with this transaction

Throws:
JABException - In case the transaction cannot be rolled back successfully
TransactionException


Copyright © 2011. All Rights Reserved.