Purpose: Defines the Interface for EclipseLink extensions to the EntityManagerFactory
jakarta.persistence.EntityManagerFactory
| Modifier and Type | Method and Description |
|---|---|
| public DatabaseSessionImpl | getDatabaseSession()
Returns the DatabaseSession that the Factory will be using and initializes it if it is not available. |
| public ServerSession | getServerSession()
Returns the ServerSession that the Factory will be using and initializes it if it is not available. |
| public SessionBroker | getSessionBroker()
Returns the SessionBroker that the Factory will be using and initializes it if it is not available. |
| public void | |
| public EntityManagerFactoryDelegate |
| getDatabaseSession | back to summary |
|---|---|
| public DatabaseSessionImpl getDatabaseSession() Returns the DatabaseSession that the Factory will be using and initializes it if it is not available. | |
| getServerSession | back to summary |
|---|---|
| public ServerSession getServerSession() Returns the ServerSession that the Factory will be using and initializes it if it is not available. | |
| getSessionBroker | back to summary |
|---|---|
| public 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. | |
| refreshMetadata | back to summary |
|---|---|
| public void refreshMetadata(Map<String, 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 | |
| unwrap | back to summary |
|---|---|
| public 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. | |