提交 2259205f 编写于 作者: P PaDaBoo

update guidelines, rdb, relationalStore, resultset

Signed-off-by: NPaDaBoo <xuejianwu@huawei.com>
上级 0b742776
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
> **说明:** > **说明:**
> >
> 从API Version 9开始,该接口不再维护,推荐使用新接口[@ohos.data.relationalStore.ResultSet](js-apis-data-relationalStore.md#resultset)。
>
> 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
## ResultSet<sup>(deprecated)</sup> ## ResultSet<sup>(deprecated)</sup>
提供通过查询数据库生成的数据库结果集的访问方法。 提供通过查询数据库生成的数据库结果集的访问方法。
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet](js-apis-data-relationalStore.md#resultset9)替代。
### 使用说明 ### 使用说明
需要通过[RdbStore.query()](js-apis-data-rdb.md#query)获取resultSet对象。 需要通过[RdbStore.query()](js-apis-data-rdb.md#query)获取resultSet对象。
...@@ -31,10 +29,6 @@ promise.then((resultSet) => { ...@@ -31,10 +29,6 @@ promise.then((resultSet) => {
### 属性<sup>(deprecated)</sup> ### 属性<sup>(deprecated)</sup>
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet.属性](js-apis-data-relationalStore.md#属性9)替代。
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
...@@ -55,10 +49,6 @@ getColumnIndex(columnName: string): number ...@@ -55,10 +49,6 @@ getColumnIndex(columnName: string): number
根据指定的列名获取列索引。 根据指定的列名获取列索引。
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet.getColumnIndex](js-apis-data-relationalStore.md#getcolumnindex9)替代。
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
**参数:** **参数:**
...@@ -89,11 +79,6 @@ getColumnName(columnIndex: number): string ...@@ -89,11 +79,6 @@ getColumnName(columnIndex: number): string
根据指定的列索引获取列名。 根据指定的列索引获取列名。
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet.getColumnName](js-apis-data-relationalStore.md#getcolumnname9)替代。
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
**参数:** **参数:**
...@@ -122,10 +107,6 @@ goTo(offset:number): boolean ...@@ -122,10 +107,6 @@ goTo(offset:number): boolean
向前或向后转至结果集的指定行,相对于其当前位置偏移。 向前或向后转至结果集的指定行,相对于其当前位置偏移。
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet.goTo](js-apis-data-relationalStore.md#goto9)替代。
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
**参数:** **参数:**
...@@ -159,10 +140,6 @@ goToRow(position: number): boolean ...@@ -159,10 +140,6 @@ goToRow(position: number): boolean
转到结果集的指定行。 转到结果集的指定行。
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet.goToRow](js-apis-data-relationalStore.md#gotorow9)替代。
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
**参数:** **参数:**
...@@ -196,11 +173,6 @@ goToFirstRow(): boolean ...@@ -196,11 +173,6 @@ goToFirstRow(): boolean
转到结果集的第一行。 转到结果集的第一行。
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet.goToFirstRow](js-apis-data-relationalStore.md#gotofirstrow9)替代。
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
**返回值:** **返回值:**
...@@ -228,10 +200,6 @@ goToLastRow(): boolean ...@@ -228,10 +200,6 @@ goToLastRow(): boolean
转到结果集的最后一行。 转到结果集的最后一行。
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet.goToLastRow](js-apis-data-relationalStore.md#gotolastrow9)替代。
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
**返回值:** **返回值:**
...@@ -259,10 +227,6 @@ goToNextRow(): boolean ...@@ -259,10 +227,6 @@ goToNextRow(): boolean
转到结果集的下一行。 转到结果集的下一行。
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet.goToNextRow](js-apis-data-relationalStore.md#gotonextrow9)替代。
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
**返回值:** **返回值:**
...@@ -290,10 +254,6 @@ goToPreviousRow(): boolean ...@@ -290,10 +254,6 @@ goToPreviousRow(): boolean
转到结果集的上一行。 转到结果集的上一行。
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet.goToPreviousRow](js-apis-data-relationalStore.md#gotopreviousrow9)替代。
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
**返回值:** **返回值:**
...@@ -321,10 +281,6 @@ getBlob(columnIndex: number): Uint8Array ...@@ -321,10 +281,6 @@ getBlob(columnIndex: number): Uint8Array
以字节数组的形式获取当前行中指定列的值。 以字节数组的形式获取当前行中指定列的值。
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet.getBlob](js-apis-data-relationalStore.md#getblob9)替代。
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
**参数:** **参数:**
...@@ -351,10 +307,6 @@ getString(columnIndex: number): string ...@@ -351,10 +307,6 @@ getString(columnIndex: number): string
以字符串形式获取当前行中指定列的值。 以字符串形式获取当前行中指定列的值。
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet.getString](js-apis-data-relationalStore.md#getstring9)替代。
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
**参数:** **参数:**
...@@ -381,10 +333,6 @@ getLong(columnIndex: number): number ...@@ -381,10 +333,6 @@ getLong(columnIndex: number): number
以Long形式获取当前行中指定列的值。 以Long形式获取当前行中指定列的值。
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet.getLong](js-apis-data-relationalStore.md#getlong9)替代。
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
**参数:** **参数:**
...@@ -411,10 +359,6 @@ getDouble(columnIndex: number): number ...@@ -411,10 +359,6 @@ getDouble(columnIndex: number): number
以double形式获取当前行中指定列的值。 以double形式获取当前行中指定列的值。
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet.getDouble](js-apis-data-relationalStore.md#getdouble9)替代。
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
**参数:** **参数:**
...@@ -441,11 +385,6 @@ isColumnNull(columnIndex: number): boolean ...@@ -441,11 +385,6 @@ isColumnNull(columnIndex: number): boolean
检查当前行中指定列的值是否为null。 检查当前行中指定列的值是否为null。
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet.isColumnNull](js-apis-data-relationalStore.md#iscolumnnull9)替代。
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
**参数:** **参数:**
...@@ -472,10 +411,6 @@ close(): void ...@@ -472,10 +411,6 @@ close(): void
关闭结果集。 关闭结果集。
> **说明:**
>
> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[@ohos.data.relationalStore.ResultSet.close](js-apis-data-relationalStore.md#close9)替代。
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
**示例:** **示例:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册