ContinuousQuery

ContinuousQuery

Class to hold Object query and values, intended for notifications.


Constructor

# new ContinuousQuery(command)

Parameters:
Name Type Default Description
command QueryCommand null

Methods

# addDataModificationListener(listener, eventEnumSet, datafilter)

This method registers a custom listener that is fired on change in dataset of a continuous query

Parameters:
Name Type Description
listener QueryDataModificationListener

The listener that is invoked whenever there is a change in dataset of continuous Query.

eventEnumSet number

Registers the listener with the specified event types in the enumset.

datafilter number

This enum is to describe when registering an event, upon raise how much data is retrieved from cache when the event is raised.

# getQueryCommand() → {QueryCommand}

Gets the query command for the continuous query.

Returns:

The QueryCommand instance.

Type
QueryCommand

# removeDataModificationListener(listener, eventEnumSet)

This method unregisters a custom listener that is fired on change in dataset of a continuous query.

Parameters:
Name Type Description
listener QueryDataModificationListener

The listener that was registered with continuous query.

eventEnumSet number

Unregisters the listener with the specified event types in the enumset.

# setQuery(query)

Parameters:
Name Type Description
query string

# setQueryCommand(value)

Sets the query command for the continuous query.

Parameters:
Name Type Description
value QueryCommand

The QueryCommand instance.