|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.orm.hibernate4.HibernateExceptionTranslator org.springframework.orm.hibernate4.LocalSessionFactoryBean com.atlassian.crowd.util.persistence.hibernate.ConfigurableLocalSessionFactoryBean
public class ConfigurableLocalSessionFactoryBean
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.
Setting a CacheManager
, when used in conjunction with
EhCacheProvider
, sets the CacheManager
which should be used by that providerSetting event listeners
, uses the new Hibernate 4 mechanism to
register event listeners via the ServiceRegistry
Setting a HibernateConfig
merges any
properties defined in the provided configuration into the properties used to initialise HibernateSetting mapping resources
retrieves mappings as an array
from the configured MappingResources
and includes them when initialising Hibernate. Note this
property is named differently from the one in the parent class, since the Bean specification does not
allow overloaded properties.
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 |
---|
public ConfigurableLocalSessionFactoryBean()
Method Detail |
---|
public void afterPropertiesSet() throws IOException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.orm.hibernate4.LocalSessionFactoryBean
IOException
protected org.hibernate.SessionFactory buildSessionFactory(org.springframework.orm.hibernate4.LocalSessionFactoryBuilder sfb)
buildSessionFactory
in class org.springframework.orm.hibernate4.LocalSessionFactoryBean
public void setCacheManager(net.sf.ehcache.CacheManager cacheManager)
public void setEventListeners(Map<String,Object> eventListeners)
public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
public void setMappingResourcesBean(MappingResources mappingResourcesBean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |