|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.orm.hibernate3.HibernateAccessor
org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor
org.codehaus.groovy.grails.orm.hibernate.support.GrailsOpenSessionInViewInterceptor
public class GrailsOpenSessionInViewInterceptor
Extends the default spring OSIVI and doesn't flush the session if it has been set to MANUAL on the session itself.
| Field Summary |
|---|
| Fields inherited from class org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor |
|---|
PARTICIPATE_SUFFIX |
| Fields inherited from class org.springframework.orm.hibernate3.HibernateAccessor |
|---|
FLUSH_ALWAYS, FLUSH_AUTO, FLUSH_COMMIT, FLUSH_EAGER, FLUSH_NEVER, logger |
| Constructor Summary | |
|---|---|
GrailsOpenSessionInViewInterceptor()
|
|
| Method Summary | |
|---|---|
void |
afterCompletion(org.springframework.web.context.request.WebRequest request,
java.lang.Exception ex)
|
protected void |
flushIfNecessary(org.hibernate.Session session,
boolean existingTransaction)
|
void |
postHandle(org.springframework.web.context.request.WebRequest request,
org.springframework.ui.ModelMap model)
|
void |
preHandle(org.springframework.web.context.request.WebRequest request)
|
| Methods inherited from class org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor |
|---|
getParticipateAttributeName, isSingleSession, setSingleSession |
| Methods inherited from class org.springframework.orm.hibernate3.HibernateAccessor |
|---|
afterPropertiesSet, applyFlushMode, convertHibernateAccessException, convertJdbcAccessException, convertJdbcAccessException, disableFilters, enableFilters, 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 |
| Constructor Detail |
|---|
public GrailsOpenSessionInViewInterceptor()
| Method Detail |
|---|
public void preHandle(org.springframework.web.context.request.WebRequest request)
throws org.springframework.dao.DataAccessException
preHandle in interface org.springframework.web.context.request.WebRequestInterceptorpreHandle in class org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptororg.springframework.dao.DataAccessException
public void postHandle(org.springframework.web.context.request.WebRequest request,
org.springframework.ui.ModelMap model)
throws org.springframework.dao.DataAccessException
postHandle in interface org.springframework.web.context.request.WebRequestInterceptorpostHandle in class org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptororg.springframework.dao.DataAccessException
public void afterCompletion(org.springframework.web.context.request.WebRequest request,
java.lang.Exception ex)
throws org.springframework.dao.DataAccessException
afterCompletion in interface org.springframework.web.context.request.WebRequestInterceptorafterCompletion in class org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptororg.springframework.dao.DataAccessException
protected void flushIfNecessary(org.hibernate.Session session,
boolean existingTransaction)
throws org.hibernate.HibernateException
flushIfNecessary in class org.springframework.orm.hibernate3.HibernateAccessororg.hibernate.HibernateException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||