1 /*
2 * Copyright (c) 2025 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 #include "datashare_result_set_mock.h"
17
18 namespace OHOS {
19 namespace DataShare {
DataShareAbsResultSet()20 DataShareAbsResultSet::DataShareAbsResultSet()
21 {}
22
~DataShareAbsResultSet()23 DataShareAbsResultSet::~DataShareAbsResultSet() {}
24
GetRowCount(int & count)25 int DataShareAbsResultSet::GetRowCount(int &count)
26 {
27 return E_OK;
28 }
29
GetAllColumnNames(std::vector<std::string> & columnNames)30 int DataShareAbsResultSet::GetAllColumnNames(std::vector<std::string> &columnNames)
31 {
32 return E_OK;
33 }
34
GetBlob(int columnIndex,std::vector<uint8_t> & blob)35 int DataShareAbsResultSet::GetBlob(int columnIndex, std::vector<uint8_t> &blob)
36 {
37 return E_OK;
38 }
39
GetString(int columnIndex,std::string & value)40 int DataShareAbsResultSet::GetString(int columnIndex, std::string &value)
41 {
42 return E_OK;
43 }
44
GetInt(int columnIndex,int & value)45 int DataShareAbsResultSet::GetInt(int columnIndex, int &value)
46 {
47 return E_OK;
48 }
49
GetLong(int columnIndex,int64_t & value)50 int DataShareAbsResultSet::GetLong(int columnIndex, int64_t &value)
51 {
52 return E_OK;
53 }
54
GetDouble(int columnIndex,double & value)55 int DataShareAbsResultSet::GetDouble(int columnIndex, double &value)
56 {
57 return E_OK;
58 }
59
IsColumnNull(int columnIndex,bool & isNull)60 int DataShareAbsResultSet::IsColumnNull(int columnIndex, bool &isNull)
61 {
62 return E_OK;
63 }
64
GoToRow(int position)65 int DataShareAbsResultSet::GoToRow(int position)
66 {
67 return E_OK;
68 }
69
GetDataType(int columnIndex,DataType & dataType)70 int DataShareAbsResultSet::GetDataType(int columnIndex, DataType &dataType)
71 {
72 return E_OK;
73 }
74
GetRowIndex(int & position) const75 int DataShareAbsResultSet::GetRowIndex(int &position) const
76 {
77 return E_OK;
78 }
79
GoTo(int offset)80 int DataShareAbsResultSet::GoTo(int offset)
81 {
82 return E_OK;
83 }
84
GoToFirstRow()85 int DataShareAbsResultSet::GoToFirstRow()
86 {
87 return E_OK;
88 }
89
GoToLastRow()90 int DataShareAbsResultSet::GoToLastRow()
91 {
92 return E_OK;
93 }
94
GoToNextRow()95 int DataShareAbsResultSet::GoToNextRow()
96 {
97 return E_OK;
98 }
99
GoToPreviousRow()100 int DataShareAbsResultSet::GoToPreviousRow()
101 {
102 return E_OK;
103 }
104
IsAtFirstRow(bool & result) const105 int DataShareAbsResultSet::IsAtFirstRow(bool &result) const
106 {
107 return E_OK;
108 }
109
IsAtLastRow(bool & result)110 int DataShareAbsResultSet::IsAtLastRow(bool &result)
111 {
112 return E_OK;
113 }
114
IsStarted(bool & result) const115 int DataShareAbsResultSet::IsStarted(bool &result) const
116 {
117 return E_OK;
118 }
119
IsEnded(bool & result)120 int DataShareAbsResultSet::IsEnded(bool &result)
121 {
122 return E_OK;
123 }
124
GetColumnCount(int & count)125 int DataShareAbsResultSet::GetColumnCount(int &count)
126 {
127 return E_OK;
128 }
129
GetColumnIndex(const std::string & columnName,int & columnIndex)130 int DataShareAbsResultSet::GetColumnIndex(const std::string &columnName, int &columnIndex)
131 {
132 return E_OK;
133 }
134
GetColumnName(int columnIndex,std::string & columnName)135 int DataShareAbsResultSet::GetColumnName(int columnIndex, std::string &columnName)
136 {
137 return E_OK;
138 }
139
IsClosed() const140 bool DataShareAbsResultSet::IsClosed() const
141 {
142 return true;
143 }
144
Close()145 int DataShareAbsResultSet::Close()
146 {
147 return E_OK;
148 }
149 } // namespace DataShare
150 } // namespace OHOS
151