public class TestTransaction extends AbstractSingleResourceTransaction
key, resource, rollbackOnly, started, txStatusMappingscomponentLocation, id, 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, getComponentLocation, getId, getTimeout, isBegun, isCommitted, isRollbackOnly, isRolledBack, setComponentLocation, 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 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 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 org.mule.runtime.api.tx.TransactionException
suspend in interface Transactionsuspend in class AbstractTransactionorg.mule.runtime.api.tx.TransactionExceptionpublic void resume()
throws org.mule.runtime.api.tx.TransactionException
resume in interface Transactionresume in class AbstractTransactionorg.mule.runtime.api.tx.TransactionExceptionCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.