diff --git a/api/@ohos.data.DataShareResultSet.d.ts b/api/@ohos.data.DataShareResultSet.d.ts index e6778af933c81dee17bf2d70fb352fa3c519cf75..972b555aff13001fb31833c58d65c841388c79fe 100644 --- a/api/@ohos.data.DataShareResultSet.d.ts +++ b/api/@ohos.data.DataShareResultSet.d.ts @@ -26,7 +26,8 @@ * @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 } @@ -187,7 +193,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; @@ -195,41 +202,44 @@ export default interface DataShareResultSet { * Go to the specified row of the result set forwards or backwards by an offset relative to its current position. * A positive offset indicates moving backwards, and a negative offset indicates moving forwards. * - * @param { number } offset - Indicates the offset relative to the current position. + * @param { int } offset - Indicates the offset relative to the current position. * @returns { boolean } Returns true if the result set is moved successfully and does not go beyond the range; * 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 */ - goTo(offset: number): boolean; + goTo(offset: int): boolean; /** * 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. @@ -266,14 +276,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. @@ -305,26 +316,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; }