Class PhysicalEntityManagerWrapper

  • All Implemented Interfaces:
    SimpleResource

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

      • PhysicalEntityManagerWrapper

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

      • 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()
        Description copied from interface: SimpleResource
        Returns true if the resource is open
        Specified by:
        isOpen in interface SimpleResource