Class HibernateServiceImpl
java.lang.Object
org.exoplatform.services.database.impl.HibernateServiceImpl
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentRequestLifecycle,HibernateService
public class HibernateServiceImpl
extends Object
implements HibernateService, org.exoplatform.container.component.ComponentRequestLifecycle
Created by The eXo Platform SAS .
- Author:
- Tuan Nguyen tuan08@users.sourceforge.net Date: Jun 14, 2003, dhodnett $Id: HibernateServiceImpl.java,v 1.3 2004/10/30 02:27:52 tuan08 Exp $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidClose the session that assign to the current threadvoidcloseSession(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
-
HibernateServiceImpl
public HibernateServiceImpl(org.exoplatform.container.xml.InitParams initParams)
-
-
Method Details
-
getHibernateConfiguration
public org.hibernate.cfg.Configuration getHibernateConfiguration()- Specified by:
getHibernateConfigurationin interfaceHibernateService
-
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()- Specified by:
getSessionFactoryin interfaceHibernateService- Returns:
- the SessionFactory
-
openSession
public org.hibernate.Session openSession()- Specified by:
openSessionin interfaceHibernateService
-
openNewSession
public org.hibernate.Session openNewSession()- Specified by:
openNewSessionin interfaceHibernateService
-
closeSession
public void closeSession(org.hibernate.Session session) - Specified by:
closeSessionin interfaceHibernateService
-
closeSession
public final void closeSession()Description copied from interface:HibernateServiceClose the session that assign to the current thread- Specified by:
closeSessionin interfaceHibernateService
-
findExactOne
- Specified by:
findExactOnein interfaceHibernateService- Throws:
Exception
-
findOne
- Specified by:
findOnein interfaceHibernateService- Throws:
Exception
-
findAll
- Specified by:
findAllin interfaceHibernateService- Throws:
Exception
-
findOne
- Specified by:
findOnein interfaceHibernateService- Throws:
Exception
-
findOne
- Specified by:
findOnein interfaceHibernateService- Throws:
Exception
-
create
- Specified by:
createin interfaceHibernateService- Throws:
Exception
-
update
- Specified by:
updatein interfaceHibernateService- Throws:
Exception
-
save
- Specified by:
savein interfaceHibernateService- Throws:
Exception
-
remove
- Specified by:
removein interfaceHibernateService- Throws:
Exception
-
remove
- Specified by:
removein interfaceHibernateService- Throws:
Exception
-
remove
- Specified by:
removein interfaceHibernateService- 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
-