Lines Matching refs:candidate
18 #include "candidate.h"
37 * @brief Query operation for update candidate's merge_mode
48 Candidate candidate = candidateStatus.QueryAllForMerge(store, rawId);
49 if (candidate.autoIds_.size() > 1) {
50 int minAutoid = *candidate.autoIds_.begin();
68 int retCode = UpdateMergeMode(store, candidate);
201 int MatchCandidate::UpdateMergeMode(std::shared_ptr<OHOS::NativeRdb::RdbStore> store, Candidate candidate)
203 HILOG_INFO("MatchCandidate::UpdateMergeMode is start mode :%{public}d ", candidate.mergeMode_);
205 switch (candidate.mergeMode_) {
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);