org.mule.transaction
Class XaTransaction

java.lang.Object
  extended byorg.mule.transaction.AbstractTransaction
      extended byorg.mule.transaction.XaTransaction
All Implemented Interfaces:
UMOTransaction

public class XaTransaction
extends AbstractTransaction
implements UMOTransaction

XaTransaction represents an XA transaction in Mule.

Version:
$Revision: 1.4 $
Author:
Ross Mason, Guillaume Nodet

Field Summary
 
Fields inherited from class org.mule.transaction.AbstractTransaction
logger
 
Fields inherited from interface org.mule.umo.UMOTransaction
STATUS_ACTIVE, STATUS_COMMITTED, STATUS_COMMITTING, STATUS_MARKED_ROLLBACK, STATUS_NO_TRANSACTION, STATUS_PREPARED, STATUS_PREPARING, STATUS_ROLLEDBACK, STATUS_ROLLING_BACK, STATUS_UNKNOWN
 
Constructor Summary
XaTransaction()
          Default constructor
 
Method Summary
 void bindResource(java.lang.Object key, java.lang.Object resource)
           
protected  void doBegin()
          Really begin the transaction.
protected  void doCommit()
          Commit the transaction on the underlying resource
protected  void doRollback()
          Rollback the transaction on the underlying resource
 java.lang.Object getResource(java.lang.Object key)
           
 int getStatus()
           
 boolean hasResource(java.lang.Object key)
           
 void setRollbackOnly()
           
 
Methods inherited from class org.mule.transaction.AbstractTransaction
begin, commit, isBegun, isCommitted, isRollbackOnly, isRolledBack, rollback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mule.umo.UMOTransaction
begin, commit, isBegun, isCommitted, isRollbackOnly, isRolledBack, rollback
 

Constructor Detail

XaTransaction

public XaTransaction()
Default constructor

Method Detail

doBegin

protected void doBegin()
                throws TransactionException
Description copied from class: AbstractTransaction
Really begin the transaction. Note that resources are enlisted yet.

Specified by:
doBegin in class AbstractTransaction
Throws:
TransactionException

doCommit

protected void doCommit()
                 throws TransactionException
Description copied from class: AbstractTransaction
Commit the transaction on the underlying resource

Specified by:
doCommit in class AbstractTransaction
Throws:
TransactionException

doRollback

protected void doRollback()
                   throws TransactionRollbackException
Description copied from class: AbstractTransaction
Rollback the transaction on the underlying resource

Specified by:
doRollback in class AbstractTransaction
Throws:
TransactionRollbackException

getStatus

public int getStatus()
              throws TransactionStatusException
Specified by:
getStatus in interface UMOTransaction
Throws:
TransactionStatusException

setRollbackOnly

public void setRollbackOnly()
Specified by:
setRollbackOnly in interface UMOTransaction

getResource

public java.lang.Object getResource(java.lang.Object key)
Specified by:
getResource in interface UMOTransaction

hasResource

public boolean hasResource(java.lang.Object key)
Specified by:
hasResource in interface UMOTransaction

bindResource

public void bindResource(java.lang.Object key,
                         java.lang.Object resource)
                  throws TransactionException
Specified by:
bindResource in interface UMOTransaction
Throws:
TransactionException


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.