| java.lang.Object org.ow2.easybeans.persistence.TxEntityManagerLifeCycle
TxEntityManagerLifeCycle | public class TxEntityManagerLifeCycle implements Synchronization(Code) | | This class manages the lifecycle of an entity manager with transaction scoped
persistence context. It means that it should be closed when the transaction
is committed or rollbacked.
author: Florent Benoit |
Method Summary | |
public void | afterCompletion(int status) This method is called by the transaction manager after the transaction is
committed or rolled back. | public void | beforeCompletion() The beforeCompletion method is called by the transaction manager prior to
the start of the two-phase transaction commit process. |
TxEntityManagerLifeCycle | public TxEntityManagerLifeCycle(EntityManager entityManager, Transaction tx, TxEntityManagerHandler txEntityManagerHandler)(Code) | | Parameters: entityManager - Entity manager that is managed (lifecycle). Parameters: tx - the transaction that needs to be released in the handler. Parameters: txEntityManagerHandler - handler on which release association with TX |
afterCompletion | public void afterCompletion(int status)(Code) | | This method is called by the transaction manager after the transaction is
committed or rolled back.
Parameters: status - The status of the transaction completion. |
beforeCompletion | public void beforeCompletion()(Code) | | The beforeCompletion method is called by the transaction manager prior to
the start of the two-phase transaction commit process. This call is
executed with the transaction context of the transaction that is being
committed.
|
|
|