org.spicefactory.pimento.transaction
Class DefaultTransactionExecutor

java.lang.Object
  extended by org.spicefactory.pimento.transaction.DefaultTransactionExecutor
All Implemented Interfaces:
TransactionExecutor

public class DefaultTransactionExecutor
extends Object
implements TransactionExecutor

Default implementation of the TransactionExecutor interface that simply wraps the entire execution in a Spring managed transaction.

Author:
Jens Halm

Constructor Summary
DefaultTransactionExecutor()
           
 
Method Summary
 void execute(Transaction tx)
          Executes the specified transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTransactionExecutor

public DefaultTransactionExecutor()
Method Detail

execute

@Transactional
public void execute(Transaction tx)
Description copied from interface: TransactionExecutor
Executes the specified transaction.

Specified by:
execute in interface TransactionExecutor
Parameters:
tx - the transaction to execute