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 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 interface jakarta.persistence.EntityManagerFactory
    • createEntityManager

      public jakarta.persistence.EntityManager createEntityManager(Map map)
      Specified by:
      createEntityManager in interface jakarta.persistence.EntityManagerFactory
    • createEntityManager

      public jakarta.persistence.EntityManager createEntityManager(jakarta.persistence.SynchronizationType synchronizationType)
      Specified by:
      createEntityManager in interface jakarta.persistence.EntityManagerFactory
    • createEntityManager

      public jakarta.persistence.EntityManager createEntityManager(jakarta.persistence.SynchronizationType synchronizationType, Map map)
      Specified by:
      createEntityManager in interface jakarta.persistence.EntityManagerFactory
    • getCriteriaBuilder

      public jakarta.persistence.criteria.CriteriaBuilder getCriteriaBuilder()
      Specified by:
      getCriteriaBuilder in interface jakarta.persistence.EntityManagerFactory
    • getMetamodel

      public jakarta.persistence.metamodel.Metamodel getMetamodel()
      Specified by:
      getMetamodel in interface jakarta.persistence.EntityManagerFactory
    • isOpen

      public boolean isOpen()
      Specified by:
      isOpen in interface jakarta.persistence.EntityManagerFactory
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface jakarta.persistence.EntityManagerFactory
    • getProperties

      public Map<String,Object> getProperties()
      Specified by:
      getProperties in interface jakarta.persistence.EntityManagerFactory
    • getCache

      public jakarta.persistence.Cache getCache()
      Specified by:
      getCache in interface jakarta.persistence.EntityManagerFactory
    • getPersistenceUnitUtil

      public jakarta.persistence.PersistenceUnitUtil getPersistenceUnitUtil()
      Specified by:
      getPersistenceUnitUtil in interface jakarta.persistence.EntityManagerFactory
    • addNamedQuery

      public void addNamedQuery(String name, jakarta.persistence.Query query)
      Specified by:
      addNamedQuery in interface jakarta.persistence.EntityManagerFactory
    • unwrap

      public <T> T unwrap(Class<T> cls)
      Specified by:
      unwrap in interface jakarta.persistence.EntityManagerFactory
    • addNamedEntityGraph

      public <T> void addNamedEntityGraph(String graphName, jakarta.persistence.EntityGraph<T> entityGraph)
      Specified by:
      addNamedEntityGraph in interface jakarta.persistence.EntityManagerFactory