org.LexGrid.LexBIG.caCore.connection.orm
Class LexEVSSessionFactoryBean

java.lang.Object
  extended by org.springframework.orm.hibernate3.AbstractSessionFactoryBean
      extended by org.springframework.orm.hibernate3.LocalSessionFactoryBean
          extended by org.LexGrid.LexBIG.caCore.connection.orm.LexEVSSessionFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.dao.support.PersistenceExceptionTranslator

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

LexEVS implementation of a LocalSessionFactoryBean. This will be dynamically injected with LexBIG connection info to build DAOs for the various CodingSchemes loaded into the local LexBIG installation.

Author:
Kevin Peterson

Field Summary
private  gov.nih.nci.system.dao.orm.HibernateConfigurationHolder configHolder
           
private  org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo connection
           
private  gov.nih.nci.system.security.helper.SecurityInitializationHelper securityHelper
           
static HashMap<String,String> ShardPrefixToFactoryNameMap
           
 
Fields inherited from class org.springframework.orm.hibernate3.AbstractSessionFactoryBean
logger
 
Constructor Summary
LexEVSSessionFactoryBean()
           
 
Method Summary
 gov.nih.nci.system.dao.orm.HibernateConfigurationHolder getConfigHolder()
           
 org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo getConnection()
           
 gov.nih.nci.system.security.helper.SecurityInitializationHelper getSecurityHelper()
           
protected  org.hibernate.SessionFactory newSessionFactory(org.hibernate.cfg.Configuration config)
           
 void setConfigHolder(gov.nih.nci.system.dao.orm.HibernateConfigurationHolder configHolder)
           
 void setConnection(org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo connection)
           
 void setSecurityHelper(gov.nih.nci.system.security.helper.SecurityInitializationHelper securityHelper)
           
 
Methods inherited from class org.springframework.orm.hibernate3.LocalSessionFactoryBean
afterSessionFactoryCreation, buildSessionFactory, createDatabaseSchema, destroy, dropDatabaseSchema, executeSchemaScript, executeSchemaStatement, getConfigTimeDataSource, getConfigTimeLobHandler, getConfigTimeTransactionManager, getConfiguration, getHibernateProperties, newConfiguration, postProcessConfiguration, setCacheableMappingLocations, setCollectionCacheStrategies, setConfigLocation, setConfigLocations, setConfigurationClass, setDataSource, setEntityCacheStrategies, setEntityInterceptor, setEventListeners, setFilterDefinitions, setHibernateProperties, setJtaTransactionManager, setLobHandler, setMappingDirectoryLocations, setMappingJarLocations, setMappingLocations, setMappingResources, setNamingStrategy, setSchemaUpdate, setTypeDefinitions, setUseTransactionAwareDataSource, updateDatabaseSchema
 
Methods inherited from class org.springframework.orm.hibernate3.AbstractSessionFactoryBean
afterPropertiesSet, beforeSessionFactoryDestruction, convertHibernateAccessException, getObject, getObjectType, getSessionFactory, getTransactionAwareSessionFactoryProxy, isExposeTransactionAwareSessionFactory, isSingleton, setExposeTransactionAwareSessionFactory, setJdbcExceptionTranslator, translateExceptionIfPossible, wrapSessionFactoryIfNecessary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ShardPrefixToFactoryNameMap

public static HashMap<String,String> ShardPrefixToFactoryNameMap

configHolder

private gov.nih.nci.system.dao.orm.HibernateConfigurationHolder configHolder

securityHelper

private gov.nih.nci.system.security.helper.SecurityInitializationHelper securityHelper

connection

private org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo connection
Constructor Detail

LexEVSSessionFactoryBean

public LexEVSSessionFactoryBean()
Method Detail

newSessionFactory

protected org.hibernate.SessionFactory newSessionFactory(org.hibernate.cfg.Configuration config)
                                                  throws org.hibernate.HibernateException
Overrides:
newSessionFactory in class org.springframework.orm.hibernate3.LocalSessionFactoryBean
Throws:
org.hibernate.HibernateException

getConfigHolder

public gov.nih.nci.system.dao.orm.HibernateConfigurationHolder getConfigHolder()

setConfigHolder

public void setConfigHolder(gov.nih.nci.system.dao.orm.HibernateConfigurationHolder configHolder)

getSecurityHelper

public gov.nih.nci.system.security.helper.SecurityInitializationHelper getSecurityHelper()

setSecurityHelper

public void setSecurityHelper(gov.nih.nci.system.security.helper.SecurityInitializationHelper securityHelper)

getConnection

public org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo getConnection()

setConnection

public void setConnection(org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo connection)