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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidvoidcloseSession(org.hibernate.Session session) voidendRequest(org.exoplatform.container.ExoContainer container) Collection<?> findExactOne(org.hibernate.Session session, String query, String id) findOne(Class clazz, Serializable id) org.hibernate.cfg.Configurationorg.hibernate.SessionFactorybooleanisStarted(org.exoplatform.container.ExoContainer container) org.hibernate.Sessionorg.hibernate.Sessionremove(Class clazz, Serializable id) remove(org.hibernate.Session session, Class clazz, Serializable id) voidstartRequest(org.exoplatform.container.ExoContainer container)
-
Field Details
-
AUTO_DIALECT
- See Also:
-
-
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
- Throws:
Exception
-
findOne
- Throws:
Exception
-
findAll
- Throws:
Exception
-
findOne
- Throws:
Exception
-
create
- Throws:
Exception
-
update
- Throws:
Exception
-
save
- Throws:
Exception
-
remove
- Throws:
Exception
-
remove
- Throws:
Exception
-
remove
- Throws:
Exception
-
startRequest
public void startRequest(org.exoplatform.container.ExoContainer container) - Specified by:
startRequestin interfaceorg.exoplatform.container.component.ComponentRequestLifecycle
-
endRequest
public void endRequest(org.exoplatform.container.ExoContainer container) - Specified by:
endRequestin interfaceorg.exoplatform.container.component.ComponentRequestLifecycle
-
isStarted
public boolean isStarted(org.exoplatform.container.ExoContainer container) - Specified by:
isStartedin interfaceorg.exoplatform.container.component.ComponentRequestLifecycle
-