AbstractEntityManagerFactoryBean#setJpaVendorAdapter
| Modifier and Type | Method and Description |
|---|---|
| public default Class | getEntityManagerFactoryInterface()
Return the vendor-specific EntityManagerFactory interface that the EntityManagerFactory proxy is supposed to implement. |
| public default Class | getEntityManagerInterface()
Return the vendor-specific EntityManager interface that this provider's EntityManagers will implement. |
| public default JpaDialect | getJpaDialect()
Return the vendor-specific JpaDialect implementation for this
provider, or |
| public default Map | Returns: a Map of JPA properties, as accepted by the standard JPA bootstrap facilities, or an empty Map if there are no properties to exposethe PersistenceUnitInfo for the current persistence unit pui)Return a Map of vendor-specific JPA properties for the given persistence unit, typically based on settings in this JpaVendorAdapter instance. |
| public default Map | Returns: a Map of JPA properties, as accepted by the standard JPA bootstrap facilities, or an empty Map if there are no properties to exposeReturn a Map of vendor-specific JPA properties, typically based on settings in this JpaVendorAdapter instance. |
| public PersistenceProvider | |
| public default String | getPersistenceProviderRootPackage()
Return the name of the persistence provider's root package (e.g. "oracle.toplink.essentials"). |
| public default void | postProcessEntityManager(EntityManager em)
Optional callback for post-processing the native EntityManager before active use. |
| public default void | postProcessEntityManagerFactory(EntityManagerFactory emf)
Optional callback for post-processing the native EntityManagerFactory before active use. |
| getEntityManagerFactoryInterface | back to summary |
|---|---|
| public default Class Return the vendor-specific EntityManagerFactory interface that the EntityManagerFactory proxy is supposed to implement. If the provider does not offer any EntityManagerFactory extensions,
the adapter should simply return the standard
| |
| getEntityManagerInterface | back to summary |
|---|---|
| public default Class Return the vendor-specific EntityManager interface that this provider's EntityManagers will implement. If the provider does not offer any EntityManager extensions,
the adapter should simply return the standard
| |
| getJpaDialect | back to summary |
|---|---|
| public default JpaDialect getJpaDialect() Return the vendor-specific JpaDialect implementation for this
provider, or
| |
| getJpaPropertyMap | back to summary |
|---|---|
| public default Map Return a Map of vendor-specific JPA properties for the given persistence unit, typically based on settings in this JpaVendorAdapter instance. Note that there might be further JPA properties defined on the EntityManagerFactory bean, which might potentially override individual JPA property values specified here. This implementation delegates to Note This variant will only be invoked in case of Jakarta EE style
container bootstrapping where a
| |
| getJpaPropertyMap | back to summary |
|---|---|
| public default Map Return a Map of vendor-specific JPA properties, typically based on settings in this JpaVendorAdapter instance. Note that there might be further JPA properties defined on the EntityManagerFactory bean, which might potentially override individual JPA property values specified here.
| |
| getPersistenceProvider | back to summary |
|---|---|
| public PersistenceProvider getPersistenceProvider() Return the vendor-specific persistence provider. | |
| getPersistenceProviderRootPackage | back to summary |
|---|---|
| public default String getPersistenceProviderRootPackage() Return the name of the persistence provider's root package (e.g. "oracle.toplink.essentials"). Will be used for excluding provider classes from temporary class overriding.
| |
| postProcessEntityManager | back to summary |
|---|---|
| public default void postProcessEntityManager(EntityManager em) Optional callback for post-processing the native EntityManager before active use. This can be used for setting vendor-specific parameters, e.g. Hibernate filters, on every new EntityManager.
| |
| postProcessEntityManagerFactory | back to summary |
|---|---|
| public default void postProcessEntityManagerFactory(EntityManagerFactory emf) Optional callback for post-processing the native EntityManagerFactory before active use. This can be used for triggering vendor-specific initialization processes. While this is not expected to be used for most providers, it is included here as a general extension hook. | |