org.jbpm.shared.services.api
Interface JbpmServicesTransactionManager
- All Known Implementing Classes:
- JbpmJTATransactionManager, JbpmLocalTransactionManager
public interface 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. |
boolean |
supportsTXSynchronization()
|
begin
boolean begin(javax.persistence.EntityManager em)
commit
void commit(javax.persistence.EntityManager em,
boolean txOwner)
rollback
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.
- Parameters:
em
- The persistence context (aka, the entity manager)txOwner
- Whether or not the calling clause is owner of this transaction.
getStatus
int getStatus(javax.persistence.EntityManager em)
attachPersistenceContext
void attachPersistenceContext(javax.persistence.EntityManager em)
dispose
void dispose()
registerTXSynchronization
void registerTXSynchronization(org.drools.persistence.TransactionSynchronization txSync)
supportsTXSynchronization
boolean supportsTXSynchronization()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.