org.jbpm.pvm.internal.tx
Class JtaTransactionInterceptor

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

public class JtaTransactionInterceptor
extends Interceptor

Author:
Tom Baeyens

Field Summary
protected  Policy policy
           
 
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
JtaTransactionInterceptor()
           
 
Method Summary
<T> T
execute(Command<T> command)
           
protected
<T> T
executeInExistingTx(Command<T> command)
           
protected
<T> T
executeInNewTx(Command<T> command, JtaTransaction jtaTransaction, int status)
           
 void setPolicy(Policy policy)
           
 
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

policy

protected Policy policy
Constructor Detail

JtaTransactionInterceptor

public JtaTransactionInterceptor()
Method Detail

execute

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

executeInExistingTx

protected <T> T executeInExistingTx(Command<T> command)

executeInNewTx

protected <T> T executeInNewTx(Command<T> command,
                               JtaTransaction jtaTransaction,
                               int status)

setPolicy

public void setPolicy(Policy policy)


Copyright © 2010 JBoss Community. All Rights Reserved.