class sap.ui.model.analytics.odata4analytics.Model

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Extends:
Module: sap/ui/model/analytics/odata4analytics
Application Component: CA-UI5-COR

Representation of an OData model with analytical annotations defined by OData4SAP.


Constructor

Create a representation of the analytical semantics of OData service metadata

new sap.ui.model.analytics.odata4analytics.Model(oModelReference, mParameter?)
Param Type Default Value Description
oModelReference object

An instance of sap.ui.model.analytics.odata4analytics.Model.ReferenceByModel or sap.ui.model.analytics.odata4analytics.Model.ReferenceWithWorkaround for locating the OData service. sap.ui.model.analytics.odata4analytics.Model.ReferenceByURI is deprecated.

mParameter? object

Additional parameters for controlling the model construction. Currently supported are:

  • sAnnotationJSONDoc - A JSON document providing extra annotations to the elements of the structure of the given service
  • modelVersion (deprecated) - Parameter to define which ODataModel version should be used if you use sap.ui.model.analytics.odata4analytics.Model.ReferenceByURI; supported values are: 1 (default), 2

  • Methods Overview

    Method Description
    findQueryResultByName

    Find analytic query result by name

    getAllQueryResultNames

    Get the names of all query results (entity sets) offered by the model

    getAllQueryResults

    Get all query results offered by the model

    getODataModel

    Get underlying OData model provided by SAPUI5

    findQueryResultByName

    Find analytic query result by name

    Param Type DefaultValue Description
    sName string

    Fully qualified name of query result entity set

    getAllQueryResultNames

    Get the names of all query results (entity sets) offered by the model

    getAllQueryResults

    Get all query results offered by the model

    getODataModel

    Get underlying OData model provided by SAPUI5