|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.orm.hibernate3.AbstractSessionFactoryBean
org.springframework.orm.hibernate3.LocalSessionFactoryBean
org.codehaus.groovy.grails.orm.hibernate.ConfigurableLocalSessionFactoryBean
public class ConfigurableLocalSessionFactoryBean
A SessionFactory bean that allows the configuration class to be changed and customise for usage within Grails
Field Summary |
---|
Fields inherited from class org.springframework.orm.hibernate3.AbstractSessionFactoryBean |
---|
logger |
Constructor Summary | |
---|---|
ConfigurableLocalSessionFactoryBean()
|
Method Summary | |
---|---|
GrailsApplication |
getGrailsApplication()
|
protected org.hibernate.cfg.Configuration |
newConfiguration()
Overrides default behaviour to allow for a configurable configuration class |
protected org.hibernate.SessionFactory |
newSessionFactory(org.hibernate.cfg.Configuration config)
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setClassLoader(java.lang.ClassLoader classLoader)
|
void |
setConfigClass(java.lang.Class configClass)
Sets the class to be used for Hibernate Configuration |
void |
setCurrentSessionContextClass(java.lang.Class currentSessionContextClass)
Sets class to be used for the Hibernate CurrentSessionContext |
void |
setGrailsApplication(GrailsApplication grailsApplication)
|
Methods inherited from class org.springframework.orm.hibernate3.LocalSessionFactoryBean |
---|
afterSessionFactoryCreation, buildSessionFactory, createDatabaseSchema, destroy, dropDatabaseSchema, executeSchemaScript, executeSchemaStatement, getConfigTimeCacheProvider, getConfigTimeDataSource, getConfigTimeLobHandler, getConfigTimeTransactionManager, getConfiguration, getHibernateProperties, postProcessConfiguration, postProcessMappings, setBeanClassLoader, setCacheableMappingLocations, setCacheProvider, setCollectionCacheStrategies, setConfigLocation, setConfigLocations, setConfigurationClass, setEntityCacheStrategies, setEntityInterceptor, setEventListeners, setFilterDefinitions, setHibernateProperties, setJtaTransactionManager, setLobHandler, setMappingDirectoryLocations, setMappingJarLocations, setMappingLocations, setMappingResources, setNamingStrategy, setSchemaUpdate, setTypeDefinitions, updateDatabaseSchema |
Methods inherited from class org.springframework.orm.hibernate3.AbstractSessionFactoryBean |
---|
afterPropertiesSet, beforeSessionFactoryDestruction, convertHibernateAccessException, getDataSource, getObject, getObjectType, getSessionFactory, isExposeTransactionAwareSessionFactory, isSingleton, isUseTransactionAwareDataSource, setDataSource, setExposeTransactionAwareSessionFactory, setJdbcExceptionTranslator, setUseTransactionAwareDataSource, translateExceptionIfPossible, wrapSessionFactoryIfNecessary |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurableLocalSessionFactoryBean()
Method Detail |
---|
public void setCurrentSessionContextClass(java.lang.Class currentSessionContextClass)
currentSessionContextClass
- An implementation of the CurrentSessionContext interfacepublic void setConfigClass(java.lang.Class configClass)
configClass
- A subclass of the Hibernate Configuration classpublic GrailsApplication getGrailsApplication()
public void setGrailsApplication(GrailsApplication grailsApplication)
grailsApplication
- The grailsApplication to set.protected org.hibernate.cfg.Configuration newConfiguration()
newConfiguration
in class org.springframework.orm.hibernate3.LocalSessionFactoryBean
public void setClassLoader(java.lang.ClassLoader classLoader)
protected org.hibernate.SessionFactory newSessionFactory(org.hibernate.cfg.Configuration config) throws org.hibernate.HibernateException
newSessionFactory
in class org.springframework.orm.hibernate3.LocalSessionFactoryBean
org.hibernate.HibernateException
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |