public class SpringTransactionFactory.SpringTransaction extends AbstractSingleResourceTransaction
Modifier and Type | Field and Description |
---|---|
protected org.springframework.transaction.TransactionStatus |
status |
committed, key, resource, rollbackOnly, rolledBack, started, txStatusMappings
id, logger, muleContext, timeout
STATUS_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 |
---|
SpringTransactionFactory.SpringTransaction(MuleContext muleContext) |
Modifier and Type | Method and Description |
---|---|
void |
bindResource(Object key,
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
|
Object |
getResource(Object key) |
boolean |
hasResource(Object key) |
void |
setRollbackOnly() |
begin, commit, getKeyType, getResourceType, getStatus, rollback, supports, toString
fireNotification, getId, getTimeout, isBegun, isCommitted, isRollbackOnly, isRolledBack, isXA, resume, setTimeout, suspend, unbindTransaction
public SpringTransactionFactory.SpringTransaction(MuleContext muleContext)
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 TransactionException
AbstractTransaction
doRollback
in class AbstractTransaction
TransactionException
public Object getResource(Object key)
getResource
in interface Transaction
getResource
in class AbstractSingleResourceTransaction
public boolean hasResource(Object key)
hasResource
in interface Transaction
hasResource
in class AbstractSingleResourceTransaction
public void bindResource(Object key, Object resource) throws TransactionException
bindResource
in interface Transaction
bindResource
in class AbstractSingleResourceTransaction
TransactionException
public void setRollbackOnly()
setRollbackOnly
in interface Transaction
setRollbackOnly
in class AbstractSingleResourceTransaction
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.