ParentChildrenSyncTargetHelper

Shared code for ParentChildrenSyncDownTarget and ParentChildrenSyncUpTarget

Types

Link copied to clipboard

Properties

Link copied to clipboard
const val CHILDREN: String
Link copied to clipboard
const val PARENT: String
Link copied to clipboard

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)