Function
This is an abstract class that data stores can extend to add updateable result set functionality as well as client side querying capabilities. This enables widgets to be aware of how active results change in response to the modifications/notifications.
To a update a result set after a notification (onNew, onSet, and onDelete), widgets can call the updateResultSet method. Widgets can use the updated result sets to determine how to react to notifications, and how to update their displayed results based on changes. This module will use the best available information to update result sets, using query attribute objects to determine if items are in a result set, and using the sort arrays to maintain sort information. However, queries can be opaque strings, and this module can not update results by itself in this case. In this situations, data stores can provide a isUpdateable(request) function and matchesQuery(item,request) function. If a data store can handle a query, it can return true from isUpdateable and if an item matches a query, it can return true from matchesQuery. Here is definition of isUpdateable and matchesQuery isUpdateable(request) - request is the keywords arguments as is passed to the fetch function. matchesQuery(item,request) - item is the item to test, and request is the value arguments object for the fetch function. You can define a property on this object instance "cacheByDefault" to a value of true that will cause all queries to be cached by default unless the cache queryOption is explicitly set to false. This can be defined in the constructor options for ServiceStore/JsonRestStore and subtypes.
to make a updated-result-set data store from an existing data store:
dojo.declare("dojox.data.MyLiveDataStore",
dojox.data.MyDataStore,dojox.data.ClientFilter], // subclass LiveResultSets if available
{}
);Function
Clears the cache of client side queries
Function
The result set array that should be updated
This object follows the same meaning as the keywordArgs passed to a dojo.data.api.Read.fetch.
Attempts to update the given result set based on previous notifications
This will attempt to update the provide result based on previous notification, adding new items from onNew calls, removing deleted items, and updating modified items, and properly removing and adding items as required by the query and sort parameters. This function will return: 0: Indicates it could not successfully update the result set 1: Indicates it could successfully handle all the notifications, but no changes were made to the result set 2: Indicates it successfully handled all the notifications and result set has been updated.
Function
Data Fetch arguments
Data Fetch arguments
Determines whether the provided arguments are super/sub sets of each other
Function
Function
See dojo.data.api.Read.fetch request
Returns whether the provide fetch arguments can be used to update an existing list
Function
See dojo.data.api.Read.fetch request
This provides the result set to start with for client side querying
Performs a query on the client side and returns the results as an array
Function
Function
Function
dojox.data.api.Read.fetch
returns a comparator function for the given sort order array
keep the order unchanged
Object
Object