Query.Statement

Description

Query Statement functions.

Categories

NameDescription
MetadataFunctions to inspect the metadata of a statement.

Functions

NameSignature and Synopsis
assertEventvoid assertEvent(String statementName, Event event)
Sends the event directly to all query instances registered under the given statement name.
clearSnapshotRequiredvoid clearSnapshotRequired(String statementName)
Clears all the requests for snapshots associated to the statement.
clearVarsvoid clearVars(String statementName)
Clears the values of all the bind variables associated to the statement.
closevoid close(String statementName)
Closes the statement and all its resultsets.
executevoid execute(String statementName, String resultsetName)
Executes a statement and binds a result set to it.
executeWithBatchCallbackvoid executeWithBatchCallback(String statementName, String listenerName, String callbackUri, boolean isContinuous, Object closure)
Executes a statement and binds a callback rule function to it.
executeWithCallbackvoid executeWithCallback(String statementName, String listenerName, String callbackUri, boolean isContinuous, Object closure)
Executes a statement and binds a callback rule function to it.
getSnapshotRequiredboolean getSnapshotRequired(String statementName, String alias)
Checks if the statement will make a snapshot, or not, for an item in the FROM, at execution time, for continuous queries.
getVarObject getVar(String statementName, String bindVarName)
Gets the value of a bind variable in a statement.
isOpenboolean isOpen(String statementName)
Checks if a statement is open.
openvoid open(String queryName, String statementName)
Opens a statement using a registered query name.
setSnapshotRequiredvoid setSnapshotRequired(String statementName, String alias, boolean isRequired)
Requests that a snapshot be made, or not, for an item in the FROM, at execution time, for continuous queries. This is not used when executing non-continuous queries.
setVarvoid setVar(String statementName, String bindvarName, Object value)
Sets the value of a bind variable in a statement.