Interface JpaEntityManagerFactory

  • All Superinterfaces:
    java.lang.AutoCloseable, javax.persistence.EntityManagerFactory
    All Known Implementing Classes:
    EntityManagerFactoryDelegate, EntityManagerFactoryImpl

    public interface JpaEntityManagerFactory
    extends javax.persistence.EntityManagerFactory, java.lang.AutoCloseable

    Purpose: Defines the Interface for EclipseLink extensions to the EntityManagerFactory

    See Also:
    EntityManagerFactory
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.persistence.internal.sessions.DatabaseSessionImpl getDatabaseSession()
      Returns the DatabaseSession that the Factory will be using and initializes it if it is not available.
      org.eclipse.persistence.sessions.server.ServerSession getServerSession()
      Returns the ServerSession that the Factory will be using and initializes it if it is not available.
      org.eclipse.persistence.sessions.broker.SessionBroker getSessionBroker()
      Returns the SessionBroker that the Factory will be using and initializes it if it is not available.
      void refreshMetadata​(java.util.Map<java.lang.String,​java.lang.Object> properties)
      As this EntityManagerFactory to refresh itself.
      EntityManagerFactoryDelegate unwrap()
      Gets the underlying implementation of the EntityManagerFactory.
      • Methods inherited from interface java.lang.AutoCloseable

        close
      • Methods inherited from interface javax.persistence.EntityManagerFactory

        addNamedEntityGraph, addNamedQuery, close, createEntityManager, createEntityManager, createEntityManager, createEntityManager, getCache, getCriteriaBuilder, getMetamodel, getPersistenceUnitUtil, getProperties, isOpen, unwrap
    • Method Detail

      • getDatabaseSession

        org.eclipse.persistence.internal.sessions.DatabaseSessionImpl getDatabaseSession()
        Returns the DatabaseSession that the Factory will be using and initializes it if it is not available.
      • getServerSession

        org.eclipse.persistence.sessions.server.ServerSession getServerSession()
        Returns the ServerSession that the Factory will be using and initializes it if it is not available.
      • getSessionBroker

        org.eclipse.persistence.sessions.broker.SessionBroker getSessionBroker()
        Returns the SessionBroker that the Factory will be using and initializes it if it is not available. Calls to this method should only be made on entity managers representing composite persistence units.
      • unwrap

        EntityManagerFactoryDelegate unwrap()
        Gets the underlying implementation of the EntityManagerFactory. This method will return a version of EntityManagerFactory that is based on the available metadata at the time it is called. Future calls to refresh will not affect that metadata on this EntityManagerFactory.
        Returns:
      • refreshMetadata

        void refreshMetadata​(java.util.Map<java.lang.String,​java.lang.Object> properties)
        As this EntityManagerFactory to refresh itself. This will cause the underlying EntityManagerFactory implementation to be dropped and a new one to be bootstrapped. Existing EntityManagers will continue to use the old implementation
        Parameters:
        properties -