org.riotfamily.common.scheduling
Class TransactionalScheduledTask

java.lang.Object
  extended by org.riotfamily.common.scheduling.ScheduledTaskSupport
      extended by org.riotfamily.common.scheduling.TransactionalScheduledTask
All Implemented Interfaces:
ScheduledTask, Ordered

public abstract class TransactionalScheduledTask
extends ScheduledTaskSupport


Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
TransactionalScheduledTask(PlatformTransactionManager tx)
           
 
Method Summary
 void execute()
          Executes the task.
protected abstract  void executeInTransaction()
           
 void setTxdef(TransactionDefinition txdef)
           
 
Methods inherited from class org.riotfamily.common.scheduling.ScheduledTaskSupport
getOrder, getTriggerNames, setOrder, setTriggerNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionalScheduledTask

public TransactionalScheduledTask(PlatformTransactionManager tx)
Method Detail

setTxdef

public void setTxdef(TransactionDefinition txdef)

execute

public final void execute()
                   throws Exception
Description copied from interface: ScheduledTask
Executes the task. The method is invoked by the Quartz scheduler when one of the configured triggers fires.

Throws:
Exception

executeInTransaction

protected abstract void executeInTransaction()
                                      throws Exception
Throws:
Exception