Class PersistenceProvider


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

      • log

        protected static final Log log
      • emf

        protected volatile javax.persistence.EntityManagerFactory emf
    • Method Detail

      • 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)