org.jbpm.pvm.internal.tx
Class SpringTransactionInterceptor

java.lang.Object
  extended by org.jbpm.pvm.internal.svc.Interceptor
      extended by org.jbpm.pvm.internal.tx.SpringTransactionInterceptor
All Implemented Interfaces:
CommandService

public class SpringTransactionInterceptor
extends Interceptor

calls setRollbackOnly on the transaction in the environment in case an exception occurs during execution of the command.

Author:
Andries Inze, Joram Barrez

Field Summary
protected  int springPropagationBehaviour
           
 
Fields inherited from class org.jbpm.pvm.internal.svc.Interceptor
next
 
Fields inherited from interface org.jbpm.pvm.internal.cmd.CommandService
NAME_NEW_TX_REQUIRED_COMMAND_SERVICE, NAME_TX_REQUIRED_COMMAND_SERVICE
 
Constructor Summary
SpringTransactionInterceptor()
           
 
Method Summary
<T> T
execute(Command<T> command)
           
 void setPolicy(Policy policy)
           
 void setTransactionManagerName(java.lang.String transactionManagerName)
           
 
Methods inherited from class org.jbpm.pvm.internal.svc.Interceptor
getNext, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

springPropagationBehaviour

protected int springPropagationBehaviour
Constructor Detail

SpringTransactionInterceptor

public SpringTransactionInterceptor()
Method Detail

execute

public <T> T execute(Command<T> command)

setPolicy

public void setPolicy(Policy policy)

setTransactionManagerName

public void setTransactionManagerName(java.lang.String transactionManagerName)


Copyright © 2010 JBoss Community. All Rights Reserved.