public class JPQLManagedDCHandler extends JPQLDataFilterHandler implements ManagedDataControl
_beanDataProvider, _logger_dc, beginRequest, commitTransaction, createRowData, createSnapshot, endRequest, getDataProvider, getName, invokeOperation, isTransactionDirty, registerDataProvider, release, removeRowData, removeSnapshot, resetState, restoreSnapshot, rollbackTransaction, setAttributeValue, validate| Constructor and Description |
|---|
JPQLManagedDCHandler(DataControl dataControl) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginRequest(java.util.HashMap requestCtx)
Invoked in some contexts to signal the beginning of a model request.
|
java.io.Serializable |
createSnapshot()
Creates a snapshot of the state of the DataControl.
|
void |
endRequest(java.util.HashMap requestCtx)
Invoked in some contexts to signal the end of a model request.
|
java.lang.Object |
getDataProvider()
Returns the Business Service Object that this datacontrol is associated with.
|
java.lang.String |
getName()
Returns name to identify this datacontrol inside a BindingContext.
|
boolean |
invokeOperation(java.util.Map bindingContext,
OperationBinding action)
Invokes an operation identified by the given method info and with ordered arguments in the params list.
|
void |
release()
Releases the DataControl.
|
void |
removeSnapshot(java.io.Serializable handle)
Removes the snapshot associated with the snapshot handle.
|
boolean |
resetState()
Resets the DataControl.
|
void |
restoreSnapshot(java.io.Serializable handle)
Restore the state of the DataControl with the snapshot
state that is referenced by the handle.
|
getHandlerMethodNames, invoke, invoke, invoke, supportsCriteriagetDataCollection, getDataControlHandler, initDataCollection, invokeAccessor, invokeOperation, supportsPaging, supportsPaging, supportsRangePaging, supportsRangePaging, supportsSortingcommitTransaction, createRowData, isTransactionDirty, registerDataProvider, removeRowData, rollbackTransaction, setAttributeValue, validatefindMethod, findMethods, getInstance, invoke, invokeMethodpublic JPQLManagedDCHandler(DataControl dataControl)
public java.io.Serializable createSnapshot()
BeanDCHandlercreateSnapshot in class BeanDCHandlerpublic void restoreSnapshot(java.io.Serializable handle)
BeanDCHandlerrestoreSnapshot in class BeanDCHandlerhandle - Serializable a snaphsot handle that was created with
BeanDCHandler.createSnapshot().public void removeSnapshot(java.io.Serializable handle)
BeanDCHandlerremoveSnapshot in class BeanDCHandlerhandle - Serializable a snapshot handle that was created with
BeanDCHandler.createSnapshot().public java.lang.String getName()
BeanDCHandlergetName in interface DataControlgetName in class BeanDCHandlerpublic void release()
BeanDCHandlerThis should close all open DataControl resources.
release in interface DataControlrelease in class BeanDCHandlerpublic java.lang.Object getDataProvider()
BeanDCHandlergetDataProvider in interface DataControlgetDataProvider in class BeanDCHandlerpublic boolean invokeOperation(java.util.Map bindingContext,
OperationBinding action)
BeanDCHandlerinvokeOperation in interface DataControlinvokeOperation in class DataFilterHandlerbindingContext - A binding context that provide access to all binding related objects.action - OperationBindingpublic void beginRequest(java.util.HashMap requestCtx)
ManagedDataControlDatacontrols may implement this method to perform request level initialization.
This method is to be called only once per request. For example, in web applications, page forwards should not result in multiple invocations of this method.
beginRequest in interface ManagedDataControlbeginRequest in class BeanDCHandlerrequestCtx - a HashMap representing request context.public void endRequest(java.util.HashMap requestCtx)
ManagedDataControlDatacontrols may implement this method to perform request level cleanup.
This method is to be called only once per request. For example, in web applications, page forwards should not result in multiple invocations of this method.
endRequest in interface ManagedDataControlendRequest in class BeanDCHandlerrequestCtx - a HashMap representing request context.public boolean resetState()
ManagedDataControlFor example, an EJB DataControl provider may extend resetState to close the DataControl EJB SessionBean
Please note that resetState may not occur immediately. If beginRequest has been invoked on the DataControl then resetState processing will be deferred until endRequest processing.
resetState in interface ManagedDataControlresetState in class BeanDCHandler