net.databinder.cay
Class DataRequestCycle

java.lang.Object
  extended by org.apache.wicket.RequestCycle
      extended by org.apache.wicket.protocol.http.WebRequestCycle
          extended by net.databinder.ExceptionFilteringRequestCycle
              extended by net.databinder.CookieRequestCycle
                  extended by net.databinder.cay.DataRequestCycle
All Implemented Interfaces:
CayenneRequestCycle

public class DataRequestCycle
extends CookieRequestCycle
implements CayenneRequestCycle

Request cycle that binds Cayenne context to current thread. Context is rolled back at the end of the request if it contains uncomitted changes.


Field Summary
 
Fields inherited from class org.apache.wicket.RequestCycle
application, processor, request, response
 
Constructor Summary
DataRequestCycle(org.apache.wicket.protocol.http.WebApplication app, org.apache.wicket.protocol.http.WebRequest request, org.apache.wicket.Response response)
           
 
Method Summary
 void contextRequested()
          Binds context to this thread.
protected  void onEndRequest()
          Unbinds, rolling back uncomitted changes if any.
 
Methods inherited from class net.databinder.CookieRequestCycle
applyScope, clearCookie, getCookie, getCookies
 
Methods inherited from class net.databinder.ExceptionFilteringRequestCycle
logRuntimeException, setWarnOnlySource
 
Methods inherited from class org.apache.wicket.protocol.http.WebRequestCycle
getProcessor, getWebRequest, getWebResponse, getWebSession, isRedirect, newClientInfo, redirectTo
 
Methods inherited from class org.apache.wicket.RequestCycle
detach, get, getApplication, getClientInfo, getMetaData, getOriginalResponse, getPageParameters, getRedirect, getRequest, getRequestTarget, getResponse, getResponsePage, getResponsePageClass, getSession, getStartTime, isUrlForNewWindowEncoding, onBeginRequest, onRuntimeException, request, request, request, set, setAutomaticallyClearFeedbackMessages, setMetaData, setRedirect, setRequest, setRequestTarget, setResponse, setResponsePage, setResponsePage, setResponsePage, setResponsePage, setUrlForNewWindowEncoding, toString, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, wasHandled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataRequestCycle

public DataRequestCycle(org.apache.wicket.protocol.http.WebApplication app,
                        org.apache.wicket.protocol.http.WebRequest request,
                        org.apache.wicket.Response response)
Method Detail

contextRequested

public void contextRequested()
Binds context to this thread.

Specified by:
contextRequested in interface CayenneRequestCycle
See Also:
Databinder.getContext()

onEndRequest

protected void onEndRequest()
Unbinds, rolling back uncomitted changes if any.

Overrides:
onEndRequest in class org.apache.wicket.RequestCycle


Copyright © 2005-2008 Nathan Hamblen. All Rights Reserved.