public class GrailsOpenSessionInViewInterceptor
extends org.springframework.orm.hibernate4.support.OpenSessionInViewInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected int |
flushMode |
protected static java.lang.String |
IS_FLOW_REQUEST_ATTRIBUTE |
| Constructor and Description |
|---|
GrailsOpenSessionInViewInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCompletion(org.springframework.web.context.request.WebRequest request,
java.lang.Exception ex) |
protected void |
applyFlushMode(org.hibernate.Session session) |
protected org.codehaus.groovy.grails.web.sitemesh.GrailsContentBufferingResponse |
getContentBufferingResponse(javax.servlet.http.HttpServletResponse response) |
int |
getFlushMode() |
protected org.hibernate.Session |
openSession() |
void |
postHandle(org.springframework.web.context.request.WebRequest request,
org.springframework.ui.ModelMap model) |
void |
preHandle(org.springframework.web.context.request.WebRequest request) |
void |
setFlushMode(int flushMode) |
protected static final java.lang.String IS_FLOW_REQUEST_ATTRIBUTE
protected int flushMode
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.hibernate4.support.OpenSessionInViewInterceptororg.springframework.dao.DataAccessExceptionprotected org.hibernate.Session openSession()
throws org.springframework.dao.DataAccessResourceFailureException
openSession in class org.springframework.orm.hibernate4.support.OpenSessionInViewInterceptororg.springframework.dao.DataAccessResourceFailureExceptionprotected void applyFlushMode(org.hibernate.Session session)
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.hibernate4.support.OpenSessionInViewInterceptororg.springframework.dao.DataAccessExceptionpublic 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.hibernate4.support.OpenSessionInViewInterceptororg.springframework.dao.DataAccessExceptionprotected org.codehaus.groovy.grails.web.sitemesh.GrailsContentBufferingResponse getContentBufferingResponse(javax.servlet.http.HttpServletResponse response)
public void setFlushMode(int flushMode)
public int getFlushMode()