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 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 voidclose()jakarta.persistence.EntityManagergetEM()The physical entity managerjakarta.persistence.SynchronizationTypegetSynchronizationType()SynchronizationType of the physical EMbooleanisOpen()
-
-
-
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()
- Specified by:
isOpenin interfacecom.sun.enterprise.transaction.api.SimpleResource
-
close
public void close()
- Specified by:
closein interfacecom.sun.enterprise.transaction.api.SimpleResource
-
-