Module: cache/source

cache/source

Members

<static> ODataCacheSource

ODataCacheSource (see ODataCacheSource)
Source:

Methods

<inner> appendQueryOption(uri, queryOption)

Appends the specified escaped query option to the specified URI.
Parameters:
Name Type Description
uri String URI to append option to.
queryOption String Escaped query option to append.
Source:

<inner> appendSegment(uri, segment) → {String}

Appends the specified segment to the given URI.
Parameters:
Name Type Description
uri String URI to append a segment to.
segment String Segment to append.
Source:
Returns:
The original URI with a new segment appended.
Type
String

<inner> buildODataRequest(uri, options)

Builds a request object to GET the specified URI.
Parameters:
Name Type Description
uri String URI for request.
options Object Additional options.
Source:

<inner> findQueryOptionStart(uri, name) → {Number}

Finds the index where the value of a query option starts.
Parameters:
Name Type Description
uri String URI to search in.
name String Name to look for.
Source:
Returns:
The index where the query option starts.
Type
Number

<inner> queryForData(uri, options, success, error) → {Object}

Gets data from an OData service.
Parameters:
Name Type Description
uri String URI to the OData service.
options Object Object with additional well-known request options.
success function Success callback.
error function Error callback.
Source:
Returns:
Object with an abort method.
Type
Object

<inner> queryForDataInternal(uri, options, data, success, error) → {Object}

Gets data from an OData service taking into consideration server side paging.
Parameters:
Name Type Description
uri String URI to the OData service.
options Object Object with additional well-known request options.
data Array Array that stores the data provided by the OData service.
success function Success callback.
error function Error callback.
Source:
Returns:
Object with an abort method.
Type
Object