bucket.core.persistence.hibernate
Class ConfigurableLocalSessionFactoryBean

java.lang.Object
  extended by org.springframework.orm.hibernate.LocalSessionFactoryBean
      extended by bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
ConfluenceLocalSessionFactoryBeanForBackup

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

Author:
Ross A session factory that allows us to manually set the hibernate config path

Field Summary
 
Fields inherited from class org.springframework.orm.hibernate.LocalSessionFactoryBean
logger
 
Constructor Summary
ConfigurableLocalSessionFactoryBean()
           
 
Method Summary
 MappingResources getMappingResources()
           
 net.sf.hibernate.cfg.Configuration newConfiguration()
           
 void setCacheManager(com.atlassian.cache.CacheManager cacheManager)
           
 void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
           
 void setMappingResources(MappingResources mappingResources)
           
 
Methods inherited from class org.springframework.orm.hibernate.LocalSessionFactoryBean
afterPropertiesSet, createDatabaseSchema, destroy, dropDatabaseSchema, executeSchemaScript, executeSchemaStatement, getConfigTimeDataSource, getConfigTimeLobHandler, getConfigTimeTransactionManager, getConfiguration, getHibernateProperties, getObject, getObjectType, isSingleton, newSessionFactory, postProcessConfiguration, setConfigLocation, setDataSource, setEntityInterceptor, setHibernateProperties, setJtaTransactionManager, setLobHandler, setMappingDirectoryLocations, setMappingJarLocations, setMappingLocations, setMappingResources, setNamingStrategy, setSchemaUpdate, setUseTransactionAwareDataSource, updateDatabaseSchema
 
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

newConfiguration

public net.sf.hibernate.cfg.Configuration newConfiguration()
                                                    throws net.sf.hibernate.HibernateException
Overrides:
newConfiguration in class org.springframework.orm.hibernate.LocalSessionFactoryBean
Throws:
net.sf.hibernate.HibernateException

getMappingResources

public MappingResources getMappingResources()
Returns:
Returns the mappingResources.

setHibernateConfig

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

setMappingResources

public void setMappingResources(MappingResources mappingResources)
Parameters:
mappingResources - The mappingResources to set.

setCacheManager

public void setCacheManager(com.atlassian.cache.CacheManager cacheManager)


Copyright © 2003-2014 Atlassian. All Rights Reserved.