1/* 2 * Copyright (c) 2022 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 16import { paramMock } from "../../../utils" 17 18export const resultSet = { 19 columnNames: [paramMock.paramStringMock], 20 columnCount: "[PC Preview] unknow columnCount", 21 rowCount: "[PC Preview] unknow rowCount", 22 rowIndex: "[PC Preview] unknow rowIndex", 23 isAtFirstRow: "[PC Preview] unknow isAtFirstRow", 24 isAtLastRow: "[PC Preview] unknow isAtLastRow", 25 isEnded: "[PC Preview] unknow isEnded", 26 isStarted: "[PC Preview] unknow isStarted", 27 isClosed: "[PC Preview] unknow isClosed", 28 getColumnIndex: function (...args) { 29 console.warn("ResultSet.getColumnIndex interface mocked in the Previewer. How this interface works on the" + 30 " Previewer may be different from that on a real device.") 31 return paramMock.paramNumberMock; 32 }, 33 getColumnName: function (...args) { 34 console.warn("ResultSet.getColumnName interface mocked in the Previewer. How this interface works on the" + 35 " Previewer may be different from that on a real device.") 36 return paramMock.paramStringMock; 37 }, 38 goTo: function (...args) { 39 console.warn("ResultSet.goTo interface mocked in the Previewer. How this interface works on the" + 40 " Previewer may be different from that on a real device.") 41 return paramMock.paramBooleanMock; 42 }, 43 goToRow: function (...args) { 44 console.warn("ResultSet.goToRow interface mocked in the Previewer. How this interface works on the" + 45 " Previewer may be different from that on a real device.") 46 return paramMock.paramBooleanMock; 47 }, 48 goToFirstRow: function (...args) { 49 console.warn("ResultSet.goToFirstRow interface mocked in the Previewer. How this interface works on the" + 50 " Previewer may be different from that on a real device.") 51 return paramMock.paramBooleanMock; 52 }, 53 goToLastRow: function (...args) { 54 console.warn("ResultSet.goToLastRow interface mocked in the Previewer. How this interface works on the" + 55 " Previewer may be different from that on a real device.") 56 return paramMock.paramBooleanMock; 57 }, 58 goToNextRow: function (...args) { 59 console.warn("ResultSet.goToNextRow interface mocked in the Previewer. How this interface works on the" + 60 " Previewer may be different from that on a real device.") 61 return paramMock.paramBooleanMock; 62 }, 63 goToPreviousRow: function (...args) { 64 console.warn("ResultSet.goToPreviousRow interface mocked in the Previewer. How this interface works on the" + 65 " Previewer may be different from that on a real device.") 66 return paramMock.paramBooleanMock; 67 }, 68 getBlob: function (...args) { 69 console.warn("ResultSet.getBlob interface mocked in the Previewer. How this interface works on the" + 70 " Previewer may be different from that on a real device.") 71 return paramMock.paramObjectMock; 72 }, 73 getString: function (...args) { 74 console.warn("ResultSet.getString interface mocked in the Previewer. How this interface works on the" + 75 " Previewer may be different from that on a real device.") 76 return paramMock.paramStringMock; 77 }, 78 getLong: function (...args) { 79 console.warn("ResultSet.getLong interface mocked in the Previewer. How this interface works on the" + 80 " Previewer may be different from that on a real device.") 81 return paramMock.paramNumberMock; 82 }, 83 getDouble: function (...args) { 84 console.warn("ResultSet.getDouble interface mocked in the Previewer. How this interface works on the" + 85 " Previewer may be different from that on a real device.") 86 return paramMock.paramNumberMock; 87 }, 88 isColumnNull: function (...args) { 89 console.warn("ResultSet.isColumnNull interface mocked in the Previewer. How this interface works on the" + 90 " Previewer may be different from that on a real device.") 91 return paramMock.paramBooleanMock; 92 }, 93 close: function (...args) { 94 console.warn("ResultSet.close interface mocked in the Previewer. How this interface works on the" + 95 " Previewer may be different from that on a real device.") 96 }, 97} 98