org.compass.core.transaction.context
Class TransactionalCallableWithTr<T>

java.lang.Object
  extended by org.compass.core.transaction.context.TransactionalCallableWithTr<T>
All Implemented Interfaces:
Callable<T>

public class TransactionalCallableWithTr<T>
extends Object
implements Callable<T>

A wrapper around a delegate callable that will execute it within a transactional context.

Author:
kimchy

Constructor Summary
TransactionalCallableWithTr(TransactionContext transactionContext, Callable<T> delegate)
           
 
Method Summary
 T call()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionalCallableWithTr

public TransactionalCallableWithTr(TransactionContext transactionContext,
                                   Callable<T> delegate)
Method Detail

call

public T call()
       throws Exception
Specified by:
call in interface Callable<T>
Throws:
Exception


Copyright (c) 2004-2008 The Compass Project.