Class PhysicalEntityManagerWrapper

java.lang.Object
com.sun.enterprise.container.common.impl.PhysicalEntityManagerWrapper
All Implemented Interfaces:
com.sun.enterprise.transaction.api.SimpleResource

public class PhysicalEntityManagerWrapper extends Object implements com.sun.enterprise.transaction.api.SimpleResource
Wraps a physical entity manager so that we can carry synchronization type of it.
Author:
Mitesh Meswani
  • Constructor Details

    • PhysicalEntityManagerWrapper

      public PhysicalEntityManagerWrapper(jakarta.persistence.EntityManager em, jakarta.persistence.SynchronizationType synchronizationType)
  • Method Details

    • getEM

      public jakarta.persistence.EntityManager getEM()
      The physical entity manager
    • getSynchronizationType

      public jakarta.persistence.SynchronizationType getSynchronizationType()
      SynchronizationType of the physical EM
    • isOpen

      public boolean isOpen()
      Specified by:
      isOpen in interface com.sun.enterprise.transaction.api.SimpleResource
    • close

      public void close()
      Specified by:
      close in interface com.sun.enterprise.transaction.api.SimpleResource