org.mule.tck.testmodels.mule
Class TestTransaction
java.lang.Object
org.mule.transaction.AbstractTransaction
org.mule.transaction.AbstractSingleResourceTransaction
org.mule.tck.testmodels.mule.TestTransaction
- All Implemented Interfaces:
- Transaction
public class TestTransaction
- extends AbstractSingleResourceTransaction
A test transaction that does nothing on commit or rollback. The transaction does retain a status so that
developers can determine if the the transaction was rolled back or committed.
TestTransaction
public TestTransaction(MuleContext muleContext)
TestTransaction
public TestTransaction(MuleContext mockMuleContext,
boolean isXa)
getResourceType
protected Class getResourceType()
- Overrides:
getResourceType
in class AbstractSingleResourceTransaction
getKeyType
protected Class getKeyType()
- Overrides:
getKeyType
in class AbstractSingleResourceTransaction
doBegin
protected void doBegin()
throws TransactionException
- Really begin the transaction. Note that resources are enlisted yet.
- Specified by:
doBegin
in class AbstractTransaction
- Throws:
TransactionException
doCommit
protected void doCommit()
throws TransactionException
- Commit the transaction on the underlying resource
- Specified by:
doCommit
in class AbstractTransaction
- Throws:
TransactionException
doRollback
protected void doRollback()
throws TransactionException
- Rollback the transaction on the underlying resource
- Specified by:
doRollback
in class AbstractTransaction
- Throws:
TransactionException
getTestProperty
public String getTestProperty()
setTestProperty
public void setTestProperty(String testProperty)
isXA
public boolean isXA()
- Specified by:
isXA
in interface Transaction
- Overrides:
isXA
in class AbstractTransaction
setXA
public void setXA(boolean xa)
suspend
public Transaction suspend()
throws TransactionException
- Specified by:
suspend
in interface Transaction
- Overrides:
suspend
in class AbstractTransaction
- Throws:
TransactionException
resume
public void resume()
throws TransactionException
- Specified by:
resume
in interface Transaction
- Overrides:
resume
in class AbstractTransaction
- Throws:
TransactionException
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.