Package eu.xenit.alfred.api.transaction
Interface ITransactionService
public interface ITransactionService
Created by jasper on 30/10/17.
-
Method Summary
Modifier and TypeMethodDescription<T> TdoInTransaction(Callable<T> func, boolean readOnly, boolean requiresNew) Execute a transaction, rollbacks if fails.
-
Method Details
-
doInTransaction
Execute a transaction, rollbacks if fails.- Type Parameters:
T- Return type parameter- Parameters:
func- the transaction to executereadOnly- Whether this is a read only transaction.requiresNew-trueto force a new transaction.- Returns:
- the result of the transaction in case of success.
-