org.openmrs.api.db.hibernate
Class HibernateSessionFactoryBean

java.lang.Object
  extended by org.springframework.orm.hibernate3.AbstractSessionFactoryBean
      extended by org.springframework.orm.hibernate3.LocalSessionFactoryBean
          extended by org.openmrs.api.db.hibernate.HibernateSessionFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<org.hibernate.SessionFactory>, org.springframework.beans.factory.InitializingBean, org.springframework.dao.support.PersistenceExceptionTranslator

public class HibernateSessionFactoryBean
extends org.springframework.orm.hibernate3.LocalSessionFactoryBean


Field Summary
protected  ChainingInterceptor chainingInterceptor
           
 java.util.Map<java.lang.String,org.hibernate.Interceptor> interceptors
           
protected  java.util.Set<java.lang.String> tmpMappingResources
           
 
Fields inherited from class org.springframework.orm.hibernate3.AbstractSessionFactoryBean
logger
 
Constructor Summary
HibernateSessionFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 java.util.Set<java.lang.String> getModuleMappingResources()
           
 org.hibernate.cfg.Configuration newConfiguration()
           
 void setMappingJarLocations(org.springframework.core.io.Resource[] mappingJarLocations)
          Used by the module testing framework to set the dependent modules in the hibernate session factory
 void setMappingResources(java.lang.String[] mappingResources)
          Collect the mapping resources for future use because the mappingResources object is defined as 'private' instead of 'protected'
 
Methods inherited from class org.springframework.orm.hibernate3.LocalSessionFactoryBean
afterSessionFactoryCreation, buildSessionFactory, createDatabaseSchema, dropDatabaseSchema, executeSchemaScript, executeSchemaStatement, getConfigTimeCacheProvider, getConfigTimeDataSource, getConfigTimeLobHandler, getConfigTimeTransactionManager, getConfiguration, getHibernateProperties, newSessionFactory, postProcessConfiguration, postProcessMappings, setBeanClassLoader, setCacheableMappingLocations, setCacheProvider, setCacheRegionFactory, setCollectionCacheStrategies, setConfigLocation, setConfigLocations, setConfigurationClass, setEntityCacheStrategies, setEntityInterceptor, setEventListeners, setFilterDefinitions, setHibernateProperties, setJtaTransactionManager, setLobHandler, setMappingDirectoryLocations, setMappingLocations, setNamingStrategy, setSchemaUpdate, setTypeDefinitions, updateDatabaseSchema, validateDatabaseSchema
 
Methods inherited from class org.springframework.orm.hibernate3.AbstractSessionFactoryBean
beforeSessionFactoryDestruction, convertHibernateAccessException, getDataSource, getObject, getObjectType, getSessionFactory, isExposeTransactionAwareSessionFactory, isSingleton, isUseTransactionAwareDataSource, setDataSource, setExposeTransactionAwareSessionFactory, setJdbcExceptionTranslator, setUseTransactionAwareDataSource, translateExceptionIfPossible, wrapSessionFactoryIfNecessary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tmpMappingResources

protected java.util.Set<java.lang.String> tmpMappingResources

chainingInterceptor

protected ChainingInterceptor chainingInterceptor

interceptors

public java.util.Map<java.lang.String,org.hibernate.Interceptor> interceptors
Constructor Detail

HibernateSessionFactoryBean

public HibernateSessionFactoryBean()
Method Detail

newConfiguration

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

setMappingResources

public void setMappingResources(java.lang.String[] mappingResources)
Collect the mapping resources for future use because the mappingResources object is defined as 'private' instead of 'protected'

Overrides:
setMappingResources in class org.springframework.orm.hibernate3.LocalSessionFactoryBean
See Also:
LocalSessionFactoryBean.setMappingResources(java.lang.String[])

getModuleMappingResources

public java.util.Set<java.lang.String> getModuleMappingResources()

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class org.springframework.orm.hibernate3.AbstractSessionFactoryBean
Throws:
java.lang.Exception

destroy

public void destroy()
             throws org.hibernate.HibernateException
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Overrides:
destroy in class org.springframework.orm.hibernate3.LocalSessionFactoryBean
Throws:
org.hibernate.HibernateException
See Also:
LocalSessionFactoryBean.destroy()

setMappingJarLocations

public void setMappingJarLocations(org.springframework.core.io.Resource[] mappingJarLocations)
Used by the module testing framework to set the dependent modules in the hibernate session factory

Overrides:
setMappingJarLocations in class org.springframework.orm.hibernate3.LocalSessionFactoryBean
See Also:
LocalSessionFactoryBean.setMappingJarLocations(org.springframework.core.io.Resource[])

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change