EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa
Interface JpaEntityManagerFactory


public interface JpaEntityManagerFactory

Purpose: Defines the Interface for EclipseLink extensions to the EntityManagerFactory

See Also:
EntityManagerFactory

Method Summary
 org.eclipse.persistence.internal.sessions.DatabaseSessionImpl getDatabaseSession()
          Returns the DatabaseSession that the Factory will be using and initializes it if it is not available.
 ServerSession getServerSession()
          Returns the ServerSession that the Factory will be using and initializes it if it is not available.
 SessionBroker getSessionBroker()
          Returns the SessionBroker that the Factory will be using and initializes it if it is not available.
 void refreshMetadata(java.util.Map properties)
          As this EntityManagerFactory to refresh itself.
 org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate unwrap()
          Gets the underlying implementation of the EntityManagerFactory.
 

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

ServerSession getServerSession()
Returns the ServerSession that the Factory will be using and initializes it if it is not available.


getSessionBroker

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

org.eclipse.persistence.internal.jpa.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 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 -

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference