- TIBCO BusinessEvents®
- CEP Query
- Query
- Statement

# Query.Statement.executeWithBatchCallback()

## Signature

`void executeWithBatchCallback(String statementName, String listenerName, String callbackUri, boolean isContinuous, Object closure)`

## Domain

ACTION

## 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` | `Object closure`: the closure provided to `executeWithBatchCallback`.
`isContinuous` | `boolean` | true for the statement to be executed in continuous mode.
`closure` | `Object` | that will be blindly returned through a callback parameter.

## Returns

Type | Description
--- | ---
`void` |

## Cautions

Since the entire set of rows from a batch accumulate until the end of the batch, this method is not suitable for batches that produce a large number of rows in each batch.