org.kuali.rice.core.framework.persistence.jpa
Class DevHibernateJpaVendorAdapter

java.lang.Object
  extended by org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
      extended by org.kuali.rice.core.framework.persistence.jpa.DevHibernateJpaVendorAdapter
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.orm.jpa.JpaVendorAdapter

public class DevHibernateJpaVendorAdapter
extends org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
implements org.springframework.beans.factory.InitializingBean

A Hibernate JPA adapter to expose the Kuali DEV DevHibernatePersistence. The DEV mode enables extra caching of the EntityManagerFactory and object serialization of the Ejb3Configuration so that Hibernate startup can be faster in development. Note: This implementation should not be used in test or production environments unless further testing determines is it appropriate.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
DevHibernateJpaVendorAdapter()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  Class determineDatabaseDialectClass(org.springframework.orm.jpa.vendor.Database database)
          Determine the Hibernate database dialect class for the given target database.
 Class<? extends javax.persistence.EntityManager> getEntityManagerInterface()
           
 org.springframework.orm.jpa.JpaDialect getJpaDialect()
           
 Map getJpaPropertyMap()
           
 javax.persistence.spi.PersistenceProvider getPersistenceProvider()
           
 void setSerializationFilename(String serializationFilename)
           
 void setUseSerialization(boolean useSerialization)
           
 
Methods inherited from class org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
getDatabase, getDatabasePlatform, getEntityManagerFactoryInterface, getPersistenceProviderRootPackage, 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

DevHibernateJpaVendorAdapter

public DevHibernateJpaVendorAdapter()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

getPersistenceProvider

public javax.persistence.spi.PersistenceProvider getPersistenceProvider()
Specified by:
getPersistenceProvider in interface org.springframework.orm.jpa.JpaVendorAdapter

getJpaPropertyMap

public Map getJpaPropertyMap()
Specified by:
getJpaPropertyMap in interface org.springframework.orm.jpa.JpaVendorAdapter
Overrides:
getJpaPropertyMap in class org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter

determineDatabaseDialectClass

protected Class determineDatabaseDialectClass(org.springframework.orm.jpa.vendor.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<? extends javax.persistence.EntityManager> getEntityManagerInterface()
Specified by:
getEntityManagerInterface in interface org.springframework.orm.jpa.JpaVendorAdapter
Overrides:
getEntityManagerInterface in class org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter

getJpaDialect

public org.springframework.orm.jpa.JpaDialect getJpaDialect()
Specified by:
getJpaDialect in interface org.springframework.orm.jpa.JpaVendorAdapter
Overrides:
getJpaDialect in class org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter

setSerializationFilename

public void setSerializationFilename(String serializationFilename)

setUseSerialization

public void setUseSerialization(boolean useSerialization)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.