Interface IHibernateTemplate

All Known Implementing Classes:
GrailsHibernateTemplate

public interface IHibernateTemplate
Template interface that can be used with both Hibernate 3 and Hibernate 4
  • Method Details

    • save

    • refresh

      void refresh(Object o)
    • lock

      void lock(Object o, org.hibernate.LockMode lockMode)
    • flush

      void flush()
    • clear

      void clear()
    • evict

      void evict(Object o)
    • contains

      boolean contains(Object o)
    • setFlushMode

      void setFlushMode(int mode)
    • getFlushMode

      int getFlushMode()
    • deleteAll

      void deleteAll(Collection<?> list)
    • applySettings

      void applySettings(org.hibernate.query.Query query)
    • applySettings

      void applySettings(org.hibernate.Criteria criteria)
    • get

      <T> T get(Class<T> type, Serializable key)
    • get

      <T> T get(Class<T> type, Serializable key, org.hibernate.LockMode mode)
    • load

      <T> T load(Class<T> type, Serializable key)
    • delete

      void delete(Object o)
    • 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)