Interface HibernateService
- All Known Implementing Classes:
HibernateServiceImpl
public interface HibernateService
Created by The eXo Platform SAS
Author : Tuan Nguyen tuan08@users.sourceforge.net
Date: Jun 14, 2003 Time: 1:12:22 PM
-
Method Summary
Modifier and TypeMethodDescriptionvoidClose the session that assign to the current threadvoidcloseSession(org.hibernate.Session session) Collection<?> findExactOne(org.hibernate.Session session, String query, String id) findOne(Class<?> clazz, Serializable id) org.hibernate.cfg.Configurationorg.hibernate.SessionFactoryorg.hibernate.Sessionorg.hibernate.Sessionremove(Class<?> clazz, Serializable id) remove(org.hibernate.Session session, Class<?> clazz, Serializable id)
-
Method Details
-
getHibernateConfiguration
org.hibernate.cfg.Configuration getHibernateConfiguration() -
openSession
org.hibernate.Session openSession() -
openNewSession
org.hibernate.Session openNewSession() -
closeSession
void closeSession(org.hibernate.Session session) -
closeSession
void closeSession()Close the session that assign to the current thread -
getSessionFactory
org.hibernate.SessionFactory getSessionFactory() -
findOne
- Throws:
Exception
-
findAll
- Throws:
Exception
-
findExactOne
- Throws:
Exception
-
findOne
- Throws:
Exception
-
findOne
- Throws:
Exception
-
create
- Throws:
Exception
-
update
- Throws:
Exception
-
save
- Throws:
Exception
-
remove
- Throws:
Exception
-
remove
- Throws:
Exception
-
remove
- Throws:
Exception
-