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
 Iterable<String> getCurrentMappingResources()
           
 MappingResources getMappingResources()
          Deprecated. since 5.6, use getCurrentMappingResources()
 net.sf.hibernate.cfg.Configuration newConfiguration()
           
 void setCacheManager(com.atlassian.cache.CacheManager cacheManager)
           
 void setCurrentMappingResources(Iterable<String> mappingResources)
           
 void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
           
 void setMappingResources(MappingResources mappingResources)
          Deprecated. since 5.6, use setCurrentMappingResources(Iterable)
 
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

@Deprecated
public MappingResources getMappingResources()
Deprecated. since 5.6, use getCurrentMappingResources()

Returns:
Returns the mappingResources.

setHibernateConfig

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

setMappingResources

public void setMappingResources(MappingResources mappingResources)
Deprecated. since 5.6, use setCurrentMappingResources(Iterable)

Parameters:
mappingResources - The mappingResources to set.

setCacheManager

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

setCurrentMappingResources

public void setCurrentMappingResources(Iterable<String> mappingResources)

getCurrentMappingResources

public Iterable<String> getCurrentMappingResources()


Copyright © 2003–2015 Atlassian. All rights reserved.