org.jbpm.shared.services.impl
Class JbpmLocalTransactionManager
java.lang.Object
org.jbpm.shared.services.impl.JbpmLocalTransactionManager
- All Implemented Interfaces:
- JbpmServicesTransactionManager
public class JbpmLocalTransactionManager
- extends Object
- implements JbpmServicesTransactionManager
Method Summary |
void |
attachPersistenceContext(javax.persistence.EntityManager em)
|
boolean |
begin(javax.persistence.EntityManager em)
|
void |
commit(javax.persistence.EntityManager em,
boolean txOwner)
|
void |
dispose()
|
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 |
JbpmLocalTransactionManager
public JbpmLocalTransactionManager()
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
registerTXSynchronization
public void registerTXSynchronization(org.drools.persistence.TransactionSynchronization txSync)
- Specified by:
registerTXSynchronization
in interface JbpmServicesTransactionManager
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.