+

Search Tips | Advanced Search

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


Java API examples

We can use JSONStore for Cordova applications that use the MobileFirst plug-in.

The following sections contain example implementations for Android devices with JSONStore APIs. Other helpful topics include:


Initialize and open connections, get an Accessor, and add data


Initialize with a secure random token from the server


Find - locate documents inside the Store


Replace - change the documents that are already stored inside a Collection


Remove - delete all documents that match the query


Count - gets the total number of documents that match a query


Destroy - wipes data for all users, destroys the internal storage, and clears security artifacts


Security - close access to all opened Collections for the current user


Security - change the password that is used to access a Store


Push - get all documents that are marked as dirty, send them to a MobileFirst adapter, and mark them clean


Pull - get new data from a MobileFirst adapter


Check whether a document is dirty


Check the number of dirty documents


Remove a Collection


Clear all data that is inside a Collection


Start a transaction, add some data, remove a document, commit the transaction and roll back the transaction if there is a failure


Get file information

Parent topic: JSONStore examples