|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.RequestCycle
org.apache.wicket.protocol.http.WebRequestCycle
net.databinder.ExceptionFilteringRequestCycle
net.databinder.CookieRequestCycle
net.databinder.hib.DataRequestCycle
net.databinder.hib.conv.DataConversationRequestCycle
public class DataConversationRequestCycle
Supports extended Hibernate sessions for long conversations. This is useful for a page or a series of pages where changes are made to an entity that can not be immediately committed. Using a "conversation" session, HibernateObjectModels are used normally, but until the session is flushed the changes are not made to persistent storage.
| Field Summary |
|---|
| Fields inherited from class net.databinder.hib.DataRequestCycle |
|---|
keys |
| Fields inherited from class org.apache.wicket.RequestCycle |
|---|
application, processor, request, response |
| Constructor Summary | |
|---|---|
DataConversationRequestCycle(org.apache.wicket.protocol.http.WebApplication application,
org.apache.wicket.protocol.http.WebRequest request,
org.apache.wicket.Response response)
|
|
| Method Summary | |
|---|---|
void |
dataSessionRequested(java.lang.Object key)
Called by DataStaticService when a session is needed and does not already exist. |
protected void |
onBeginRequest()
Does nothing; The session is open or retreived only when the request target is known. |
protected void |
onEndRequest()
Inspects responding page to determine if current Hibernate session should be closed or left open and stored in the page. |
org.apache.wicket.Page |
onRuntimeException(org.apache.wicket.Page page,
java.lang.RuntimeException e)
Closes and reopens Hibernate session for this Web session. |
| Methods inherited from class net.databinder.hib.DataRequestCycle |
|---|
closeSession, openHibernateSession |
| 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, 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 |
|---|
public DataConversationRequestCycle(org.apache.wicket.protocol.http.WebApplication application,
org.apache.wicket.protocol.http.WebRequest request,
org.apache.wicket.Response response)
| Method Detail |
|---|
protected void onBeginRequest()
onBeginRequest in class org.apache.wicket.RequestCyclepublic void dataSessionRequested(java.lang.Object key)
dataSessionRequested in interface HibernateRequestCycledataSessionRequested in class DataRequestCyclekey - factory key object, or null for the default factoryprotected void onEndRequest()
onEndRequest in class DataRequestCycleDataForm.onSubmit()
public org.apache.wicket.Page onRuntimeException(org.apache.wicket.Page page,
java.lang.RuntimeException e)
onRuntimeException in class DataRequestCycle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||