Search
Link Search Menu Expand Document
Kony Quantum is now HCL Volt MX. See Revised Terminology. Current Quantum users, see the important note about API naming.

You are here: Sync API

Sync API

The Sync API is a hook that enables a client app on a user’s device to access the functionality of the VoltMX Foundry Sync ORM API through a server-side app.

The Sync API contains the following API elements:

sync Namespace

Function Description
sync.getPendingAcknowledgement Fetches pending acknowledgment for all objects.
sync.getPendingUpload Fetches all the rows for all objects those are pending for upload.
sync.init Used to initialize the creation of device database for sync.
sync.reset Resets the device database to initial state.
sync.rollbackPendingLocalChanges Used to roll back the application level pending changes which are not synchronized.
sync.startSession Used to start the sync process and download the data from the Enterprise Data Source to the device database.

 

Sync Object

Method Description
[.create](sync_object_methods.html#lt-syncobject-gt-create) Enables you to create a record in a Sync object.
[.deleteByPK](sync_object_methods.html#lt-syncobject-gt-deletebypk) Enables you to delete a record using the object’s primary key.
[.getAll](sync_object_methods.html#lt-syncobject-gt-getall) Fetches all the records for a Sync object.
[.getAllDetailsByPK](sync_object_methods.html#lt-syncobject-gt-getalldetailsbypk) Fetches a record using primary key value for a Sync object.
[.getPendingAcknowledgement](sync_object_methods.html#lt-syncobject-gt-getpendingacknowledgement) Enables you to fetch pending acknowledgment for a Sync object.
[.getPendingUpload](sync_object_methods.html#lt-syncobject-gt-getpendingupload) Enables you to fetch all the rows for a Sync object which are pending for upload.
[.getXXX](sync_object_methods.html#lt-syncobject-gt-getxxx) Retrieves all the records from the related object(XXX) corresponding to the current primary key.
[.remove](sync_object_methods.html#lt-syncobject-gt-remove) Enables you to delete a record for a Sync object using the where clause.
[.rollbackPendingLocalChanges](sync_object_methods.html#lt-syncobject-gt-rollbackpendinglocalchanges) Enables you to rollback the object level pending changes which are not synchronized.
[.rollbackPendingLocalChangesByPK](sync_object_methods.html#lt-syncobject-gt-rollbackpendinglocalchanges) Enables you to fetch all the records for a Sync object.
[.update](sync_object_methods.html#lt-syncobject-gt-update) Enables you to update a record for a Sync object using a where clause
[.updateByPK](sync_object_methods.html#lt-syncobject-gt-updatebypk) Enables you to update a record using the object’s primary key.