com.atlassian.crowd.util.persistence.hibernate
Class ConfigurableLocalSessionFactoryBean

java.lang.Object
  extended by org.springframework.orm.hibernate4.HibernateExceptionTranslator
      extended by org.springframework.orm.hibernate4.LocalSessionFactoryBean
          extended by com.atlassian.crowd.util.persistence.hibernate.ConfigurableLocalSessionFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<org.hibernate.SessionFactory>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware, org.springframework.dao.support.PersistenceExceptionTranslator

public class ConfigurableLocalSessionFactoryBean
extends org.springframework.orm.hibernate4.LocalSessionFactoryBean

Extends Spring's Hibernate 4-compatible LocalSessionFactoryBean with properties to restore various bits of functionality that were present in their Hibernate 3 version, as well as to add new Crowd-specific functionality.


Constructor Summary
ConfigurableLocalSessionFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  org.hibernate.SessionFactory buildSessionFactory(org.springframework.orm.hibernate4.LocalSessionFactoryBuilder sfb)
           
 void setCacheManager(net.sf.ehcache.CacheManager cacheManager)
           
 void setEventListeners(Map<String,Object> eventListeners)
           
 void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
           
 void setMappingResourcesBean(MappingResources mappingResourcesBean)
           
 
Methods inherited from class org.springframework.orm.hibernate4.LocalSessionFactoryBean
destroy, getConfiguration, getHibernateProperties, getObject, getObjectType, isSingleton, setAnnotatedClasses, setAnnotatedPackages, setCacheableMappingLocations, setConfigLocation, setConfigLocations, setDataSource, setEntityInterceptor, setHibernateProperties, setJtaTransactionManager, setMappingDirectoryLocations, setMappingJarLocations, setMappingLocations, setMappingResources, setNamingStrategy, setPackagesToScan, setResourceLoader
 
Methods inherited from class org.springframework.orm.hibernate4.HibernateExceptionTranslator
convertHibernateAccessException, translateExceptionIfPossible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurableLocalSessionFactoryBean

public ConfigurableLocalSessionFactoryBean()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws IOException
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class org.springframework.orm.hibernate4.LocalSessionFactoryBean
Throws:
IOException

buildSessionFactory

protected org.hibernate.SessionFactory buildSessionFactory(org.springframework.orm.hibernate4.LocalSessionFactoryBuilder sfb)
Overrides:
buildSessionFactory in class org.springframework.orm.hibernate4.LocalSessionFactoryBean

setCacheManager

public void setCacheManager(net.sf.ehcache.CacheManager cacheManager)

setEventListeners

public void setEventListeners(Map<String,Object> eventListeners)

setHibernateConfig

public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)

setMappingResourcesBean

public void setMappingResourcesBean(MappingResources mappingResourcesBean)


Copyright © 2013 Atlassian. All Rights Reserved.