Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.transaction
Class XaTransaction

    java.lang.Object
      org.mule.transaction.AbstractTransaction
          org.mule.transaction.XaTransaction

All Implemented Interfaces:
  Transaction

    public class XaTransaction

extends AbstractTransaction

`XaTransaction` represents an XA transaction in Mule.

Nested Class Summary
`static interface` | `XaTransaction.MuleXaObject`

Field Summary

Fields inherited from class org.mule.transaction.AbstractTransaction
`logger, muleContext`

Fields inherited from interface org.mule.api.transaction.Transaction
`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(MuleContext context)`

Method Summary
`void` | `bindResource(Object key, Object resource)`
`protected void` | `closeResources()`
`boolean` | `delistResource(XAResource resource, int tmflag)`
`protected void` | `delistResources()`
`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
`boolean` | `enlistResource(XAResource resource)`
`Object` | `getResource(Object key)`
`int` | `getStatus()`
`Transaction` | `getTransaction()`
`boolean` | `hasResource(Object key)`
`boolean` | `isXA()`
`void` | `resume()` Resume the XA transaction
`void` | `setRollbackOnly()`
`Transaction` | `suspend()` Suspend the XA transaction
`String` | `toString()`

Methods inherited from class org.mule.transaction.AbstractTransaction
`begin, commit, fireNotification, getId, isBegun, isCommitted, isRollbackOnly, isRolledBack, rollback`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### XaTransaction

    public XaTransaction(MuleContext context)

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

  Throws:
    `TransactionStatusException`

### setRollbackOnly

    public void setRollbackOnly()

### getResource

    public Object getResource(Object key)

### hasResource

    public boolean hasResource(Object key)

### bindResource

    public void bindResource(Object key,
                             Object resource)
                      throws TransactionException

  Throws:
    `TransactionException`

### enlistResource

    public boolean enlistResource(XAResource resource)
                           throws TransactionException

  Throws:
    `TransactionException`

### delistResource

    public boolean delistResource(XAResource resource,
                                  int tmflag)
                           throws TransactionException

  Throws:
    `TransactionException`

### toString

    public String toString()

  Overrides:
    `toString` in class `AbstractTransaction`

### getTransaction

    public Transaction getTransaction()

### isXA

    public boolean isXA()

  Specified by:
    `isXA` in interface `Transaction`
  Overrides:
    `isXA` in class `AbstractTransaction`

### resume

    public void resume()
                throws TransactionException

  Description copied from interface: `Transaction`
  Resume the XA transaction

  Specified by:
    `resume` in interface `Transaction`
  Overrides:
    `resume` in class `AbstractTransaction`
  Throws:
    `TransactionException` - if any error

### suspend

    public Transaction suspend()
                        throws TransactionException

  Description copied from interface: `Transaction`
  Suspend the XA transaction

  Specified by:
    `suspend` in interface `Transaction`
  Overrides:
    `suspend` in class `AbstractTransaction`
  Throws:
    `TransactionException` - if any error

### delistResources

    protected void delistResources()

### closeResources

    protected void closeResources()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.