Interface ITransactionService


public interface ITransactionService
Created by jasper on 30/10/17.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    doInTransaction(Callable<T> func, boolean readOnly, boolean requiresNew)
    Execute a transaction, rollbacks if fails.
  • Method Details

    • doInTransaction

      <T> T doInTransaction(Callable<T> func, boolean readOnly, boolean requiresNew)
      Execute a transaction, rollbacks if fails.
      Type Parameters:
      T - Return type parameter
      Parameters:
      func - the transaction to execute
      readOnly - Whether this is a read only transaction.
      requiresNew - true to force a new transaction.
      Returns:
      the result of the transaction in case of success.