|
||||||||||
| 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 | |
|---|---|
void |
destroy()
|
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)
|
protected void |
postProcessConfiguration(org.hibernate.cfg.Configuration config)
Merge HibernateEventListeners with the default ones |
void |
setApplicationContext(ApplicationContext applicationContext)
|
void |
setClassLoader(ClassLoader classLoader)
|
void |
setConfigClass(Class<?> configClass)
Sets the class to be used for Hibernate Configuration |
void |
setCurrentSessionContextClass(Class<?> currentSessionContextClass)
Sets class to be used for the Hibernate CurrentSessionContext |
void |
setGrailsApplication(GrailsApplication grailsApplication)
|
void |
setHibernateEventListeners(HibernateEventListeners listeners)
|
| 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(Class<?> currentSessionContextClass)
currentSessionContextClass - An implementation of the CurrentSessionContext interfacepublic void setConfigClass(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 LocalSessionFactoryBeanpublic void setClassLoader(ClassLoader classLoader)
protected org.hibernate.SessionFactory newSessionFactory(org.hibernate.cfg.Configuration config)
throws org.hibernate.HibernateException
newSessionFactory in class LocalSessionFactoryBeanorg.hibernate.HibernateException
public void destroy()
throws org.hibernate.HibernateException
destroy in interface DisposableBeandestroy in class LocalSessionFactoryBeanorg.hibernate.HibernateException
protected void postProcessConfiguration(org.hibernate.cfg.Configuration config)
throws org.hibernate.HibernateException
postProcessConfiguration in class LocalSessionFactoryBeanorg.hibernate.HibernateException
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionpublic void setHibernateEventListeners(HibernateEventListeners listeners)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||