public class TestTransaction extends AbstractSingleResourceTransaction
key, resource, rollbackOnly, 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 |
|---|
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, toStringfireNotification, getId, getTimeout, isBegun, isCommitted, isRollbackOnly, isRolledBack, setTimeout, unbindTransactionpublic TestTransaction(MuleContext muleContext)
public TestTransaction(MuleContext mockMuleContext, boolean isXa)
protected Class getResourceType()
getResourceType in class AbstractSingleResourceTransactionprotected Class getKeyType()
getKeyType in class AbstractSingleResourceTransactionprotected void doBegin()
throws TransactionException
doBegin in class AbstractTransactionTransactionExceptionprotected void doCommit()
throws TransactionException
doCommit in class AbstractTransactionTransactionExceptionprotected void doRollback()
throws TransactionException
doRollback in class AbstractTransactionTransactionExceptionpublic String getTestProperty()
public void setTestProperty(String testProperty)
public boolean isXA()
isXA in interface TransactionisXA in class AbstractTransactionpublic void setXA(boolean xa)
public Transaction suspend() throws TransactionException
suspend in interface Transactionsuspend in class AbstractTransactionTransactionExceptionpublic void resume()
throws TransactionException
resume in interface Transactionresume in class AbstractTransactionTransactionExceptionCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.