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
  • Constructor Details

    • PortalHibernateConfiguration

      public PortalHibernateConfiguration()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws IOException
      Throws:
      IOException
    • destroy

      public void destroy()
    • getObject

      public org.hibernate.SessionFactory getObject()
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<org.hibernate.SessionFactory>
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<org.hibernate.SessionFactory>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<org.hibernate.SessionFactory>
    • setConfigurationResources

      public void setConfigurationResources(String[] configurationResources)
    • setDataSource

      public void setDataSource(DataSource dataSource)
    • setMvccEnabled

      public void setMvccEnabled(boolean mvccEnabled)
    • translateExceptionIfPossible

      public org.springframework.dao.DataAccessException translateExceptionIfPossible(RuntimeException runtimeException)
      Specified by:
      translateExceptionIfPossible in interface org.springframework.dao.support.PersistenceExceptionTranslator
    • getConfigurationClassLoader

      protected ClassLoader getConfigurationClassLoader()
    • getConfigurationResources

      protected String[] getConfigurationResources()