Lines Matching refs:store

39  * @param store Conditions for query operation
44 int MatchCandidate::FindMatchContact(std::shared_ptr<OHOS::NativeRdb::RdbStore> store, int rawId)
48 Candidate candidate = candidateStatus.QueryAllForMerge(store, rawId);
61 int code = store->ExecuteSql(updateMergeTarget);
68 int retCode = UpdateMergeMode(store, candidate);
76 * @param store Conditions for split operation
81 int MatchCandidate::Split(std::shared_ptr<OHOS::NativeRdb::RdbStore> store, int rawId)
83 if (store == nullptr) {
84 HILOG_ERROR("MatchCandidate::Split store is nullptr");
89 mergeUtils.GetRawIdsByRawId(store, rawId, rawIds);
96 int contactsId = AddNewContact(store, *newRawId);
100 code = UpdateRawContact(store, *newRawId, contactsId);
101 UpdateSearch(store, *newRawId, contactsId);
102 FindMatchContact(store, *newRawId);
104 AddHasByRawId(store, rawId);
108 void MatchCandidate::AddHasByRawId(std::shared_ptr<OHOS::NativeRdb::RdbStore> store, int rawId)
116 mergeUtils.AddHasJudgeForRawId(store, rawId, values);
118 int contactsRet = contacts.UpdateContact(rawId, store, values);
122 int MatchCandidate::UpdateSearch(std::shared_ptr<OHOS::NativeRdb::RdbStore> store, int rawId, int contactsId)
134 int ret = store->ExecuteSql(sql);
138 int64_t MatchCandidate::AddNewContact(std::shared_ptr<OHOS::NativeRdb::RdbStore> store, int rawId)
163 std::shared_ptr<OHOS::NativeRdb::ResultSet> resultSet = store->QuerySql(sql);
166 mergeUtils.AddHasJudgeForRawId(store, rawId, value[0]);
170 int contactsRet = contacts.InsertContact(store, rawIdTemp, value[0], contactsId);
177 int MatchCandidate::ExecuteUpdateMode(std::shared_ptr<OHOS::NativeRdb::RdbStore> store, std::set<int> Ids, int mode)
197 ret = store->ExecuteSql(sql);
201 int MatchCandidate::UpdateMergeMode(std::shared_ptr<OHOS::NativeRdb::RdbStore> store, Candidate candidate)
207 error = ExecuteUpdateMode(store, candidate.manualIds_, MERGE_MODE_DEFAULT);
210 error = ExecuteUpdateMode(store, candidate.manualIds_, MERGE_MODE_MANUAL);
213 error = ExecuteUpdateMode(store, candidate.autoIds_, MERGE_MODE_AUTO);
222 int MatchCandidate::UpdateRawContact(std::shared_ptr<OHOS::NativeRdb::RdbStore> store, int rawId, int64_t contactsId)
239 int code = store->ExecuteSql(sql);