org.codehaus.groovy.grails.orm.hibernate
Class GrailsHibernateTemplate

java.lang.Object
  extended by org.springframework.orm.hibernate3.HibernateAccessor
      extended by org.springframework.orm.hibernate3.HibernateTemplate
          extended by org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTemplate
All Implemented Interfaces:
org.codehaus.groovy.grails.orm.hibernate.IHibernateTemplate, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.orm.hibernate3.HibernateOperations

public class GrailsHibernateTemplate
extends org.springframework.orm.hibernate3.HibernateTemplate
implements org.codehaus.groovy.grails.orm.hibernate.IHibernateTemplate


Field Summary
 
Fields inherited from class org.springframework.orm.hibernate3.HibernateAccessor
FLUSH_ALWAYS, FLUSH_AUTO, FLUSH_COMMIT, FLUSH_EAGER, FLUSH_NEVER, logger
 
Constructor Summary
GrailsHibernateTemplate()
           
GrailsHibernateTemplate(org.hibernate.SessionFactory sessionFactory)
           
GrailsHibernateTemplate(org.hibernate.SessionFactory sessionFactory, boolean allowCreate)
           
GrailsHibernateTemplate(org.hibernate.SessionFactory sessionFactory, org.codehaus.groovy.grails.commons.GrailsApplication application)
           
 
Method Summary
 void applySettings(org.hibernate.Criteria criteria)
           
 void applySettings(org.hibernate.Query queryObject)
           
protected  void enableFilters(org.hibernate.Session session)
           
protected  boolean isCurrentTransactionReadOnly()
           
 boolean isOsivReadOnly()
           
protected  void prepareCriteria(org.hibernate.Criteria criteria)
           
protected  void prepareQuery(org.hibernate.Query queryObject)
           
 void setOsivReadOnly(boolean osivReadOnly)
           
 
Methods inherited from class org.springframework.orm.hibernate3.HibernateTemplate
applyNamedParameterToQuery, bulkUpdate, bulkUpdate, bulkUpdate, checkWriteOperationAllowed, clear, closeIterator, contains, createSessionProxy, delete, delete, delete, delete, deleteAll, doExecute, enableFilter, evict, execute, executeFind, executeWithNativeSession, executeWithNewSession, find, find, find, findByCriteria, findByCriteria, findByExample, findByExample, findByExample, findByExample, findByNamedParam, findByNamedParam, findByNamedQuery, findByNamedQuery, findByNamedQuery, findByNamedQueryAndNamedParam, findByNamedQueryAndNamedParam, findByNamedQueryAndValueBean, findByValueBean, flush, get, get, get, get, getFetchSize, getMaxResults, getQueryCacheRegion, getSession, initialize, isAllowCreate, isAlwaysUseNewSession, isCacheQueries, isCheckWriteOperations, isExposeNativeSession, iterate, iterate, iterate, load, load, load, load, load, loadAll, lock, lock, merge, merge, persist, persist, refresh, refresh, replicate, replicate, save, save, saveOrUpdate, saveOrUpdate, saveOrUpdateAll, setAllowCreate, setAlwaysUseNewSession, setCacheQueries, setCheckWriteOperations, setExposeNativeSession, setFetchSize, setMaxResults, setQueryCacheRegion, update, update, update, update
 
Methods inherited from class org.springframework.orm.hibernate3.HibernateAccessor
afterPropertiesSet, applyFlushMode, convertHibernateAccessException, convertJdbcAccessException, convertJdbcAccessException, disableFilters, flushIfNecessary, getDefaultJdbcExceptionTranslator, getEntityInterceptor, getFilterNames, getFlushMode, getJdbcExceptionTranslator, getSessionFactory, setBeanFactory, setEntityInterceptor, setEntityInterceptorBeanName, setFilterName, setFilterNames, setFlushMode, setFlushModeName, setJdbcExceptionTranslator, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.groovy.grails.orm.hibernate.IHibernateTemplate
clear, contains, delete, deleteAll, evict, flush, get, get, getFlushMode, getSessionFactory, load, lock, refresh, save, setFlushMode
 

Constructor Detail

GrailsHibernateTemplate

public GrailsHibernateTemplate()

GrailsHibernateTemplate

public GrailsHibernateTemplate(org.hibernate.SessionFactory sessionFactory,
                               boolean allowCreate)

GrailsHibernateTemplate

public GrailsHibernateTemplate(org.hibernate.SessionFactory sessionFactory)

GrailsHibernateTemplate

public GrailsHibernateTemplate(org.hibernate.SessionFactory sessionFactory,
                               org.codehaus.groovy.grails.commons.GrailsApplication application)
Method Detail

prepareQuery

protected void prepareQuery(org.hibernate.Query queryObject)
Overrides:
prepareQuery in class org.springframework.orm.hibernate3.HibernateTemplate

applySettings

public void applySettings(org.hibernate.Query queryObject)

prepareCriteria

protected void prepareCriteria(org.hibernate.Criteria criteria)
Overrides:
prepareCriteria in class org.springframework.orm.hibernate3.HibernateTemplate

isCurrentTransactionReadOnly

protected boolean isCurrentTransactionReadOnly()

applySettings

public void applySettings(org.hibernate.Criteria criteria)

enableFilters

protected void enableFilters(org.hibernate.Session session)
Overrides:
enableFilters in class org.springframework.orm.hibernate3.HibernateAccessor

isOsivReadOnly

public boolean isOsivReadOnly()

setOsivReadOnly

public void setOsivReadOnly(boolean osivReadOnly)