Class: ODataCacheSource

ODataCacheSource

new ODataCacheSource(options) → {ODataCacheSource}

Creates a data cache source object for requesting data from an OData service.
Parameters:
Name Type Description
options Options for the cache data source.
Source:
Returns:
A new data cache source instance.
Type
ODataCacheSource

Methods

count(success, error) → {Object}

Gets the number of items in the collection.
Parameters:
Name Type Description
success function Success callback with the item count.
error function Error callback.
Source:
Returns:
Request object with an abort method.
Type
Object

read(index, count, success, error) → {Object}

Gets a number of consecutive items from the collection.
Parameters:
Name Type Description
index Number Zero-based index of the items to retrieve.
count Number Number of items to retrieve.
success function Success callback with the requested items.
error function Error callback.
Source:
Returns:
Request object with an abort method.
Type
Object