public class PortalHibernateConfiguration
extends org.springframework.orm.hibernate3.LocalSessionFactoryBean
Constructor and Description |
---|
PortalHibernateConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.hibernate.SessionFactory |
buildSessionFactory() |
void |
destroy() |
protected ClassLoader |
getConfigurationClassLoader() |
protected String[] |
getConfigurationResources() |
protected static Map<String,Class<?>> |
getPreloadClassLoaderClasses() |
protected org.hibernate.cfg.Configuration |
newConfiguration() |
protected org.hibernate.SessionFactory |
newSessionFactory(org.hibernate.cfg.Configuration configuration) |
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) |
void |
setHibernateConfigurationConverter(com.liferay.portal.kernel.util.Converter<String> hibernateConfigurationConverter) |
void |
setMvccEnabled(boolean mvccEnabled) |
afterSessionFactoryCreation, createDatabaseSchema, dropDatabaseSchema, executeSchemaScript, executeSchemaStatement, getConfigTimeDataSource, getConfigTimeLobHandler, getConfigTimeTransactionManager, getConfiguration, getHibernateProperties, postProcessMappings, setBeanClassLoader, setCacheableMappingLocations, setCacheRegionFactory, setCollectionCacheStrategies, setConfigLocation, setConfigLocations, setConfigurationClass, setEntityCacheStrategies, setEntityInterceptor, setEventListeners, setFilterDefinitions, setHibernateProperties, setJtaTransactionManager, setLobHandler, setMappingDirectoryLocations, setMappingJarLocations, setMappingLocations, setMappingResources, setNamingStrategy, setSchemaUpdate, setTypeDefinitions, updateDatabaseSchema, validateDatabaseSchema
afterPropertiesSet, beforeSessionFactoryDestruction, getDataSource, getObject, getObjectType, getSessionFactory, isExposeTransactionAwareSessionFactory, isSingleton, isUseTransactionAwareDataSource, setDataSource, setExposeTransactionAwareSessionFactory, setUseTransactionAwareDataSource, wrapSessionFactoryIfNecessary
public org.hibernate.SessionFactory buildSessionFactory() throws Exception
buildSessionFactory
in class org.springframework.orm.hibernate3.LocalSessionFactoryBean
Exception
public void destroy() throws org.hibernate.HibernateException
destroy
in interface org.springframework.beans.factory.DisposableBean
destroy
in class org.springframework.orm.hibernate3.LocalSessionFactoryBean
org.hibernate.HibernateException
public void setHibernateConfigurationConverter(com.liferay.portal.kernel.util.Converter<String> hibernateConfigurationConverter)
public void setMvccEnabled(boolean mvccEnabled)
protected static Map<String,Class<?>> getPreloadClassLoaderClasses()
protected ClassLoader getConfigurationClassLoader()
protected String[] getConfigurationResources()
protected org.hibernate.cfg.Configuration newConfiguration()
newConfiguration
in class org.springframework.orm.hibernate3.LocalSessionFactoryBean
protected org.hibernate.SessionFactory newSessionFactory(org.hibernate.cfg.Configuration configuration) throws org.hibernate.HibernateException
newSessionFactory
in class org.springframework.orm.hibernate3.LocalSessionFactoryBean
org.hibernate.HibernateException
protected void postProcessConfiguration(org.hibernate.cfg.Configuration configuration)
postProcessConfiguration
in class org.springframework.orm.hibernate3.LocalSessionFactoryBean
protected void readResource(org.hibernate.cfg.Configuration configuration, InputStream inputStream) throws Exception
Exception
protected void readResource(org.hibernate.cfg.Configuration configuration, String resource) throws Exception
Exception