- TIBCO BusinessEvents®
- CEP Query
- Query
- Statement

# Query.Statement.setSnapshotRequired()

## Signature

`void setSnapshotRequired(String statementName, String alias, boolean isRequired,boolean ... loadAllEntities)`

## Domain

ACTION

## Description

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.

## Parameters

Name | Type | Description
--- | --- | ---
`statementName` | `String` | name of the statement.
`alias` | `String` | alias of a item in the FROM of the statement.
`isRequired` | `boolean` | true if and only if a snapshot is required for the aliased item.
`loadAllEntities` | `boolean` | true if and only if load all entities required for the aliased item.

## Returns

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

## Cautions

none