Class PortalHibernateConfiguration
java.lang.Object
com.liferay.portal.spring.hibernate.PortalHibernateConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<org.hibernate.SessionFactory>,org.springframework.dao.support.PersistenceExceptionTranslator
- Direct Known Subclasses:
PortletHibernateConfiguration
public class PortalHibernateConfiguration
extends Object
implements org.springframework.beans.factory.FactoryBean<org.hibernate.SessionFactory>, org.springframework.dao.support.PersistenceExceptionTranslator
- Author:
- Brian Wing Shun Chan, Marcellus Tavares, Shuyang Zhou, Tomas Polesovsky
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()protected ClassLoaderprotected String[]org.hibernate.SessionFactoryClass<?> booleanvoidsetConfigurationResources(String[] configurationResources) voidsetDataSource(DataSource dataSource) voidsetMvccEnabled(boolean mvccEnabled) org.springframework.dao.DataAccessExceptiontranslateExceptionIfPossible(RuntimeException runtimeException)
-
Constructor Details
-
PortalHibernateConfiguration
public PortalHibernateConfiguration()
-
-
Method Details
-
afterPropertiesSet
- Throws:
IOException
-
destroy
public void destroy() -
getObject
public org.hibernate.SessionFactory getObject()- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<org.hibernate.SessionFactory>
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.hibernate.SessionFactory>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<org.hibernate.SessionFactory>
-
setConfigurationResources
-
setDataSource
-
setMvccEnabled
public void setMvccEnabled(boolean mvccEnabled) -
translateExceptionIfPossible
public org.springframework.dao.DataAccessException translateExceptionIfPossible(RuntimeException runtimeException) - Specified by:
translateExceptionIfPossiblein interfaceorg.springframework.dao.support.PersistenceExceptionTranslator
-
getConfigurationClassLoader
-
getConfigurationResources
-