public final class

OfflineODataServiceOptions

extends Object
java.lang.Object
   ↳ com.sap.cloud.mobile.odata.offline.OfflineODataServiceOptions

Class Overview

The class represents the options for the OData back end used by OfflineODataProvider.

Summary

Public Constructors
OfflineODataServiceOptions()
Public Methods
int getCsdlOptions()
Returns CSDL options for parsing.
boolean getSupportsBind()
Returns true if service supports bind operation.
boolean getSupportsPatch()
Returns true if service supports patch requests.
void setCsdlOptions(int value)
Defines CSDL options for parsing.
void setSupportsBind(boolean value)
Defines true if service supports bind operation.
void setSupportsPatch(boolean value)
Defines true if service supports patch requests.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OfflineODataServiceOptions ()

Public Methods

public int getCsdlOptions ()

Returns CSDL options for parsing.

Returns
  • CSDL options for parsing.

public boolean getSupportsBind ()

Returns true if service supports bind operation.

Returns
  • true if service supports bind operation.

public boolean getSupportsPatch ()

Returns true if service supports patch requests.

Returns
  • true if service supports patch requests.

public void setCsdlOptions (int value)

Defines CSDL options for parsing.

By default, the value is 0.

Parameters
value the CSDL options.
See Also
  • com.sap.cloud.mobile.odata.csdl.CsdlOption

public void setSupportsBind (boolean value)

Defines true if service supports bind operation.

Whether or not the service supports bind operations. If the service does not support bind operations the following will occur if a bind operation is used:

1) If the bind operation is included in a dependent entity for a relationship that specifies a referential constraint, the bind operation will be replaced by setting the dependent properties directly.

2) If the bind operation is included in a principal entity for a relationship that specifies a referential constraint, the request will be rejected with an error.

3) If the bind operation is included in an entity for a relationship that does not specify a referential constraint, the relationship will be created locally but the bind will be omitted from the request that is sent to the OData back end.

By default, the value is true, the service supports bind operation.

Note: After opening OfflineODataProvider, changing value of SupportBind won't take effect; to close and open again, OfflineODataProvider will use new value.

Parameters
value true if service supports bind operation.

public void setSupportsPatch (boolean value)

Defines true if service supports patch requests.

By default, the value is true.

Parameters
value true if service supports patch requests.