Message:

Subscribe rss
Blog categories
All | Backendless features
Feature 95: Updating data objects using API
April 15, 2015 by markpiller
Spread the love

Once an object is stored in the Backendless data storage, any of its properties (except for the system ones) can be updated using the data update API. The API works the same way as the initial call for saving the object. To update a property value, simply modify it in the instance representing the saved object. The example below retrieves a saved object, modifies the “name” property and saves it back in the data store.

The data table and schema look as shown in the screenshots below:
person table - Feature 95: Updating data objects using API

Schema:table schema - Feature 95: Updating data objects using API

 

 

 

Person class:

Asynchronous API sample (Android and Plain Java):

Synchronous API sample (Plain Java only):

The method which saves the object automatically checks if the object already exists in the persistent storage and if so, updates the property values. As you can see from the example above, the method returns an updated instance back to the client.

Share this post
Tweet about this on TwitterShare on FacebookGoogle+