Lines Matching refs:resultSet

125     auto resultSet = helper->Query(uri, predicates, columns);
126 if (resultSet == nullptr) {
131 resultSet->GoToFirstRow();
134 resultSet->GetColumnIndex("id", columnIndex);
135 if (resultSet->GetInt(columnIndex, columnInt) == 0) {
138 resultSet->GetColumnIndex("message_count", columnIndex);
139 if (resultSet->GetInt(columnIndex, columnInt) == 0) {
141 resultSet->Close();
145 resultSet->Close();
172 auto resultSet = helper->Query(uri, predicates, columns);
173 if (resultSet == nullptr) {
178 resultSet->GoToFirstRow();
181 resultSet->GetColumnIndex(SmsMmsInfo::MSG_ID, columnIndex);
182 if (resultSet->GetInt(columnIndex, columnInt) == 0) {
185 resultSet->Close();
212 auto resultSet = helper->Query(uri, predicates, columns);
213 if (resultSet == nullptr) {
219 int resultSetNum = resultSet->GoToFirstRow();
223 ResultSetConvertToIndexer(indexer, resultSet);
225 resultSetNum = resultSet->GoToNextRow();
228 resultSet->Close();
242 auto resultSet = helper->Query(uri, predicates, columns);
243 if (resultSet == nullptr) {
251 resultSet->GoToLastRow();
252 resultSet->GetColumnIndex(SmsMmsInfo::GROUP_ID, columnIndex);
253 if (resultSet->GetInt(columnIndex, columnInt) == 0) {
256 resultSet->Close();
403 auto resultSet = helper->Query(uri, predicates, columns);
405 if (resultSet == nullptr) {
411 if (resultSet->GetRowCount(count) == 0 && count != 0) {
412 resultSet->GoToFirstRow();
414 resultSet->GetColumnIndex(CONTACTED_COUNT, columnIndex);
415 if (resultSet->GetInt(columnIndex, contactedCount) == 0) {
419 resultSet->Close();
450 auto resultSet = helper->Query(uri, predicates, columns);
452 if (resultSet == nullptr) {
458 if (resultSet->GetRowCount(count) == 0 && count != 0) {
459 resultSet->GoToFirstRow();
461 resultSet->GetColumnIndex(RAW_CONTACT_ID, columnIndex);
462 if (resultSet->GetInt(columnIndex, rawCountId) == 0) {
466 resultSet->Close();
497 SmsReceiveIndexer &info, const std::shared_ptr<DataShare::DataShareResultSet> &resultSet)
501 resultSet->GetColumnIndex(SmsSubsection::FORMAT, columnIndex);
502 if (resultSet->GetInt(columnIndex, columnInt) == 0) {
506 resultSet->GetColumnIndex(SmsSubsection::SMS_SUBSECTION_ID, columnIndex);
507 if (resultSet->GetInt(columnIndex, columnInt) == 0) {
511 resultSet->GetColumnIndex(SmsSubsection::SIZE, columnIndex);
512 if (resultSet->GetInt(columnIndex, columnInt) == 0) {
516 resultSet->GetColumnIndex(SmsSubsection::SUBSECTION_INDEX, columnIndex);
517 if (resultSet->GetInt(columnIndex, columnInt) == 0) {
521 resultSet->GetColumnIndex(SmsSubsection::DEST_PORT, columnIndex);
522 if (resultSet->GetInt(columnIndex, columnInt) == 0) {
526 resultSet->GetColumnIndex(SmsSubsection::ID, columnIndex);
527 if (resultSet->GetInt(columnIndex, columnInt) == 0) {
533 SmsReceiveIndexer &info, const std::shared_ptr<DataShare::DataShareResultSet> &resultSet)
537 resultSet->GetColumnIndex(SmsSubsection::RECEIVER_NUMBER, columnIndex);
538 if (resultSet->GetString(columnIndex, columnValue) == 0) {
541 resultSet->GetColumnIndex(SmsSubsection::SENDER_NUMBER, columnIndex);
542 if (resultSet->GetString(columnIndex, columnValue) == 0) {
545 resultSet->GetColumnIndex(SmsSubsection::START_TIME, columnIndex);
546 if (resultSet->GetString(columnIndex, columnValue) == 0) {
552 resultSet->GetColumnIndex(SmsSubsection::END_TIME, columnIndex);
553 if (resultSet->GetString(columnIndex, columnValue) == 0) {
559 resultSet->GetColumnIndex(SmsSubsection::REW_PUD, columnIndex);
560 if (resultSet->GetString(columnIndex, columnValue) == 0) {
566 SmsReceiveIndexer &info, const std::shared_ptr<DataShare::DataShareResultSet> &resultSet)
568 ConvertIntToIndexer(info, resultSet);
569 ConvertStringToIndexer(info, resultSet);