+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Performing CRUD operations

We can modify the content of a data store.

For more details on create, retrieve, update, and delete (CRUD) operations, see CDTDatastore CRUD documentation.

For create, retrieve, update, and delete (CRUD) operations on a remote store, see the Cloudant® Document API

Parent topic: Migrating apps storing mobile data in Cloudant with IMFData or Cloudant SDK


Create data


Procedure

Save data.

AndroidBEFORE (with IMFData/CloudantToolkit):

Android

AndroidAFTER (with Cloudant Sync):

Android


Reading data

We can fetch data.


Procedure

Read data.

AndroidBEFORE (with IMFData/CloudantToolkit):

Android

AndroidAFTER (with Cloudant Sync):

Android


Update data

To update an object, run a save on an existing object. Because the item exists, it is updated.


Procedure

Update objects.

AndroidBEFORE (with IMFData/CloudantToolkit):

Android

AndroidAFTER (with Cloudant Sync):

Android


Deleting data

To delete an object, pass the object that we want to delete to the store.


Procedure

Delete objects.

AndroidBEFORE (with IMFData/CloudantToolkit):

Android

AndroidAFTER (with Cloudant Sync):

Android