| org.springframework.orm.jpa.JpaVendorAdapter
All known Subclasses: org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter,
JpaVendorAdapter | public interface JpaVendorAdapter (Code) | | SPI interface that allows to plug in vendor-specific behavior
into Spring's EntityManagerFactory creators. Serves as single
configuration point for all vendor-specific properties.
author: Juergen Hoeller author: Rod Johnson since: 2.0 See Also: AbstractEntityManagerFactoryBean.setJpaVendorAdapter |
Method Summary | |
Class<? extends EntityManager> | getEntityManagerInterface() Return the vendor-specific EntityManager interface that this
provider's EntityManagers will implement. | JpaDialect | getJpaDialect() Return the vendor-specific JpaDialect implementation for this
provider, or null if there is none. | Map | getJpaPropertyMap() Return a Map of vendor-specific JPA properties,
typically based on settings in this JpaVendorAdapter instance. | PersistenceProvider | getPersistenceProvider() Return the vendor-specific persistence provider. | void | postProcessEntityManagerFactory(EntityManagerFactory emf) Optional callback for post-processing the native EntityManagerFactory
before active use. |
getEntityManagerInterface | Class<? extends EntityManager> getEntityManagerInterface()(Code) | | 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
javax.persistence.EntityManager class here.
|
getJpaDialect | JpaDialect getJpaDialect()(Code) | | Return the vendor-specific JpaDialect implementation for this
provider, or null if there is none.
|
getJpaPropertyMap | Map getJpaPropertyMap()(Code) | | 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.
a Map of JPA properties, as as accepted by the standardJPA bootstrap facilities, or null or an empty Mapif there are no such properties to expose See Also: javax.persistence.Persistence.createEntityManagerFactory(Stringjava.util.Map) See Also: javax.persistence.spi.PersistenceProvider.createContainerEntityManagerFactory(javax.persistence.spi.PersistenceUnitInfojava.util.Map) |
getPersistenceProvider | PersistenceProvider getPersistenceProvider()(Code) | | Return the vendor-specific persistence provider.
|
postProcessEntityManagerFactory | void postProcessEntityManagerFactory(EntityManagerFactory emf)(Code) | | 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.
|
|
|