Class IdmHibernateService

java.lang.Object
org.exoplatform.services.organization.idm.IdmHibernateService
All Implemented Interfaces:
org.exoplatform.container.component.ComponentRequestLifecycle

public class IdmHibernateService extends Object implements org.exoplatform.container.component.ComponentRequestLifecycle
  • Field Details

  • Constructor Details

    • IdmHibernateService

      public IdmHibernateService(org.exoplatform.container.xml.InitParams initParams)
  • Method Details

    • getHibernateConfiguration

      public org.hibernate.cfg.Configuration getHibernateConfiguration()
    • getSessionFactory

      public org.hibernate.SessionFactory getSessionFactory()
      Returns:
      the SessionFactory
    • openSession

      public org.hibernate.Session openSession()
    • openNewSession

      public org.hibernate.Session openNewSession()
    • closeSession

      public void closeSession(org.hibernate.Session session)
    • closeSession

      public final void closeSession()
    • findExactOne

      public Object findExactOne(org.hibernate.Session session, String query, String id) throws Exception
      Throws:
      Exception
    • findOne

      public Object findOne(org.hibernate.Session session, String query, String id) throws Exception
      Throws:
      Exception
    • findAll

      public Collection<?> findAll(org.hibernate.Session session, String query) throws Exception
      Throws:
      Exception
    • findOne

      public Object findOne(Class clazz, Serializable id) throws Exception
      Throws:
      Exception
    • create

      public Object create(Object obj) throws Exception
      Throws:
      Exception
    • update

      public Object update(Object obj) throws Exception
      Throws:
      Exception
    • save

      public Object save(Object obj) throws Exception
      Throws:
      Exception
    • remove

      public Object remove(Object obj) throws Exception
      Throws:
      Exception
    • remove

      public Object remove(Class clazz, Serializable id) throws Exception
      Throws:
      Exception
    • remove

      public Object remove(org.hibernate.Session session, Class clazz, Serializable id) throws Exception
      Throws:
      Exception
    • startRequest

      public void startRequest(org.exoplatform.container.ExoContainer container)
      Specified by:
      startRequest in interface org.exoplatform.container.component.ComponentRequestLifecycle
    • endRequest

      public void endRequest(org.exoplatform.container.ExoContainer container)
      Specified by:
      endRequest in interface org.exoplatform.container.component.ComponentRequestLifecycle
    • isStarted

      public boolean isStarted(org.exoplatform.container.ExoContainer container)
      Specified by:
      isStarted in interface org.exoplatform.container.component.ComponentRequestLifecycle