ParentChildrenSyncTargetHelper
Shared code for ParentChildrenSyncDownTarget and ParentChildrenSyncUpTarget
Functions
Link copied to clipboard
fun deleteChildrenFromLocalStore(smartStore: SmartStore, parentInfo: ParentInfo, childrenInfo: ChildrenInfo, vararg parentIds: String)
Link copied to clipboard
fun getChildrenFromLocalStore(smartStore: SmartStore, parentInfo: ParentInfo, childrenInfo: ChildrenInfo, parent: JSONObject): JSONArray
Link copied to clipboard
fun getDirtyRecordIdsSql(parentInfo: ParentInfo, childrenInfo: ChildrenInfo, parentFieldToSelect: String): String
Link copied to clipboard
fun getNonDirtyRecordIdsSql(parentInfo: ParentInfo, childrenInfo: ChildrenInfo, parentFieldToSelect: String, additionalPredicate: String): String
Link copied to clipboard
fun saveRecordTreesToLocalStore(syncManager: SyncManager, target: SyncTarget, parentInfo: ParentInfo, childrenInfo: ChildrenInfo, recordTrees: JSONArray, syncId: Long)