EntityManagerFactory.
This facility can be obtained from Spring-managed EntityManagerFactory proxies through casting the EntityManagerFactory handle to this interface.
| Modifier and Type | Method and Description |
|---|---|
| public EntityManager | createNativeEntityManager(Map<?, ?> properties)
Create a native JPA EntityManager to be used as the framework-managed resource behind an application-level EntityManager handle. |
| public ClassLoader | |
| public DataSource | Returns: the JDBC DataSource, ornull if not knownReturn the JDBC DataSource that this EntityManagerFactory obtains its JDBC Connections from. |
| public Class | getEntityManagerInterface()
Return the (potentially vendor-specific) EntityManager interface that this factory's EntityManagers will implement. |
| public JpaDialect | getJpaDialect()
Return the vendor-specific JpaDialect implementation for this
EntityManagerFactory, or |
| public EntityManagerFactory | Returns: the unadorned EntityManagerFactory (nevernull)Return the raw underlying EntityManagerFactory. |
| public PersistenceProvider | Returns: the PersistenceProvider used to create this EntityManagerFactory, ornull if the standard JPA provider autodetection process
was used to configure the EntityManagerFactoryReturn the underlying PersistenceProvider that the underlying EntityManagerFactory was created with. |
| public PersistenceUnitInfo | Returns: the PersistenceUnitInfo used to create this EntityManagerFactory, ornull if the in-container contract was not used to
configure the EntityManagerFactoryReturn the PersistenceUnitInfo used to create this EntityManagerFactory, if the in-container API was used. |
| public String | getPersistenceUnitName()
Return the name of the persistence unit used to create this
EntityManagerFactory, or |
| createNativeEntityManager | back to summary |
|---|---|
| public EntityManager createNativeEntityManager(Map<?, ?> properties) Create a native JPA EntityManager to be used as the framework-managed resource behind an application-level EntityManager handle. This exposes a native
| |
| getBeanClassLoader | back to summary |
|---|---|
| public ClassLoader getBeanClassLoader() Return the ClassLoader that the application's beans are loaded with. Proxies will be generated in this ClassLoader. | |
| getDataSource | back to summary |
|---|---|
| public DataSource getDataSource() Return the JDBC DataSource that this EntityManagerFactory obtains its JDBC Connections from.
| |
| getEntityManagerInterface | back to summary |
|---|---|
| public Class Return the (potentially vendor-specific) EntityManager interface that this factory's EntityManagers will implement. A
| |
| getJpaDialect | back to summary |
|---|---|
| public JpaDialect getJpaDialect() Return the vendor-specific JpaDialect implementation for this
EntityManagerFactory, or
| |
| getNativeEntityManagerFactory | back to summary |
|---|---|
| public EntityManagerFactory getNativeEntityManagerFactory() Return the raw underlying EntityManagerFactory.
| |
| getPersistenceProvider | back to summary |
|---|---|
| public PersistenceProvider getPersistenceProvider() Return the underlying PersistenceProvider that the underlying EntityManagerFactory was created with.
| |
| getPersistenceUnitInfo | back to summary |
|---|---|
| public PersistenceUnitInfo getPersistenceUnitInfo() Return the PersistenceUnitInfo used to create this EntityManagerFactory, if the in-container API was used.
| |
| getPersistenceUnitName | back to summary |
|---|---|
| public String getPersistenceUnitName() Return the name of the persistence unit used to create this
EntityManagerFactory, or If | |