public class TestTransaction extends AbstractSingleResourceTransaction
key, resource, rollbackOnly, 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 |
---|
TestTransaction(MuleContext muleContext) |
TestTransaction(MuleContext mockMuleContext,
boolean isXa) |
Modifier and Type | Method and Description |
---|---|
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
|
protected Class |
getKeyType() |
protected Class |
getResourceType() |
String |
getTestProperty() |
boolean |
isXA() |
void |
resume() |
void |
setTestProperty(String testProperty) |
void |
setXA(boolean xa) |
Transaction |
suspend() |
begin, bindResource, commit, getResource, getStatus, hasResource, rollback, setRollbackOnly, supports, toString
fireNotification, getId, getTimeout, isBegun, isCommitted, isRollbackOnly, isRolledBack, setTimeout, unbindTransaction
public TestTransaction(MuleContext muleContext)
public TestTransaction(MuleContext mockMuleContext, boolean isXa)
protected Class getResourceType()
getResourceType
in class AbstractSingleResourceTransaction
protected Class getKeyType()
getKeyType
in class AbstractSingleResourceTransaction
protected void doBegin() throws TransactionException
doBegin
in class AbstractTransaction
TransactionException
protected void doCommit() throws TransactionException
doCommit
in class AbstractTransaction
TransactionException
protected void doRollback() throws TransactionException
doRollback
in class AbstractTransaction
TransactionException
public String getTestProperty()
public void setTestProperty(String testProperty)
public boolean isXA()
isXA
in interface Transaction
isXA
in class AbstractTransaction
public void setXA(boolean xa)
public Transaction suspend() throws TransactionException
suspend
in interface Transaction
suspend
in class AbstractTransaction
TransactionException
public void resume() throws TransactionException
resume
in interface Transaction
resume
in class AbstractTransaction
TransactionException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.