abstract class sap.ui.model.odata.v2.ODataContextBinding

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/model/odata/v2/ODataContextBinding
Application Component: CA-UI5-COR

The ContextBinding is a specific binding for a setting context for the model


Constructor

Constructor for odata.ODataContextBinding

new sap.ui.model.odata.v2.ODataContextBinding(oModel, sPath, oContext, mParameters?)
Param Type Default Value Description
oModel sap.ui.model.Model
sPath string
oContext sap.ui.model.Context
mParameters? object

A map which contains additional parameters for the binding.

expand? string

For the OData $expand query option parameter which should be included in the request

select? string

For the OData $select query option parameter which should be included in the request

custom? Object<string,string>

An optional map of custom query parameters. Custom parameters must not start with $.

createPreliminaryContext? boolean

Whether a preliminary context will be created

usePreliminaryContext? boolean

Whether a preliminary context will be used. When set to true, the model can bundle the OData calls for dependent bindings into fewer $batch requests. For more information, see Optimizing Dependent Bindings


Methods Overview

Method Description
sap.ui.model.odata.v2.ODataContextBinding.extend

Creates a new subclass of class sap.ui.model.odata.v2.ODataContextBinding with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.model.ContextBinding.extend.

getBoundContext

Returns the bound context.

sap.ui.model.odata.v2.ODataContextBinding.getMetadata

Returns a metadata object for class sap.ui.model.odata.v2.ODataContextBinding.

refresh

References:

  • sap.ui.model.ContextBinding.prototype.refresh

sap.ui.model.odata.v2.ODataContextBinding.extend

Creates a new subclass of class sap.ui.model.odata.v2.ODataContextBinding with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.model.ContextBinding.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

getBoundContext

Returns the bound context.

sap.ui.model.odata.v2.ODataContextBinding.getMetadata

Returns a metadata object for class sap.ui.model.odata.v2.ODataContextBinding.

refresh

References:

Param Type DefaultValue Description
bForceUpdate boolean

Update the bound control even if no data has been changed

sGroupId string

The group Id for the refresh