Module: odata

odata

Source:

Methods

<static> defaultSuccess(data)

Default success handler for OData.
Parameters:
Name Type Description
data Data to process.
Source:

<static> parseMetadata(csdlMetadataDocument) → {Object}

Parses the csdl metadata to ODataJS metatdata format. This method can be used when the metadata is retrieved using something other than odatajs
Parameters:
Name Type Description
csdlMetadataDocument string A string that represents the entire csdl metadata.
Source:
Returns:
An object that has the representation of the metadata in odatajs format.
Type
Object

<static> read(urlOrRequest, success, error, handler, httpClient, metadata)

Reads data from the specified URL.
Parameters:
Name Type Argument Description
urlOrRequest URL to read data from.
success function <optional>
-
error function <optional>
-
handler Object <optional>
-
httpClient Object <optional>
-
metadata Object <optional>
-
Source:

<static> request(request, success, error, handler, httpClient, metadata)

Sends a request containing OData payload to a server.
Parameters:
Name Type Argument Description
request Object Object that represents the request to be sent.
success function <optional>
-
error function <optional>
-
handler Object <optional>
-
httpClient Object <optional>
-
metadata Object <optional>
-
Source:

<inner> dispatchHandler(handlerMethod, requestOrResponse, context)

Dispatches an operation to handlers.
Parameters:
Name Type Description
handlerMethod String Name of handler method to invoke.
requestOrResponse Object request/response argument for delegated call.
context Object context argument for delegated call.
Source: