|
|
|
filter(
callback
: Function
thisObject
: The
) :
void
Filters the query results, based on
Parameter |
Type |
Usage |
Description |
callback |
Function |
required |
that is called for each object in the query results |
thisObject |
The |
required |
object to use as |this| in the callback. |
|
|
|
|
forEach(
callback
: Function
thisObject
: The
) :
void
Iterates over the query results, based on
Parameter |
Type |
Usage |
Description |
callback |
Function |
required |
that is called for each object in the query results |
thisObject |
The |
required |
object to use as |this| in the callback. |
|
|
|
|
map(
callback
: Function
thisObject
: The
) :
void
Maps the query results, based on
Parameter |
Type |
Usage |
Description |
callback |
Function |
required |
that is called for each object in the query results |
thisObject |
The |
required |
object to use as |this| in the callback. |
|
|
|
|
observe(
listener
: Function
includeAllUpdates
: This
) :
void
This registers a callback for notification of when data is modified in the query results.
This is an optional method, and is usually provided by dojo.store.Observable.
Parameter |
Type |
Usage |
Description |
listener |
Function |
required |
The listener function is called when objects in the query results are modified
to affect the query result. The listener function is called with the following |
includeAllUpdates |
This |
required |
indicates whether or not to include object updates that do not affect
the inclusion or order of the object in the query results. By default this is false,
which means that if any object is updated in such a way that it remains
in the result set and it's position in result sets is not affected, then the listener
will not be fired. |
|
|
|
|
then(
callback
: This
errorHandler
: This
) :
void
This registers a callback for when the query is complete, if the query is asynchronous.
This is an optional method, and may not be present for synchronous queries.
Parameter |
Type |
Usage |
Description |
callback |
This |
required |
is called when the query is completed successfully, and is passed a single argument
that is an array representing the query results. |
errorHandler |
This |
required |
is called if the query failed, and is passed a single argument that is the error
for the failure. |
|