Query.Statement.executeWithCallback()
Signature
void executeWithCallback(String statementName, String listenerName, String callbackUri, boolean isContinuous, Object closure)
Description
Executes a query and binds a callback rule function to it.
Parameters
Name | Type | Description |
statementName | String | name of the statement to execute. |
listenerName | String | name of the listener to create. |
callbackUri | String | path to the RuleFunction callback that will be called upon new result, batch end, and execution end.
The parameters of that RuleFunction must be:
String listenerName : name of the listener;
boolean isBatchEnd : true when called as a notification of batch end;
boolean hasEnded : true when called as a notification of end of execution;
Object row : array of Object columns, null when either isBatchEnd or hasEnded is true;
Object closure : the closure provided to executeWithCallback .
|
isContinuous | boolean | true for the statement to be executed in continuous mode. |
closure | Object | that will be blindly returned through a callback parameter. |