T - the generic type of the TransactionalConnectionpublic class ExtensionTransactionalResource<T extends org.mule.runtime.extension.api.connectivity.TransactionalConnection> extends Object implements org.mule.runtime.extension.api.tx.Transactional
TransactionalConnections| Constructor and Description |
|---|
ExtensionTransactionalResource(T connection,
org.mule.runtime.api.connection.ConnectionHandler<T> connectionHandler,
Transaction transaction)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
T |
getConnection() |
org.mule.runtime.api.connection.ConnectionHandler<T> |
getConnectionHandler() |
boolean |
isTransactionResolved() |
void |
rollback() |
public ExtensionTransactionalResource(T connection, org.mule.runtime.api.connection.ConnectionHandler<T> connectionHandler, Transaction transaction)
connection - the connectionconnectionHandler - the ConnectionHandler for the connectiontransaction - the bound Transactionpublic void begin()
throws org.mule.runtime.api.tx.TransactionException
begin in interface org.mule.runtime.extension.api.tx.Transactionalorg.mule.runtime.api.tx.TransactionExceptionpublic void commit()
throws org.mule.runtime.api.tx.TransactionException
commit in interface org.mule.runtime.extension.api.tx.Transactionalorg.mule.runtime.api.tx.TransactionExceptionpublic void rollback()
throws org.mule.runtime.api.tx.TransactionException
rollback in interface org.mule.runtime.extension.api.tx.Transactionalorg.mule.runtime.api.tx.TransactionExceptionpublic boolean isTransactionResolved()
throws org.mule.runtime.api.tx.TransactionException
org.mule.runtime.api.tx.TransactionExceptionpublic T getConnection()
TransactionalConnectionpublic org.mule.runtime.api.connection.ConnectionHandler<T> getConnectionHandler()
ConnectionHandlerCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.