magoffin.matt.ma2.dao.hbm
Class LocalSessionFactoryBean

java.lang.Object
  extended by org.springframework.orm.hibernate3.LocalSessionFactoryBean
      extended by magoffin.matt.ma2.dao.hbm.LocalSessionFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

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

Extension of Spring's LocalSessionFactoryBean to add support for registering custom SQL functions.

The configurable properties of this class are:

sqlFunctions
A mapping of SQL function names to implementations of SQLFunction so that custom SQL functions can be configured.

Version:
$Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Field Summary
 
Fields inherited from class org.springframework.orm.hibernate3.LocalSessionFactoryBean
logger
 
Constructor Summary
LocalSessionFactoryBean()
           
 
Method Summary
 java.util.Map<java.lang.String,org.hibernate.dialect.function.SQLFunction> getSqlFunctions()
           
protected  void postProcessConfiguration(org.hibernate.cfg.Configuration config)
           
 void setSqlFunctions(java.util.Map<java.lang.String,org.hibernate.dialect.function.SQLFunction> sqlFunctions)
           
 
Methods inherited from class org.springframework.orm.hibernate3.LocalSessionFactoryBean
afterPropertiesSet, createDatabaseSchema, destroy, dropDatabaseSchema, executeSchemaScript, executeSchemaStatement, getConfigTimeDataSource, getConfigTimeLobHandler, getConfigTimeTransactionManager, getConfiguration, getHibernateProperties, getObject, getObjectType, getTransactionAwareSessionFactoryProxy, isSingleton, newConfiguration, newSessionFactory, setCacheableMappingLocations, setCollectionCacheStrategies, setConfigLocation, setConfigLocations, setConfigurationClass, setDataSource, setEntityCacheStrategies, setEntityInterceptor, setEventListeners, setExposeTransactionAwareSessionFactory, setFilterDefinitions, setHibernateProperties, setJtaTransactionManager, setLobHandler, setMappingDirectoryLocations, setMappingJarLocations, setMappingLocations, setMappingResources, setNamingStrategy, setSchemaUpdate, setTypeDefinitions, setUseTransactionAwareDataSource, updateDatabaseSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalSessionFactoryBean

public LocalSessionFactoryBean()
Method Detail

postProcessConfiguration

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

getSqlFunctions

public java.util.Map<java.lang.String,org.hibernate.dialect.function.SQLFunction> getSqlFunctions()
Returns:
the sqlFunctions

setSqlFunctions

public void setSqlFunctions(java.util.Map<java.lang.String,org.hibernate.dialect.function.SQLFunction> sqlFunctions)
Parameters:
sqlFunctions - the sqlFunctions to set