Class EntityManagerFactoryImpl

    • Constructor Detail

      • EntityManagerFactoryImpl

        public EntityManagerFactoryImpl()
        Default constructor provided for auto-instantiation.
      • EntityManagerFactoryImpl

        public EntityManagerFactoryImpl​(BrokerFactory factory)
        Supply delegate on construction.
    • Method Detail

      • getBrokerFactory

        public BrokerFactory getBrokerFactory()
        Delegate.
      • setBrokerFactory

        public void setBrokerFactory​(BrokerFactory factory)
        Delegate must be provided before use.
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getProperties()
        Description copied from interface: OpenJPAEntityManagerFactory
        Return properties describing this runtime.
        Specified by:
        getProperties in interface jakarta.persistence.EntityManagerFactory
        Specified by:
        getProperties in interface OpenJPAEntityManagerFactory
      • createEntityManager

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

        public OpenJPAEntityManagerSPI createEntityManager​(jakarta.persistence.SynchronizationType synchronizationType,
                                                           java.util.Map props)
        Creates and configures a entity manager with the given properties. The property keys in the given map can be either qualified or not.
        Specified by:
        createEntityManager in interface jakarta.persistence.EntityManagerFactory
        Returns:
        list of exceptions raised or empty list.
      • newEntityManagerImpl

        protected EntityManagerImpl newEntityManagerImpl​(Broker broker)
        Create a new entity manager around the given broker.
      • close

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

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getCache

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

        public MetamodelImpl getMetamodel()
        Specified by:
        getMetamodel in interface jakarta.persistence.EntityManagerFactory
      • getPersistenceUnitUtil

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

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

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

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

        public java.lang.Object getIdentifier​(java.lang.Object entity)
        Get the identifier for the specified entity. If not managed by any of the em's in this PU or not persistence capable, return null.
        Specified by:
        getIdentifier in interface jakarta.persistence.PersistenceUnitUtil
      • isLoaded

        public boolean isLoaded​(java.lang.Object entity)
        Specified by:
        isLoaded in interface jakarta.persistence.PersistenceUnitUtil
        Specified by:
        isLoaded in interface jakarta.persistence.PersistenceUtil
      • isLoaded

        public boolean isLoaded​(java.lang.Object entity,
                                java.lang.String attribute)
        Specified by:
        isLoaded in interface jakarta.persistence.PersistenceUnitUtil
        Specified by:
        isLoaded in interface jakarta.persistence.PersistenceUtil