Package org.grails.orm.hibernate
Interface IHibernateTemplate
- All Known Implementing Classes:
GrailsHibernateTemplate
public interface IHibernateTemplate
Template interface that can be used with both Hibernate 3 and Hibernate 4
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplySettings(org.hibernate.Criteria criteria) voidapplySettings(org.hibernate.query.Query query) voidclear()booleanvoidvoiddeleteAll(Collection<?> list) void<T> Texecute(groovy.lang.Closure<T> callable) <T1> T1executeWithExistingOrCreateNewSession(org.hibernate.SessionFactory sessionFactory, groovy.lang.Closure<T1> callable) <T> TexecuteWithNewSession(groovy.lang.Closure<T> callable) voidflush()<T> Tget(Class<T> type, Serializable key) <T> Tget(Class<T> type, Serializable key, org.hibernate.LockMode mode) intorg.hibernate.SessionFactory<T> Tload(Class<T> type, Serializable key) voidvoidvoidsetFlushMode(int mode)
-
Method Details
-
save
-
refresh
-
lock
-
flush
void flush() -
clear
void clear() -
evict
-
contains
-
setFlushMode
void setFlushMode(int mode) -
getFlushMode
int getFlushMode() -
deleteAll
-
applySettings
void applySettings(org.hibernate.query.Query query) -
applySettings
void applySettings(org.hibernate.Criteria criteria) -
get
-
get
-
load
-
delete
-
getSessionFactory
org.hibernate.SessionFactory getSessionFactory() -
execute
<T> T execute(groovy.lang.Closure<T> callable) -
executeWithNewSession
<T> T executeWithNewSession(groovy.lang.Closure<T> callable) -
executeWithExistingOrCreateNewSession
<T1> T1 executeWithExistingOrCreateNewSession(org.hibernate.SessionFactory sessionFactory, groovy.lang.Closure<T1> callable)
-