org.mule.transaction
Class XaTransaction
java.lang.Object
org.mule.transaction.AbstractTransaction
org.mule.transaction.XaTransaction
- All Implemented Interfaces:
- UMOTransaction
- public class XaTransaction
- extends AbstractTransaction
- implements UMOTransaction
XaTransaction
represents an XA transaction in Mule.
- Version:
- $Revision: 1.2 $
- Author:
- Ross Mason, Guillaume Nodet
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XaTransaction
public XaTransaction()
- Default constructor
doBegin
protected void doBegin()
throws UMOTransactionException
- Description copied from class:
AbstractTransaction
- Really begin the transaction.
Note that resources are enlisted yet.
- Specified by:
doBegin
in class AbstractTransaction
- Throws:
UMOTransactionException
doCommit
protected void doCommit()
throws UMOTransactionException
- Description copied from class:
AbstractTransaction
- Commit the transaction on the underlying resource
- Specified by:
doCommit
in class AbstractTransaction
- Throws:
UMOTransactionException
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 UMOTransactionException
- Specified by:
bindResource
in interface UMOTransaction
- Throws:
UMOTransactionException
Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.