|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter
public class HibernateJpaVendorAdapter
JpaVendorAdapter
implementation for
Hibernate EntityManager. Developed and tested against Hibernate 3.2.
Exposes Hibernate's persistence provider and EntityManager extension interface, and supports AbstractJpaVendorAdapter's common configuration settings.
HibernatePersistence
,
HibernateEntityManager
Constructor Summary | |
---|---|
HibernateJpaVendorAdapter()
|
Method Summary | |
---|---|
protected Class |
determineDatabaseDialectClass(Database database)
Determine the Hibernate database dialect class for the given target database. |
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 |
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. |
Methods inherited from class org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter |
---|
getDatabase, getDatabasePlatform, isGenerateDdl, isShowSql, postProcessEntityManagerFactory, setDatabase, setDatabasePlatform, setGenerateDdl, setShowSql |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateJpaVendorAdapter()
Method Detail |
---|
public javax.persistence.spi.PersistenceProvider getPersistenceProvider()
JpaVendorAdapter
public Map getJpaPropertyMap()
JpaVendorAdapter
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)
protected Class determineDatabaseDialectClass(Database database)
database
- the target database
null if none found
public Class<? extends javax.persistence.EntityManager> getEntityManagerInterface()
JpaVendorAdapter
If the provider does not offer any EntityManager extensions,
the adapter should simply return the standard
EntityManager
class here.
public JpaDialect getJpaDialect()
JpaVendorAdapter
null
if there is none.
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |