Interface JpaVendorAdapter
- All Known Implementing Classes:
- AbstractJpaVendorAdapter,- EclipseLinkJpaVendorAdapter,- HibernateJpaVendorAdapter
- Since:
- 2.0
- Author:
- Juergen Hoeller, Rod Johnson
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptiondefault Class<? extends EntityManagerFactory>Return the vendor-specific EntityManagerFactory interface that the EntityManagerFactory proxy is supposed to implement.default Class<? extends EntityManager>Return the vendor-specific EntityManager interface that this provider's EntityManagers will implement.default JpaDialectReturn the vendor-specific JpaDialect implementation for this provider, ornullif there is none.Return a Map of vendor-specific JPA properties, typically based on settings in this JpaVendorAdapter instance.Return a Map of vendor-specific JPA properties for the given persistence unit, typically based on settings in this JpaVendorAdapter instance.Return the vendor-specific persistence provider.default StringReturn the name of the persistence provider's root package (for example, "oracle.toplink.essentials").default voidOptional callback for post-processing the native EntityManager before active use.default voidOptional callback for post-processing the native EntityManagerFactory before active use.
- 
Method Details- 
getPersistenceProviderPersistenceProvider getPersistenceProvider()Return the vendor-specific persistence provider.
- 
getPersistenceProviderRootPackageReturn the name of the persistence provider's root package (for example, "oracle.toplink.essentials"). Will be used for excluding provider classes from temporary class overriding.- Since:
- 2.5.2
 
- 
getJpaPropertyMapReturn 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 getJpaPropertyMap()for non-unit-dependent properties. Effectively, this PersistenceUnitInfo-based variant only needs to be implemented if there is an actual need to react to unit-specific characteristics such as the transaction type.NOTE: This variant will only be invoked in case of Jakarta EE style container bootstrapping where a PersistenceUnitInfois present (i.e.LocalContainerEntityManagerFactoryBean). In case of simple Java SE style bootstrapping viaPersistence(i.e.LocalEntityManagerFactoryBean), the parameter-lessgetJpaPropertyMap()variant will be called directly.- Parameters:
- pui- the PersistenceUnitInfo for the current persistence unit
- Returns:
- a Map of JPA properties, as accepted by the standard JPA bootstrap facilities, or an empty Map if there are no properties to expose
- Since:
- 4.3.13
- See Also:
 
- 
getJpaPropertyMapReturn 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. - Returns:
- a Map of JPA properties, as accepted by the standard JPA bootstrap facilities, or an empty Map if there are no properties to expose
- See Also:
 
- 
getJpaDialectReturn the vendor-specific JpaDialect implementation for this provider, ornullif there is none.
- 
getEntityManagerFactoryInterfaceReturn 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 EntityManagerFactoryclass here.- Since:
- 2.5.2
 
- 
getEntityManagerInterfaceReturn 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 EntityManagerclass here.
- 
postProcessEntityManagerFactoryOptional 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. 
- 
postProcessEntityManagerOptional callback for post-processing the native EntityManager before active use.This can be used for setting vendor-specific parameters, for example, Hibernate filters, on every new EntityManager. - Since:
- 5.3
 
 
-