Liferay 6.2-ce-ga5

com.liferay.portal.spring.hibernate
Class PortalHibernateConfiguration

java.lang.Object
  extended by org.springframework.orm.hibernate3.AbstractSessionFactoryBean
      extended by org.springframework.orm.hibernate3.LocalSessionFactoryBean
          extended by com.liferay.portal.spring.hibernate.PortalHibernateConfiguration
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
Direct Known Subclasses:
PortletHibernateConfiguration

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


Field Summary
 
Fields inherited from class org.springframework.orm.hibernate3.AbstractSessionFactoryBean
logger
 
Constructor Summary
PortalHibernateConfiguration()
           
 
Method Summary
 org.hibernate.SessionFactory buildSessionFactory()
           
 void destroy()
           
protected  org.hibernate.dialect.Dialect determineDialect()
           
protected  ClassLoader getConfigurationClassLoader()
           
protected  String[] getConfigurationResources()
           
protected static Map<String,Class<?>> getPreloadClassLoaderClasses()
           
protected  org.hibernate.cfg.Configuration newConfiguration()
           
protected  void postProcessConfiguration(org.hibernate.cfg.Configuration configuration)
           
protected  void readResource(org.hibernate.cfg.Configuration configuration, InputStream inputStream)
           
protected  void readResource(org.hibernate.cfg.Configuration configuration, String resource)
           
protected  void setDB(org.hibernate.dialect.Dialect dialect)
           
 void setHibernateConfigurationConverter(Converter<String> hibernateConfigurationConverter)
           
 
Methods inherited from class org.springframework.orm.hibernate3.LocalSessionFactoryBean
afterSessionFactoryCreation, createDatabaseSchema, dropDatabaseSchema, executeSchemaScript, executeSchemaStatement, getConfigTimeCacheProvider, getConfigTimeDataSource, getConfigTimeLobHandler, getConfigTimeTransactionManager, getConfiguration, getHibernateProperties, newSessionFactory, postProcessMappings, setBeanClassLoader, setCacheableMappingLocations, setCacheProvider, setCacheRegionFactory, setCollectionCacheStrategies, setConfigLocation, setConfigLocations, setConfigurationClass, setEntityCacheStrategies, setEntityInterceptor, setEventListeners, setFilterDefinitions, setHibernateProperties, setJtaTransactionManager, setLobHandler, setMappingDirectoryLocations, setMappingJarLocations, setMappingLocations, setMappingResources, setNamingStrategy, setSchemaUpdate, setTypeDefinitions, updateDatabaseSchema, validateDatabaseSchema
 
Methods inherited from class org.springframework.orm.hibernate3.AbstractSessionFactoryBean
afterPropertiesSet, 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
 

Constructor Detail

PortalHibernateConfiguration

public PortalHibernateConfiguration()
Method Detail

buildSessionFactory

public org.hibernate.SessionFactory buildSessionFactory()
                                                 throws Exception
Overrides:
buildSessionFactory in class org.springframework.orm.hibernate3.LocalSessionFactoryBean
Throws:
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

setHibernateConfigurationConverter

public void setHibernateConfigurationConverter(Converter<String> hibernateConfigurationConverter)

getPreloadClassLoaderClasses

protected static Map<String,Class<?>> getPreloadClassLoaderClasses()

determineDialect

protected org.hibernate.dialect.Dialect determineDialect()

getConfigurationClassLoader

protected ClassLoader getConfigurationClassLoader()

getConfigurationResources

protected String[] getConfigurationResources()

newConfiguration

protected org.hibernate.cfg.Configuration newConfiguration()
Overrides:
newConfiguration in class org.springframework.orm.hibernate3.LocalSessionFactoryBean

postProcessConfiguration

protected void postProcessConfiguration(org.hibernate.cfg.Configuration configuration)
Overrides:
postProcessConfiguration in class org.springframework.orm.hibernate3.LocalSessionFactoryBean

readResource

protected void readResource(org.hibernate.cfg.Configuration configuration,
                            InputStream inputStream)
                     throws Exception
Throws:
Exception

readResource

protected void readResource(org.hibernate.cfg.Configuration configuration,
                            String resource)
                     throws Exception
Throws:
Exception

setDB

protected void setDB(org.hibernate.dialect.Dialect dialect)

Liferay 6.2-ce-ga5