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 successfunction Success callback with the item count. errorfunction 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 indexNumber Zero-based index of the items to retrieve. countNumber Number of items to retrieve. successfunction Success callback with the requested items. errorfunction Error callback. - Source:
Returns:
Request object with an abort method.- Type
- Object