Class PersistenceProvider

java.lang.Object
org.nuxeo.ecm.core.persistence.PersistenceProvider

public class PersistenceProvider extends Object
Author:
Stephane Lacoin [aka matic]
  • Field Details

    • emf

      protected volatile javax.persistence.EntityManagerFactory emf
    • emfProvider

      protected final EntityManagerFactoryProvider emfProvider
  • Constructor Details

  • Method Details

    • openPersistenceUnit

      public void openPersistenceUnit()
    • closePersistenceUnit

      public void closePersistenceUnit()
    • doAcquireEntityManager

      protected javax.persistence.EntityManager doAcquireEntityManager()
    • getTransaction

      protected javax.persistence.EntityTransaction getTransaction(javax.persistence.EntityManager em)
    • acquireEntityManager

      public javax.persistence.EntityManager acquireEntityManager()
    • acquireEntityManagerWithActiveTransaction

      public javax.persistence.EntityManager acquireEntityManagerWithActiveTransaction()
    • doBegin

      protected void doBegin(javax.persistence.EntityManager em)
    • doCommit

      protected void doCommit(javax.persistence.EntityManager em)
    • doRollback

      protected void doRollback(javax.persistence.EntityManager em)
    • releaseEntityManager

      protected void releaseEntityManager(javax.persistence.EntityManager em)
    • releaseEntityManagerWithRollback

      public void releaseEntityManagerWithRollback(javax.persistence.EntityManager em)
    • run

      public <T> T run(Boolean needActiveSession, PersistenceProvider.RunCallback<T> callback)
    • run

      public void run(Boolean needActiveSession, PersistenceProvider.RunVoid callback)