public class GrailsHibernateTemplate
extends org.springframework.orm.hibernate3.HibernateTemplate
implements org.codehaus.groovy.grails.orm.hibernate.IHibernateTemplate
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
applySettings(org.hibernate.Criteria criteria) |
void |
applySettings(org.hibernate.Query queryObject) |
protected void |
enableFilters(org.hibernate.Session session) |
boolean |
isOsivReadOnly() |
protected void |
prepareCriteria(org.hibernate.Criteria criteria) |
protected void |
prepareQuery(org.hibernate.Query queryObject) |
void |
setOsivReadOnly(boolean osivReadOnly) |
protected boolean |
shouldPassReadOnlyToHibernate() |
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, updateafterPropertiesSet, applyFlushMode, convertHibernateAccessException, convertJdbcAccessException, convertJdbcAccessException, disableFilters, flushIfNecessary, getDefaultJdbcExceptionTranslator, getEntityInterceptor, getFilterNames, getFlushMode, getJdbcExceptionTranslator, getSessionFactory, setBeanFactory, setEntityInterceptor, setEntityInterceptorBeanName, setFilterName, setFilterNames, setFlushMode, setFlushModeName, setJdbcExceptionTranslator, setSessionFactorypublic GrailsHibernateTemplate()
public GrailsHibernateTemplate(org.hibernate.SessionFactory sessionFactory,
boolean allowCreate)
public GrailsHibernateTemplate(org.hibernate.SessionFactory sessionFactory)
public GrailsHibernateTemplate(org.hibernate.SessionFactory sessionFactory,
org.codehaus.groovy.grails.commons.GrailsApplication application)
protected void prepareQuery(org.hibernate.Query queryObject)
prepareQuery in class org.springframework.orm.hibernate3.HibernateTemplatepublic void applySettings(org.hibernate.Query queryObject)
protected void prepareCriteria(org.hibernate.Criteria criteria)
prepareCriteria in class org.springframework.orm.hibernate3.HibernateTemplateprotected boolean shouldPassReadOnlyToHibernate()
public void applySettings(org.hibernate.Criteria criteria)
protected void enableFilters(org.hibernate.Session session)
enableFilters in class org.springframework.orm.hibernate3.HibernateAccessorpublic boolean isOsivReadOnly()
public void setOsivReadOnly(boolean osivReadOnly)