public class SpringTransactionFactory.SpringTransaction extends AbstractSingleResourceTransaction
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.transaction.TransactionStatus |
status |
committed, key, resource, rollbackOnly, rolledBack, started, txStatusMappingsid, logger, muleContext, timeoutSTATUS_ACTIVE, STATUS_COMMITTED, STATUS_COMMITTING, STATUS_MARKED_ROLLBACK, STATUS_NO_TRANSACTION, STATUS_PREPARED, STATUS_PREPARING, STATUS_ROLLEDBACK, STATUS_ROLLING_BACK, STATUS_UNKNOWN| Constructor and Description |
|---|
SpringTransaction(MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindResource(Object key,
Object resource) |
protected void |
doBegin() |
protected void |
doCommit() |
protected void |
doRollback() |
Object |
getResource(Object key) |
boolean |
hasResource(Object key) |
void |
setRollbackOnly() |
begin, commit, getKeyType, getResourceType, getStatus, rollback, supports, toStringfireNotification, getId, getTimeout, isBegun, isCommitted, isRollbackOnly, isRolledBack, isXA, resume, setTimeout, suspend, unbindTransactionpublic SpringTransaction(MuleContext muleContext)
protected void doBegin()
throws org.mule.runtime.api.tx.TransactionException
doBegin in class AbstractTransactionorg.mule.runtime.api.tx.TransactionExceptionprotected void doCommit()
throws org.mule.runtime.api.tx.TransactionException
doCommit in class AbstractTransactionorg.mule.runtime.api.tx.TransactionExceptionprotected void doRollback()
throws org.mule.runtime.api.tx.TransactionException
doRollback in class AbstractTransactionorg.mule.runtime.api.tx.TransactionExceptionpublic Object getResource(Object key)
getResource in interface TransactiongetResource in class AbstractSingleResourceTransactionpublic boolean hasResource(Object key)
hasResource in interface TransactionhasResource in class AbstractSingleResourceTransactionpublic void bindResource(Object key, Object resource) throws org.mule.runtime.api.tx.TransactionException
bindResource in interface TransactionbindResource in class AbstractSingleResourceTransactionorg.mule.runtime.api.tx.TransactionExceptionpublic void setRollbackOnly()
setRollbackOnly in interface TransactionsetRollbackOnly in class AbstractSingleResourceTransactionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.