The Spring Framework

org.springframework.orm.jpa.vendor
Class HibernateJpaVendorAdapter

java.lang.Object
  extended by org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
      extended by org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter
All Implemented Interfaces:
JpaVendorAdapter

public class HibernateJpaVendorAdapter
extends AbstractJpaVendorAdapter

Hibernate-specific JpaVendorAdapter implementation.

Since:
2.0
Author:
Juergen Hoeller, Rod Johnson

Constructor Summary
HibernateJpaVendorAdapter()
           
 
Method Summary
protected  Class determineDatabaseDialectClass(Database database)
          Determine the Hibernate database dialect class for the given target database.
 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.
 
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

HibernateJpaVendorAdapter

public HibernateJpaVendorAdapter()
Method Detail

getPersistenceProvider

public javax.persistence.spi.PersistenceProvider getPersistenceProvider()
Description copied from interface: JpaVendorAdapter
Return the vendor-specific persistence provider.


getJpaPropertyMap

public Map getJpaPropertyMap()
Description copied from interface: JpaVendorAdapter
Return a Map of vendor-specific JPA properties, based on settings in this JpaVendorAdapter instance.


determineDatabaseDialectClass

protected Class determineDatabaseDialectClass(Database database)
Determine the Hibernate database dialect class for the given target database.

Parameters:
database - the target database
Returns:
the Hibernate database dialect class, or null if none found

getEntityManagerInterface

public Class getEntityManagerInterface()
Description copied from interface: JpaVendorAdapter
Return the vendor-specific EntityManager interface that this factory's EntityManagers will implement.


getJpaDialect

public JpaDialect getJpaDialect()
Description copied from interface: JpaVendorAdapter
Return the vendor-specific JpaDialect implementation for this EntityManagerFactory, or null if not known.


The Spring Framework

Copyright © 2002-2006 The Spring Framework.