The Spring Framework

org.springframework.orm.jpa
Interface JpaVendorAdapter

All Known Implementing Classes:
AbstractJpaVendorAdapter, HibernateJpaVendorAdapter, TopLinkJpaVendorAdapter

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.

Since:
2.0
Author:
Juergen Hoeller, Rod Johnson

Method Summary
 Class getEntityManagerInterface()
          Return the vendor-specific EntityManager interface that this factory's EntityManagers will implement.
 JpaDialect getJpaDialect()
          Return the vendor-specific JpaDialect implementation for this EntityManagerFactory, or null if not known.
 Map getJpaPropertyMap()
          Return a Map of vendor-specific JPA properties, based on settings in this JpaVendorAdapter instance.
 javax.persistence.spi.PersistenceProvider getPersistenceProvider()
          Return the vendor-specific persistence provider.
 void postProcessEntityManagerFactory(javax.persistence.EntityManagerFactory emf)
          Optional callback for post-processing the native EntityManagerFactory before active use.
 

Method Detail

getPersistenceProvider

javax.persistence.spi.PersistenceProvider getPersistenceProvider()
Return the vendor-specific persistence provider.


getJpaPropertyMap

Map getJpaPropertyMap()
Return a Map of vendor-specific JPA properties, based on settings in this JpaVendorAdapter instance.


getEntityManagerInterface

Class getEntityManagerInterface()
Return the vendor-specific EntityManager interface that this factory's EntityManagers will implement.


getJpaDialect

JpaDialect getJpaDialect()
Return the vendor-specific JpaDialect implementation for this EntityManagerFactory, or null if not known.


postProcessEntityManagerFactory

void postProcessEntityManagerFactory(javax.persistence.EntityManagerFactory emf)
Optional callback for post-processing the native EntityManagerFactory before active use.


The Spring Framework

Copyright © 2002-2006 The Spring Framework.