com.sap.ui.core.client.model.odata
Class ODataModel

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.sap.ui.core.client.model.Model
          extended by com.sap.ui.core.client.model.odata.ODataModel

public class ODataModel
extends Model

The class ODataModel is used for wrapping odata and make it availble for Phoenix controls.

Version:
1.0 - 15.12.2010 10:18:10, Revision Version: ($Revision: #1 $), Revision Date: ($Date: 2011/03/09 $)
Author:
D039071@exchange.sap.corp, Revision Author: ($Author: d039071 $)

Constructor Summary
protected ODataModel()
          constructs the class ODataModel hidden due to JavaScriptObject restriction
 
Method Summary
static ODataModel create(String serviceUri)
          creates a new instance of the ODataModel
static ODataModel create(String serviceUri, boolean useJson, String serviceRootUri)
          creates a new instance of the ODataModel
static ODataModel create(String serviceUri, boolean useJson, String serviceRootUri, String user, String password)
          creates a new instance of the ODataModel
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ODataModel

protected ODataModel()
constructs the class ODataModel hidden due to JavaScriptObject restriction

Method Detail

create

public static ODataModel create(String serviceUri)
creates a new instance of the ODataModel

Parameters:
serviceUri - the URI of the service to use
Returns:
new instance of the ODataModel

create

public static ODataModel create(String serviceUri,
                                boolean useJson,
                                String serviceRootUri)
creates a new instance of the ODataModel

Parameters:
serviceUri - the URI of the service to use
useJson - flag, whether to use the JSON format of the service or not
serviceRootUri - the root URI of the service to use
Returns:
new instance of the ODataModel

create

public static ODataModel create(String serviceUri,
                                boolean useJson,
                                String serviceRootUri,
                                String user,
                                String password)
creates a new instance of the ODataModel

Parameters:
serviceUri - the URI of the service to use
useJson - flag, whether to use the JSON format of the service or not
serviceRootUri - the root URI of the service to use
user - user name
password - password
Returns:
new instance of the ODataModel


Copyright © 2011 SAP. All Rights Reserved.