Class TransactionedCallable

java.lang.Object
org.kuali.rice.ken.util.TransactionedCallable
All Implemented Interfaces:
Callable, org.springframework.transaction.support.TransactionCallback

public class TransactionedCallable extends Object implements Callable, org.springframework.transaction.support.TransactionCallback
A Callable that performs work within a transaction and returns the TransactionCallback's result
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • TransactionedCallable

      public TransactionedCallable(org.springframework.transaction.support.TransactionTemplate txTemplate)
    • TransactionedCallable

      public TransactionedCallable(org.springframework.transaction.support.TransactionTemplate txTemplate, org.springframework.transaction.support.TransactionCallback callback)
  • Method Details

    • call

      public Object call() throws Exception
      Specified by:
      call in interface Callable
      Throws:
      Exception
    • doInTransaction

      public Object doInTransaction(org.springframework.transaction.TransactionStatus txStatus)
      Specified by:
      doInTransaction in interface org.springframework.transaction.support.TransactionCallback