From e122d00c264cd3a173a1c3da503866304a4ecc46 Mon Sep 17 00:00:00 2001 From: qianyong325 Date: Sat, 23 Aug 2025 13:56:28 +0800 Subject: [PATCH] DataShareResultSet 1.2 Signed-off-by: qianyong325 --- api/@ohos.data.DataShareResultSet.d.ts | 60 +++++++++++++++----------- 1 file changed, 36 insertions(+), 24 deletions(-) diff --git a/api/@ohos.data.DataShareResultSet.d.ts b/api/@ohos.data.DataShareResultSet.d.ts index e637a1a698..70383ba099 100644 --- a/api/@ohos.data.DataShareResultSet.d.ts +++ b/api/@ohos.data.DataShareResultSet.d.ts @@ -22,11 +22,12 @@ * Indicates the {@code DataType}. *

{@code DataType} is obtained based on the value. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @systemapi * @StageModelOnly - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ export enum DataType { /** @@ -35,7 +36,8 @@ export enum DataType { * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @systemapi * @StageModelOnly - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ TYPE_NULL = 0, @@ -45,7 +47,8 @@ export enum DataType { * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @systemapi * @StageModelOnly - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ TYPE_LONG = 1, @@ -55,7 +58,8 @@ export enum DataType { * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @systemapi * @StageModelOnly - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ TYPE_DOUBLE = 2, @@ -65,7 +69,8 @@ export enum DataType { * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @systemapi * @StageModelOnly - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ TYPE_STRING = 3, @@ -75,7 +80,8 @@ export enum DataType { * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @systemapi * @StageModelOnly - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ TYPE_BLOB = 4 } @@ -185,7 +191,8 @@ export default interface DataShareResultSet { * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @systemapi * @StageModelOnly - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ goToPreviousRow(): boolean; @@ -206,28 +213,30 @@ export default interface DataShareResultSet { /** * Go to the specified row of the result set. * - * @param { number } position - Indicates the index of the specified row, which starts from 0. + * @param { int } position - Indicates the index of the specified row, which starts from 0. * @returns { boolean } Returns true if the result set is moved successfully; returns false otherwise. * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @systemapi * @StageModelOnly - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - goToRow(position: number): boolean; + goToRow(position: int): boolean; /** * Obtains the value of the specified column or key in the current row as a byte array. * The implementation class determines whether to throw an exception if the value of the specified * column or key in the current row is null or the specified column or key is not of the Blob type. * - * @param { number } columnIndex - Indicates the specified column index or key index, which starts from 0. + * @param { int } columnIndex - Indicates the specified column index or key index, which starts from 0. * @returns { Uint8Array } Returns the value of the specified column or key as a byte array. * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @systemapi * @StageModelOnly - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - getBlob(columnIndex: number): Uint8Array; + getBlob(columnIndex: int): Uint8Array; /** * Obtains the value of the specified column or key in the current row as string. @@ -263,14 +272,15 @@ export default interface DataShareResultSet { * The implementation class determines whether to throw an exception if the value of the specified * column or key in the current row is null, the specified column or key is not of the double type. * - * @param { number } columnIndex - Indicates the specified column index or key index, which starts from 0. - * @returns { number } Returns the value of the specified column or key as a double. + * @param { int } columnIndex - Indicates the specified column index or key index, which starts from 0. + * @returns { int } Returns the value of the specified column or key as a double. * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @systemapi * @StageModelOnly - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - getDouble(columnIndex: number): number; + getDouble(columnIndex: int): int; /** * Closes the result set. @@ -302,26 +312,28 @@ export default interface DataShareResultSet { * Obtains the column name or key name based on the specified column index or key index. * The column index or key index is passed as an input parameter. * - * @param { number } columnIndex - Indicates the index of the specified column or key in the result set. + * @param { int } columnIndex - Indicates the index of the specified column or key in the result set. * @returns { string } Returns the name of the specified column or key. * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @systemapi * @StageModelOnly - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - getColumnName(columnIndex: number): string; + getColumnName(columnIndex: int): string; /** * Obtains the dataType of the specified column or key. * The implementation class determines whether to throw an exception if the value of the specified * column or key in the current row is null, the specified column or key is not in the data type. * - * @param { number } columnIndex - Indicates the specified column index or key index, which starts from 0. + * @param { int } columnIndex - Indicates the specified column index or key index, which starts from 0. * @returns { DataType } Returns the dataType of the specified column or key. * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @systemapi * @StageModelOnly - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - getDataType(columnIndex: number): DataType; + getDataType(columnIndex: int): DataType; } -- Gitee