Package io.jmix.eclipselink.impl
Class JmixEntityManagerFactory
java.lang.Object
io.jmix.eclipselink.impl.JmixEntityManagerFactory
- All Implemented Interfaces:
jakarta.persistence.EntityManagerFactory
,AutoCloseable
public class JmixEntityManagerFactory
extends Object
implements jakarta.persistence.EntityManagerFactory
-
Constructor Summary
ConstructorDescriptionJmixEntityManagerFactory
(jakarta.persistence.EntityManagerFactory delegate, org.springframework.beans.factory.ListableBeanFactory beanFactory, MetadataTools metadataTools) -
Method Summary
Modifier and TypeMethodDescription<T> void
addNamedEntityGraph
(String graphName, jakarta.persistence.EntityGraph<T> entityGraph) void
addNamedQuery
(String name, jakarta.persistence.Query query) void
close()
jakarta.persistence.EntityManager
jakarta.persistence.EntityManager
createEntityManager
(jakarta.persistence.SynchronizationType synchronizationType) jakarta.persistence.EntityManager
createEntityManager
(jakarta.persistence.SynchronizationType synchronizationType, Map map) jakarta.persistence.EntityManager
createEntityManager
(Map map) jakarta.persistence.Cache
getCache()
jakarta.persistence.criteria.CriteriaBuilder
jakarta.persistence.metamodel.Metamodel
jakarta.persistence.PersistenceUnitUtil
boolean
isOpen()
<T> T
-
Constructor Details
-
JmixEntityManagerFactory
public JmixEntityManagerFactory(jakarta.persistence.EntityManagerFactory delegate, org.springframework.beans.factory.ListableBeanFactory beanFactory, MetadataTools metadataTools)
-
-
Method Details
-
createEntityManager
public jakarta.persistence.EntityManager createEntityManager()- Specified by:
createEntityManager
in interfacejakarta.persistence.EntityManagerFactory
-
createEntityManager
- Specified by:
createEntityManager
in interfacejakarta.persistence.EntityManagerFactory
-
createEntityManager
public jakarta.persistence.EntityManager createEntityManager(jakarta.persistence.SynchronizationType synchronizationType) - Specified by:
createEntityManager
in interfacejakarta.persistence.EntityManagerFactory
-
createEntityManager
public jakarta.persistence.EntityManager createEntityManager(jakarta.persistence.SynchronizationType synchronizationType, Map map) - Specified by:
createEntityManager
in interfacejakarta.persistence.EntityManagerFactory
-
getCriteriaBuilder
public jakarta.persistence.criteria.CriteriaBuilder getCriteriaBuilder()- Specified by:
getCriteriaBuilder
in interfacejakarta.persistence.EntityManagerFactory
-
getMetamodel
public jakarta.persistence.metamodel.Metamodel getMetamodel()- Specified by:
getMetamodel
in interfacejakarta.persistence.EntityManagerFactory
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfacejakarta.persistence.EntityManagerFactory
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacejakarta.persistence.EntityManagerFactory
-
getProperties
- Specified by:
getProperties
in interfacejakarta.persistence.EntityManagerFactory
-
getCache
public jakarta.persistence.Cache getCache()- Specified by:
getCache
in interfacejakarta.persistence.EntityManagerFactory
-
getPersistenceUnitUtil
public jakarta.persistence.PersistenceUnitUtil getPersistenceUnitUtil()- Specified by:
getPersistenceUnitUtil
in interfacejakarta.persistence.EntityManagerFactory
-
addNamedQuery
- Specified by:
addNamedQuery
in interfacejakarta.persistence.EntityManagerFactory
-
unwrap
- Specified by:
unwrap
in interfacejakarta.persistence.EntityManagerFactory
-
addNamedEntityGraph
public <T> void addNamedEntityGraph(String graphName, jakarta.persistence.EntityGraph<T> entityGraph) - Specified by:
addNamedEntityGraph
in interfacejakarta.persistence.EntityManagerFactory
-