- TIBCO BusinessEvents®
- CEP Query
- Query
- Statement

# Query.Statement

## Description

Query Statement functions.

## Categories

Name | Description
--- | ---
`Metadata` | Functions to inspect the metadata of a statement.

## Functions

Name | Signature and Synopsis
--- | ---
`assertEvent` | `void assertEvent(String statementName, Event event)` Sends the event directly to all query instances registered under the given statement name.
`clearSnapshotRequired` | `void clearSnapshotRequired(String statementName)` Clears all the requests for snapshots associated to the statement.
`clearVars` | `void clearVars(String statementName)` Clears the values of all the bind variables associated to the statement.
`close` | `void close(String statementName)` Closes the statement and all its resultsets.
`execute` | `void execute(String statementName, String resultsetName)` Executes a statement and binds a result set to it.
`executeWithBatchCallback` | `void executeWithBatchCallback(String statementName, String listenerName, String callbackUri, boolean isContinuous, Object closure)` Executes a statement and binds a callback rule function to it.
`executeWithCallback` | `void executeWithCallback(String statementName, String listenerName, String callbackUri, boolean isContinuous, Object closure)` Executes a statement and binds a callback rule function to it.
`getSnapshotRequired` | `boolean 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.
`getVar` | `Object getVar(String statementName, String bindVarName)` Gets the value of a bind variable in a statement.
`isOpen` | `boolean isOpen(String statementName)` Checks if a statement is open.
`open` | `void open(String queryName, String statementName)` Opens a statement using a registered query name.
`setSnapshotRequired` | `void setSnapshotRequired(String statementName, String alias, boolean isRequired,boolean ... loadAllEntities)` 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.
`setVar` | `void setVar(String statementName, String bindvarName, Object value)` Sets the value of a bind variable in a statement.