Abstract Class sap.ui.model.ClientModelModule: sap/ui/model/ClientModel

extends Model
known direct subclasses: JSONModel, MessageModel, XMLModel

Model implementation for Client models

Constructor Summary
new sap.ui.model.ClientModel(oData)Constructor for a new ClientModel.
Method Summary
sap.ui.model.ClientModel.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.model.ClientModel with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.model.ClientModel.getMetadata()Returns a metadata object for class sap.ui.model.ClientModel.
forceNoCache(bForceNoCache?)Force no caching.
getData()Returns the current data of the model.
updateBindings(bForceUpdate)update all bindings
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ui.model.ClientModel(oData)
Constructor for a new ClientModel.
Parameters:
{object}oData URL where to load the data from
Method Detail
sap.ui.model.ClientModel.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.model.ClientModel 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.Model.extend.

Parameters:
{string}sClassName Name of the class being created
{object}oClassInfo? Object literal with information about the class
{function}FNMetaImpl? Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
{function} Created class / constructor function
sap.ui.model.ClientModel.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.model.ClientModel.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
destroy()
See:
sap.ui.model.Model.prototype.destroy
forceNoCache(bForceNoCache?)
Force no caching.
Parameters:
{boolean}bForceNoCache? whether to force not to cache
getData()
Returns the current data of the model. Be aware that the returned object is a reference to the model data so all changes to that data will also change the model data.
updateBindings(bForceUpdate)
update all bindings
Parameters:
{boolean}bForceUpdate true/false: Default = false. If set to false an update will only be done when the value of a binding changed.