1 /* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef DATASHARE_RESULT_SET_H 17 #define DATASHARE_RESULT_SET_H 18 19 namespace OHOS { 20 namespace DataShare { 21 class DataShareResultSet { 22 public: GetColumnIndex(const std::string &columnName, int &columnIndex)23 static int GetColumnIndex(const std::string &columnName, int &columnIndex) 24 { 25 return 0; 26 } GetString(int columnIndex, std::string &value)27 static int GetString(int columnIndex, std::string &value) 28 { 29 return 0; 30 } GetLong(int columnIndex, int64_t &value)31 static int GetLong(int columnIndex, int64_t &value) 32 { 33 return 0; 34 } GetInt(int columnIndex, int &value)35 static int GetInt(int columnIndex, int &value) 36 { 37 return 0; 38 } GoToFirstRow()39 static int GoToFirstRow() 40 { 41 return 0; 42 } GoToNextRow()43 static int GoToNextRow() 44 { 45 return 0; 46 } Close()47 static int Close() 48 { 49 return 0; 50 } 51 }; 52 53 } 54 } 55 #endif // DATASHARE_RESULT_SET_H