|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JpaVendorAdapter
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.
AbstractEntityManagerFactoryBean.setJpaVendorAdapter(org.springframework.orm.jpa.JpaVendorAdapter)
Method Summary | |
---|---|
Class<? extends javax.persistence.EntityManagerFactory> |
getEntityManagerFactoryInterface()
Return the vendor-specific EntityManagerFactory interface that the EntityManagerFactory proxy is supposed to implement. |
Class<? extends javax.persistence.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<String,?> |
getJpaPropertyMap()
Return a Map of vendor-specific JPA properties, typically based on settings in this JpaVendorAdapter instance. |
javax.persistence.spi.PersistenceProvider |
getPersistenceProvider()
Return the vendor-specific persistence provider. |
String |
getPersistenceProviderRootPackage()
Return the name of the persistence provider's root package (e.g. |
void |
postProcessEntityManagerFactory(javax.persistence.EntityManagerFactory emf)
Optional callback for post-processing the native EntityManagerFactory before active use. |
Method Detail |
---|
javax.persistence.spi.PersistenceProvider getPersistenceProvider()
String getPersistenceProviderRootPackage()
Map<String,?> getJpaPropertyMap()
Note that there might be further JPA properties defined on the EntityManagerFactory bean, which might potentially override individual JPA property values specified here.
null
or an empty Map
if there are no such properties to exposePersistence.createEntityManagerFactory(String, java.util.Map)
,
PersistenceProvider.createContainerEntityManagerFactory(javax.persistence.spi.PersistenceUnitInfo, java.util.Map)
JpaDialect getJpaDialect()
null
if there is none.
Class<? extends javax.persistence.EntityManagerFactory> getEntityManagerFactoryInterface()
If the provider does not offer any EntityManagerFactory extensions,
the adapter should simply return the standard
EntityManagerFactory
class here.
Class<? extends javax.persistence.EntityManager> getEntityManagerInterface()
If the provider does not offer any EntityManager extensions,
the adapter should simply return the standard
EntityManager
class here.
void postProcessEntityManagerFactory(javax.persistence.EntityManagerFactory emf)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |