net.datacrow.core.wf.requests
Interface IRequest

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
IUpdateUIRequest
All Known Implementing Classes:
CloseWindowRequest, CreateUserRequest, DeleteUserRequest, RefreshChildView, RefreshSimpleViewRequest, StatusUpdateRequest, UpdateDefaultTemplate, UpdateItemFormSettingsWindow, UpdateUIAfterDeleteRequest, UpdateUIAfterInsertRequest, UpdateUIAfterUpdateRequest, UpdateUserRequest

public interface IRequest
extends java.io.Serializable

Requests can be added to queries and are executed after the query has been performed. A request is in most cases a UI related task which needs to be executed without locking the GUI.

Author:
Robert Jan van der Waals
See Also:
IUpdateUIRequest, UIUpdater, Query

Method Summary
 void end()
          Free resources.
 void execute()
          Executes this request.
 boolean getExecuteOnFail()
          Indicates if the request is allowed to be executed even when the query has failed.
 void setExecuteOnFail(boolean b)
          Indicate if the request is allowed to be executed even when the query has failed.
 

Method Detail

execute

void execute()
Executes this request.

Parameters:
items - The items retrieved by the query (if any).

getExecuteOnFail

boolean getExecuteOnFail()
Indicates if the request is allowed to be executed even when the query has failed.


setExecuteOnFail

void setExecuteOnFail(boolean b)
Indicate if the request is allowed to be executed even when the query has failed.


end

void end()
Free resources.