SyncTarget
Abstract super class for SyncUpTarget and SyncDownTarget
Targets handle interactions with local store and with remote server.
Default targets use SmartStore for local store and local*_ fields to flag dirty (i.e. locally created/updated/deleted) records. Custom targets can use a different local store and/or different fields to flag dirty records.
Default targets use SObject Rest API to read/write records to the server. Custom targets can use different end points to read/write records to the server.
Inheritors
Functions
Save cleaned record in local store
Delete record from local store
Return ids of "dirty" records (records locally created/upated or deleted)
Get record from local store by storeId
Get records from local store by storeId
Given a record, return true if it was locally created/updated or deleted
Given a record, return true if it was locally created
Given a record, return true if it was locally deleted
Given a record, return true if it was locally updated
Save records to local store