Developer

Update Operations

Update an ODataEntity using the ScheduleUpdateEntity(asynchronous) or executeUpdateEntity(synchronous) methods on the OnlineODataStore.

Use the Copy method to make a copy (as opposed to a reference copy) of an entity. Make the necessary updates on the copy of the ODataEntity. This ensures the original entity remains intact and the app maintains a consistent state, even if the update operation fails (network disconnects, server error, and so on).

//Update an ODataEntity asynchronously
public ODataRequestExecution scheduleUpdateEntity(ODataEntity entity, 
ODataRequestListener listener, Map<String, String> options) throws ODataException;



//Update an ODataEntity synchronously
public ODataResponseSingle executeUpdateEntity(ODataEntity entity, Map<String, 
String> options) throws ODataException;