|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.transaction.AbstractTransaction
org.mule.transaction.XaTransaction
public class XaTransaction
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 |
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(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, isBegun, isCommitted, isRollbackOnly, isRolledBack, rollback |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XaTransaction()
Method Detail |
---|
protected void doBegin() throws TransactionException
AbstractTransaction
doBegin
in class AbstractTransaction
TransactionException
protected void doCommit() throws TransactionException
AbstractTransaction
doCommit
in class AbstractTransaction
TransactionException
protected void doRollback() throws TransactionRollbackException
AbstractTransaction
doRollback
in class AbstractTransaction
TransactionRollbackException
public int getStatus() throws TransactionStatusException
TransactionStatusException
public void setRollbackOnly()
public Object getResource(Object key)
public boolean hasResource(Object key)
public void bindResource(Object key, Object resource) throws TransactionException
TransactionException
public boolean enlistResource(XAResource resource) throws TransactionException
TransactionException
public boolean delistResource(XAResource resource, int tmflag) throws TransactionException
TransactionException
public String toString()
toString
in class Object
public Transaction getTransaction()
public boolean isXA()
isXA
in interface UMOTransaction
isXA
in class AbstractTransaction
public void resume() throws TransactionException
UMOTransaction
resume
in interface UMOTransaction
resume
in class AbstractTransaction
TransactionException
- if any errorpublic Transaction suspend() throws TransactionException
UMOTransaction
suspend
in interface UMOTransaction
suspend
in class AbstractTransaction
TransactionException
- if any errorprotected void delistResources()
protected void closeResources()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |