Class PhysicalEntityManagerWrapper
- java.lang.Object
-
- com.sun.enterprise.container.common.impl.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 Summary
Constructors Constructor Description PhysicalEntityManagerWrapper(jakarta.persistence.EntityManager em, jakarta.persistence.SynchronizationType synchronizationType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the resourcejakarta.persistence.EntityManager
getEM()
The physical entity managerjakarta.persistence.SynchronizationType
getSynchronizationType()
SynchronizationType of the physical EMboolean
isOpen()
Returns true if the resource is open
-
-
-
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 interfaceSimpleResource
-
close
public void close()
Description copied from interface:SimpleResource
Close the resource- Specified by:
close
in interfaceSimpleResource
-
-