@ComponentSpecification public interface TransactionExecutor extends EventSource<TransactionEvent,TransactionEventListener>
Modifier and Type | Method and Description |
---|---|
<RESULT> RESULT |
doInTransaction(Callable<RESULT> callable)
This method executes the given
callable in the context of a transaction. |
<RESULT> RESULT |
doInTransaction(Callable<RESULT> callable,
TransactionSettings settings)
This method executes the given
callable in the context of a transaction. |
<RESULT> RESULT |
doInTransaction(TransactionCallable<RESULT> callable)
This method executes the given
callable in the context of a transaction. |
<RESULT> RESULT |
doInTransaction(TransactionCallable<RESULT> callable,
TransactionSettings settings)
This method executes the given
callable in the context of a transaction. |
addListener, removeListener
static final String CDI_NAME
CDI name
.<RESULT> RESULT doInTransaction(Callable<RESULT> callable) throws Exception
callable
in the context of a transaction. invokes
the callable
in a surrounding try-statement so that the transaction is automatically committed if your
callable
succeeds while a rollback is performed in case it fails (throws anything).<RESULT> RESULT doInTransaction(Callable<RESULT> callable, TransactionSettings settings) throws Exception
callable
in the context of a transaction. invokes
the callable
in a surrounding try-statement so that the transaction is automatically committed if your
callable
succeeds while a rollback is performed in case it fails (throws anything).<RESULT> RESULT doInTransaction(TransactionCallable<RESULT> callable)
callable
in the context of a transaction. invokes
the callable
in a surrounding try-statement so that the transaction is
automatically committed if your callable
succeeds while a rollback is performed in case it
fails (throws anything).<RESULT> RESULT doInTransaction(TransactionCallable<RESULT> callable, TransactionSettings settings)
callable
in the context of a transaction. invokes
the callable
in a surrounding try-statement so that the transaction is
automatically committed if your callable
succeeds while a rollback is performed in case it
fails (throws anything).Copyright © 2001–2016 mmm-Team. All rights reserved.