jBPM distribution 6.0.0.CR3

org.jbpm.shared.services.impl
Class JbpmJTATransactionManager

java.lang.Object
  extended by org.jbpm.shared.services.impl.JbpmJTATransactionManager
All Implemented Interfaces:
JbpmServicesTransactionManager

public class JbpmJTATransactionManager
extends Object
implements JbpmServicesTransactionManager


Constructor Summary
JbpmJTATransactionManager()
           
 
Method Summary
 void attachPersistenceContext(javax.persistence.EntityManager em)
           
 boolean begin(javax.persistence.EntityManager em)
           
 void commit(javax.persistence.EntityManager em, boolean txOwner)
           
 void dispose()
           
protected  UserTransaction findUserTransaction()
           
 int getStatus(javax.persistence.EntityManager em)
           
 void registerTXSynchronization(org.drools.persistence.TransactionSynchronization txSync)
           
 void rollback(javax.persistence.EntityManager em, boolean txOwner)
          It is the responsibility of this method to check that the status of the transaction is appropriate before rolling back the transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbpmJTATransactionManager

public JbpmJTATransactionManager()
Method Detail

attachPersistenceContext

public void attachPersistenceContext(javax.persistence.EntityManager em)
Specified by:
attachPersistenceContext in interface JbpmServicesTransactionManager

begin

public boolean begin(javax.persistence.EntityManager em)
Specified by:
begin in interface JbpmServicesTransactionManager

commit

public void commit(javax.persistence.EntityManager em,
                   boolean txOwner)
Specified by:
commit in interface JbpmServicesTransactionManager

rollback

public void rollback(javax.persistence.EntityManager em,
                     boolean txOwner)
Description copied from interface: JbpmServicesTransactionManager
It is the responsibility of this method to check that the status of the transaction is appropriate before rolling back the transaction.

Specified by:
rollback in interface JbpmServicesTransactionManager
Parameters:
em - The persistence context (aka, the entity manager)
txOwner - Whether or not the calling clause is owner of this transaction.

getStatus

public int getStatus(javax.persistence.EntityManager em)
Specified by:
getStatus in interface JbpmServicesTransactionManager

dispose

public void dispose()
Specified by:
dispose in interface JbpmServicesTransactionManager

findUserTransaction

protected UserTransaction findUserTransaction()

registerTXSynchronization

public void registerTXSynchronization(org.drools.persistence.TransactionSynchronization txSync)
Specified by:
registerTXSynchronization in interface JbpmServicesTransactionManager

jBPM distribution 6.0.0.CR3

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.