org.kuali.rice.ken.util
Class TransactionedCallable

java.lang.Object
  extended by 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 Summary
TransactionedCallable(org.springframework.transaction.support.TransactionTemplate txTemplate)
          Constructs a TransactionedCallable.java.
TransactionedCallable(org.springframework.transaction.support.TransactionTemplate txTemplate, org.springframework.transaction.support.TransactionCallback callback)
          Constructs a TransactionedCallable.java.
 
Method Summary
 Object call()
           
 Object doInTransaction(org.springframework.transaction.TransactionStatus txStatus)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionedCallable

public TransactionedCallable(org.springframework.transaction.support.TransactionTemplate txTemplate)
Constructs a TransactionedCallable.java.

Parameters:
txTemplate -

TransactionedCallable

public TransactionedCallable(org.springframework.transaction.support.TransactionTemplate txTemplate,
                             org.springframework.transaction.support.TransactionCallback callback)
Constructs a TransactionedCallable.java.

Parameters:
txTemplate -
callback -
Method Detail

call

public Object call()
            throws Exception
Specified by:
call in interface Callable
Throws:
Exception
See Also:
Callable.call()

doInTransaction

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


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.