From 0d74695bd11a9c5286855853ccfa08c733cd0f99 Mon Sep 17 00:00:00 2001 From: yangliu Date: Mon, 14 Feb 2022 11:57:15 +0800 Subject: [PATCH 1/4] updata schema and filedNode interface statement Signed-off-by: yangliu --- api/@ohos.data.distributedData.d.ts | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/api/@ohos.data.distributedData.d.ts b/api/@ohos.data.distributedData.d.ts index efc483eb3d..5a66cb5055 100644 --- a/api/@ohos.data.distributedData.d.ts +++ b/api/@ohos.data.distributedData.d.ts @@ -637,6 +637,15 @@ declare namespace distributedData { * @permission N/A */ securityLevel?: SecurityLevel; + /** + * Indicates setting the database security level + * @since 7 + * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR + * @devices phone, tablet, tv, wearable, car + * @import N/A + * @permission N/A + */ + schema:Schema; } /** @@ -660,16 +669,6 @@ declare namespace distributedData { * @devices phone, tablet, tv, wearable, car */ constructor() - /** - * Obtains the schema in json format. - * - * @note N/A - * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car - * @returns Returns the schema in json format. - */ - toJsonString():string; } /** @@ -711,16 +710,6 @@ declare namespace distributedData { * @returns Returns true if the child node is successfully added to this {@code FieldNode}; returns false otherwise. */ appendChild(child: FieldNode): boolean; - /** - * Obtains the field name. - * - * @note N/A - * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car - * @returns Returns the field name. - */ - toJson(): string; } /** -- Gitee From 2424b3d560fe0f78880c1d15eb02588bf65319d4 Mon Sep 17 00:00:00 2001 From: yangliu Date: Mon, 14 Feb 2022 21:31:14 +0800 Subject: [PATCH 2/4] Modify the format Signed-off-by: yangliu --- api/@ohos.data.distributedData.d.ts | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/api/@ohos.data.distributedData.d.ts b/api/@ohos.data.distributedData.d.ts index 5a66cb5055..d5c000122b 100644 --- a/api/@ohos.data.distributedData.d.ts +++ b/api/@ohos.data.distributedData.d.ts @@ -639,13 +639,12 @@ declare namespace distributedData { securityLevel?: SecurityLevel; /** * Indicates setting the database security level - * @since 7 + * @since 9 * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car * @import N/A * @permission N/A */ - schema:Schema; + schema?:Schema; } /** @@ -660,15 +659,15 @@ declare namespace distributedData { * @permission N/A */ class Schema { - /** - * A constructor used to create a Schema instance. - * - * @note N/A - * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car - */ - constructor() + /** + * A constructor used to create a Schema instance. + * + * @note N/A + * @since 8 + * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR + * @devices phone, tablet, tv, wearable, car + */ + constructor() } /** -- Gitee From 79c3964c6e91c5a2d590c5eba969de4681dc05c1 Mon Sep 17 00:00:00 2001 From: yangliu Date: Mon, 14 Feb 2022 21:37:15 +0800 Subject: [PATCH 3/4] modify format --- api/@ohos.data.distributedData.d.ts | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/api/@ohos.data.distributedData.d.ts b/api/@ohos.data.distributedData.d.ts index d5c000122b..98359089e2 100644 --- a/api/@ohos.data.distributedData.d.ts +++ b/api/@ohos.data.distributedData.d.ts @@ -637,14 +637,14 @@ declare namespace distributedData { * @permission N/A */ securityLevel?: SecurityLevel; - /** + /** * Indicates setting the database security level * @since 9 * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR * @import N/A * @permission N/A */ - schema?:Schema; + schema?:Schema; } /** @@ -652,21 +652,20 @@ declare namespace distributedData { * * You can create Schema objects and put them in Options when creating or opening the database. * - * @since 8 + * @since 9 * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car * @import N/A * @permission N/A */ class Schema { - /** - * A constructor used to create a Schema instance. - * - * @note N/A - * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car - */ + /** + * A constructor used to create a Schema instance. + * + * @note N/A + * @since 8 + * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR + * @devices phone, tablet, tv, wearable, car + */ constructor() } @@ -689,7 +688,7 @@ declare namespace distributedData { /** * A constructor used to create a FieldNode instance with the specified field. * name Indicates the field node name. - * + * * @note N/A * @since 8 * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR -- Gitee From bd943c0df0771f1ca926777a46d64a1b23063a2a Mon Sep 17 00:00:00 2001 From: yangliu Date: Tue, 15 Feb 2022 15:20:39 +0800 Subject: [PATCH 4/4] =?UTF-8?q?update=20syscap=20=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=BA=BA=EF=BC=9A=E5=90=B4=E6=B0=B8=E5=AE=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yangliu --- api/@ohos.data.dataAbility.d.ts | 96 ++-- api/@ohos.data.distributedData.d.ts | 512 ++++++++-------------- api/@ohos.data.distributedDataObject.d.ts | 6 +- api/@ohos.data.rdb.d.ts | 285 +++++++----- api/@ohos.data.storage.d.ts | 12 +- api/data/rdb/resultSet.d.ts | 72 +-- 6 files changed, 429 insertions(+), 554 deletions(-) diff --git a/api/@ohos.data.dataAbility.d.ts b/api/@ohos.data.dataAbility.d.ts index a2bf9e1937..260afab404 100644 --- a/api/@ohos.data.dataAbility.d.ts +++ b/api/@ohos.data.dataAbility.d.ts @@ -19,8 +19,7 @@ import rdb from './@ohos.data.rdb'; * Provides predicates for implementing diverse query methods. * * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @import import data_dataAbility from '@ohos.data.dataAbility'; * @permission N/A */ @@ -30,8 +29,7 @@ declare namespace dataAbility { * * @note This method is similar to = of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param name Indicates the table name. * @param dataAbilityPredicates Indicates the dataAbility predicates. * @return Returns an RdbPredicates. @@ -42,8 +40,7 @@ declare namespace dataAbility { * Manages relational database configurations. * * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @import import data_dataAbility from '@ohos.data.dataAbility'; * @permission N/A */ @@ -54,8 +51,7 @@ declare namespace dataAbility { * * @note This method is similar to = of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name in the database table. * @param value Indicates the value to match with the DataAbilityPredicates. * @return Returns the DataAbilityPredicates that match the specified field. @@ -68,8 +64,7 @@ declare namespace dataAbility { * * @note This method is similar to != of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name in the database table. * @param value Indicates the value to match with the DataAbilityPredicates. * @return Returns the DataAbilityPredicates that match the specified field. @@ -81,8 +76,7 @@ declare namespace dataAbility { * * @note This method is similar to ( of the SQL statement and needs to be used together with endWrap(). * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @return Returns the DataAbilityPredicates with the left parenthesis. */ beginWrap(): DataAbilityPredicates; @@ -93,8 +87,7 @@ declare namespace dataAbility { * @note This method is similar to ) of the SQL statement and needs to be used together * with beginWrap(). * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @return Returns the DataAbilityPredicates with the right parenthesis. */ endWrap(): DataAbilityPredicates; @@ -104,8 +97,7 @@ declare namespace dataAbility { * * @note This method is similar to or of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @return Returns the DataAbilityPredicates with the or condition. */ or(): DataAbilityPredicates; @@ -115,8 +107,7 @@ declare namespace dataAbility { * * @note This method is similar to and of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @return Returns the DataAbilityPredicates with the and condition. */ and(): DataAbilityPredicates; @@ -127,8 +118,7 @@ declare namespace dataAbility { * * @note This method is similar to contains of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name in the database table. * @param value Indicates the value to match with the DataAbilityPredicates. * @return Returns the DataAbilityPredicates that match the specified field. @@ -141,8 +131,7 @@ declare namespace dataAbility { * * @note This method is similar to value% of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name in the database table. * @param value Indicates the value to match with the DataAbilityPredicates. * @return Returns the DataAbilityPredicates that match the specified field. @@ -155,8 +144,7 @@ declare namespace dataAbility { * * @note This method is similar to %value of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name in the database table. * @param value Indicates the value to match with the DataAbilityPredicates. * @return Returns the DataAbilityPredicates that match the specified field. @@ -168,8 +156,7 @@ declare namespace dataAbility { * * @note This method is similar to is null of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name in the database table. * @return Returns the DataAbilityPredicates that match the specified field. */ @@ -180,8 +167,7 @@ declare namespace dataAbility { * * @note This method is similar to is not null of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name in the database table. * @return Returns the DataAbilityPredicates that match the specified field. */ @@ -193,8 +179,7 @@ declare namespace dataAbility { * * @note This method is similar to like of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name in the database table. * @param value Indicates the value to match with the DataAbilityPredicates. The percent sign (%) in the value * is a wildcard (like * in a regular expression). @@ -208,8 +193,7 @@ declare namespace dataAbility { * * @note Different from like, the input parameters of this method are case-sensitive. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name in the database table. * @param value Indicates the value to match with DataAbilityPredicates. * @return Returns the SQL statement with the specified DataAbilityPredicates. @@ -221,8 +205,7 @@ declare namespace dataAbility { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name. * @param low Indicates the minimum value. * @param high Indicates the maximum value. @@ -236,8 +219,7 @@ declare namespace dataAbility { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name in the database table. * @param low Indicates the minimum value to match with DataAbilityPredicates}. * @param high Indicates the maximum value to match with DataAbilityPredicates}. @@ -250,8 +232,7 @@ declare namespace dataAbility { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name. * @param value Indicates the String field. * @return Returns the SQL query statement with the specified DataAbilityPredicates. @@ -263,8 +244,7 @@ declare namespace dataAbility { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name. * @param value Indicates the String field. * @return Returns the SQL query statement with the specified DataAbilityPredicates. @@ -276,8 +256,7 @@ declare namespace dataAbility { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name. * @param value Indicates the String field. * @return Returns the SQL query statement with the specified DataAbilityPredicates. @@ -289,8 +268,7 @@ declare namespace dataAbility { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name. * @param value Indicates the String field. * @return Returns the SQL query statement with the specified DataAbilityPredicates. @@ -303,8 +281,7 @@ declare namespace dataAbility { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name for sorting the return list. * @return Returns the SQL query statement with the specified DataAbilityPredicates. */ @@ -316,8 +293,7 @@ declare namespace dataAbility { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name for sorting the return list. * @return Returns the SQL query statement with the specified DataAbilityPredicates. */ @@ -328,8 +304,7 @@ declare namespace dataAbility { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @return Returns the SQL query statement with the specified DataAbilityPredicates. */ distinct(): DataAbilityPredicates; @@ -339,8 +314,7 @@ declare namespace dataAbility { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param value Indicates the max length of the return list. * @return Returns the SQL query statement with the specified DataAbilityPredicates. * @throws IllegalPredicateException Throws this exception if DataAbilityPredicates are added to a wrong position. @@ -352,8 +326,7 @@ declare namespace dataAbility { * * @note Use this method together with limit(int). * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param rowOffset Indicates the start position of the returned result. The value is a positive integer. * @return Returns the SQL query statement with the specified AbsPredicates. */ @@ -364,8 +337,7 @@ declare namespace dataAbility { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param fields Indicates the specified columns by which query results are grouped. * @return Returns the DataAbilityPredicates with the specified columns by which query results are grouped. */ @@ -376,8 +348,7 @@ declare namespace dataAbility { * * @note Before using this method, you need to create an index column. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param indexName Indicates the name of the index column. * @return Returns DataAbilityPredicates with the specified index column. */ @@ -389,8 +360,7 @@ declare namespace dataAbility { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name in the database table. * @param values Indicates the values to match with DataAbilityPredicates. * @return Returns DataAbilityPredicates that matches the specified field. @@ -403,8 +373,7 @@ declare namespace dataAbility { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @param field Indicates the column name in the database table. * @param values Indicates the values to match with DataAbilityPredicates. * @return Returns DataAbilityPredicates that matches the specified field. @@ -414,8 +383,7 @@ declare namespace dataAbility { /** * Indicates possible value types * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.DataShare.Core * @import import data_rdb from '@ohos.data.rdb'; * @permission N/A */ diff --git a/api/@ohos.data.distributedData.d.ts b/api/@ohos.data.distributedData.d.ts index 98359089e2..220ac01949 100644 --- a/api/@ohos.data.distributedData.d.ts +++ b/api/@ohos.data.distributedData.d.ts @@ -17,8 +17,7 @@ import { AsyncCallback, Callback } from './basic'; /** * Providers interfaces to creat a {@link KVManager} istances. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -28,8 +27,7 @@ declare namespace distributedData { * Provides configuration information for {@link KVManager} instances, * including the caller's package name and distributed network type. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -37,8 +35,7 @@ declare namespace distributedData { /** * Indicates the user information * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -47,8 +44,7 @@ declare namespace distributedData { /** * Indicates the bundleName * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -62,8 +58,7 @@ declare namespace distributedData { * and checking whether two users are the same. * * @since 7 - * @SYscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -71,8 +66,7 @@ declare namespace distributedData { /** * Indicates the user ID to set * @since 7 - * @SYscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -81,8 +75,7 @@ declare namespace distributedData { /** * Indicates the user type to set * @since 7 - * @SYscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -93,8 +86,7 @@ declare namespace distributedData { * Enumerates user types. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -102,8 +94,7 @@ declare namespace distributedData { /** * Indicates a user that logs in to different devices using the same account. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -113,8 +104,7 @@ declare namespace distributedData { /** * KVStore constants * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -122,8 +112,7 @@ declare namespace distributedData { /** * max key length. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -132,8 +121,7 @@ declare namespace distributedData { /** * max value length. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -142,8 +130,7 @@ declare namespace distributedData { /** * max device coordinate key length. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -152,8 +139,7 @@ declare namespace distributedData { /** * max store id length. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -162,8 +148,7 @@ declare namespace distributedData { /** * max query length. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -172,8 +157,7 @@ declare namespace distributedData { /** * max batch operation size. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -186,8 +170,7 @@ declare namespace distributedData { *

{@code ValueType} is obtained based on the value. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -195,8 +178,7 @@ declare namespace distributedData { /** * Indicates that the value type is string. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -205,8 +187,7 @@ declare namespace distributedData { /** * Indicates that the value type is int. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -215,8 +196,7 @@ declare namespace distributedData { /** * Indicates that the value type is float. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -225,8 +205,7 @@ declare namespace distributedData { /** * Indicates that the value type is byte array. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A * */ @@ -235,8 +214,7 @@ declare namespace distributedData { /** * Indicates that the value type is boolean. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A * */ @@ -245,8 +223,7 @@ declare namespace distributedData { /** * Indicates that the value type is double. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -257,8 +234,7 @@ declare namespace distributedData { * Obtains {@code Value} objects stored in a {@link KVStore} database. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -266,8 +242,7 @@ declare namespace distributedData { /** * Indicates value type * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A * @see ValueType @@ -278,8 +253,7 @@ declare namespace distributedData { /** * Indicates value * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -290,8 +264,7 @@ declare namespace distributedData { * Provides key-value pairs stored in the distributed database. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -299,8 +272,7 @@ declare namespace distributedData { /** * Indicates key * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -308,8 +280,7 @@ declare namespace distributedData { /** * Indicates value * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -323,8 +294,7 @@ declare namespace distributedData { * from the parameters in callback methods upon data insertion, update, or deletion. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -332,8 +302,7 @@ declare namespace distributedData { /** * Indicates data addition records. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -341,8 +310,7 @@ declare namespace distributedData { /** * Indicates data update records. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -350,8 +318,7 @@ declare namespace distributedData { /** * Indicates data deletion records. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -359,8 +326,7 @@ declare namespace distributedData { /** * Indicates from device id. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -371,8 +337,7 @@ declare namespace distributedData { * Indicates the database synchronization mode. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -380,8 +345,7 @@ declare namespace distributedData { /** * Indicates that data is only pulled from the remote end. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -389,8 +353,7 @@ declare namespace distributedData { /** * Indicates that data is only pushed from the local end. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -398,8 +361,7 @@ declare namespace distributedData { /** * Indicates that data is pushed from the local end, and then pulled from the remote end. * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -410,8 +372,7 @@ declare namespace distributedData { * Describes the subscription type. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -419,8 +380,7 @@ declare namespace distributedData { /** * Subscription to local data changes * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -429,8 +389,7 @@ declare namespace distributedData { /** * Subscription to remote data changes * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -439,8 +398,7 @@ declare namespace distributedData { /** * Subscription to both local and remote data changes * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -451,8 +409,7 @@ declare namespace distributedData { * Describes the {@code KVStore} type. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -460,8 +417,7 @@ declare namespace distributedData { /** * Device-collaborated database, as specified by {@code DeviceKVStore} * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -470,8 +426,7 @@ declare namespace distributedData { /** * Single-version database, as specified by {@code SingleKVStore} * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -480,8 +435,7 @@ declare namespace distributedData { /** * Multi-version database, as specified by {@code MultiKVStore} * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -492,8 +446,7 @@ declare namespace distributedData { * Describes the {@code KVStore} type. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -502,8 +455,7 @@ declare namespace distributedData { * NO_LEVEL: mains not set the security level. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -514,8 +466,7 @@ declare namespace distributedData { * There is no impact even if the data is leaked. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -526,8 +477,7 @@ declare namespace distributedData { * There are some low impact, when the data is leaked. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -538,8 +488,7 @@ declare namespace distributedData { * There are some major impact, when the data is leaked. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -550,8 +499,7 @@ declare namespace distributedData { * There are some severity impact, when the data is leaked. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -562,8 +510,7 @@ declare namespace distributedData { * There are some critical impact, when the data is leaked. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -577,8 +524,7 @@ declare namespace distributedData { * whether to encrypt the database, and the database type. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -586,8 +532,7 @@ declare namespace distributedData { /** * Indicates whether to createa database when the database file does not exist * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -595,8 +540,7 @@ declare namespace distributedData { /** * Indicates setting whether database files are encrypted * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -604,8 +548,7 @@ declare namespace distributedData { /** * Indicates setting whether to back up database files * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -613,8 +556,7 @@ declare namespace distributedData { /** * Indicates setting whether database files are automatically synchronized * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -622,8 +564,7 @@ declare namespace distributedData { /** * Indicates setting the databse type * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -631,20 +572,11 @@ declare namespace distributedData { /** * Indicates setting the database security level * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ securityLevel?: SecurityLevel; - /** - * Indicates setting the database security level - * @since 9 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @import N/A - * @permission N/A - */ - schema?:Schema; } /** @@ -652,21 +584,29 @@ declare namespace distributedData { * * You can create Schema objects and put them in Options when creating or opening the database. * - * @since 9 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR + * @since 8 + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ class Schema { /** * A constructor used to create a Schema instance. - * - * @note N/A - * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car - */ - constructor() + * + * @note N/A + * @since 8 + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore + */ + constructor() + /** + * Obtains the schema in json format. + * + * @note N/A + * @since 8 + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore + * @returns Returns the schema in json format. + */ + toJsonString():string; } /** @@ -679,8 +619,7 @@ declare namespace distributedData { *

The leaf node must have a value; the non-leaf node must have a child {@code FieldNode}. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -688,11 +627,10 @@ declare namespace distributedData { /** * A constructor used to create a FieldNode instance with the specified field. * name Indicates the field node name. - * + * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore */ constructor(name: string) /** @@ -702,12 +640,20 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param child The field node to append. * @returns Returns true if the child node is successfully added to this {@code FieldNode}; returns false otherwise. */ appendChild(child: FieldNode): boolean; + /** + * Obtains the field name. + * + * @note N/A + * @since 8 + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore + * @returns Returns the field name. + */ + toJson(): string; } /** @@ -717,8 +663,7 @@ declare namespace distributedData { * methods for moving the data read position in the result set. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -728,8 +673,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @returns Returns the number of lines. */ getCount(): number; @@ -738,8 +682,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @returns Returns the current read position. The read position starts with 0. */ getPosition(): number; @@ -749,8 +692,7 @@ declare namespace distributedData { *

If the result set is empty, false is returned. * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @returns Returns true if the operation succeeds; return false otherwise. */ moveToFirst(): boolean; @@ -760,8 +702,7 @@ declare namespace distributedData { *

If the result set is empty, false is returned. * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @returns Returns true if the operation succeeds; return false otherwise. */ moveToLast(): boolean; @@ -771,8 +712,7 @@ declare namespace distributedData { *

If the result set is empty or the data in the last line is being read, false is returned. * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @returns Returns true if the operation succeeds; return false otherwise. */ moveToNext(): boolean; @@ -782,8 +722,7 @@ declare namespace distributedData { *

If the result set is empty or the data in the first line is being read, false is returned. * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @returns Returns true if the operation succeeds; return false otherwise. */ moveToPrevious(): boolean; @@ -792,8 +731,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param offset Indicates the relative offset to the current position. Anegative offset indicates moving backwards, and a * positive offset indicates moving forewards. Forexample, if the current position is entry 1 and thisoffset is 2, * the destination position will be entry 3; ifthe current position is entry 3 and this offset is -2, @@ -807,8 +745,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param position Indicates the absolute position. * @returns Returns true if the operation succeeds; return false otherwise. */ @@ -818,8 +755,8 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore + * @returns Returns true if the read position is the first line; returns false otherwise. */ isFirst(): boolean; @@ -827,8 +764,7 @@ declare namespace distributedData { * Checks whether the read position is the last line. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @returns Returns true if the read position is the last line; returns false otherwise. */ isLast(): boolean; @@ -836,8 +772,7 @@ declare namespace distributedData { * Checks whether the read position is before the last line. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @returns Returns true if the read position is before the first line; returns false otherwise. */ isBeforeFirst(): boolean; @@ -845,8 +780,7 @@ declare namespace distributedData { * Checks whether the read position is after the last line. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @returns Returns true if the read position is after the last line; returns false otherwise. */ isAfterLast(): boolean; @@ -854,8 +788,7 @@ declare namespace distributedData { * Obtains a key-value pair. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @returns Returns a key-value pair. */ getEntry(): Entry; @@ -870,8 +803,7 @@ declare namespace distributedData { *

This class also provides methods for adding predicates to the {@code Query} instance. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -881,16 +813,14 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore */ constructor() /** * Resets this {@code Query} object. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @returns Returns the reset {@code Query} object. */ @@ -899,8 +829,7 @@ declare namespace distributedData { * Constructs a {@code Query} object to query entries with the specified field whose value is equal to the specified long value. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param field Indicates the field, which must start with $. and cannot contain ^. * @param value IIndicates the long value. @@ -912,8 +841,7 @@ declare namespace distributedData { * Constructs a {@code Query} object to query entries with the specified field whose value is not equal to the specified int value. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param field Indicates the field, which must start with $. and cannot contain ^. * @param value Indicates the int value. @@ -926,8 +854,7 @@ declare namespace distributedData { * specified int value. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param field Indicates the field, which must start with $. and cannot contain ^. * @param value Indicates the int value. @@ -939,8 +866,7 @@ declare namespace distributedData { * Constructs a {@code Query} object to query entries with the specified field whose value is less than the specified int value. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param field Indicates the field, which must start with $. and cannot contain ^. * @param value Indicates the int value. @@ -952,8 +878,7 @@ declare namespace distributedData { * Constructs a {@code Query} object to query entries with the specified field whose value is greater than or equal to the * specified int value. * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param field Indicates the field, which must start with $. and cannot contain ^. * @param value Indicates the int value. @@ -966,8 +891,7 @@ declare namespace distributedData { * specified int value. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param field Indicates the field, which must start with $. and cannot contain ^. * @param value Indicates the int value. @@ -979,8 +903,7 @@ declare namespace distributedData { * Constructs a {@code Query} object to query entries with the specified field whose value is null. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param field Indicates the field, which must start with $. and cannot contain ^. * @returns Returns the {@coed Query} object. @@ -991,8 +914,7 @@ declare namespace distributedData { * Constructs a {@code Query} object to query entries with the specified field whose value is within the specified int value list. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param field Indicates the field, which must start with $. and cannot contain ^. * @param valueList Indicates the int value list. @@ -1003,8 +925,8 @@ declare namespace distributedData { /** * Constructs a {@code Query} object to query entries with the specified field whose value is within the specified string value list. * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore + * @import N/A * @param field Indicates the field, which must start with $. and cannot contain ^. * @param valueList Indicates the string value list. @@ -1015,8 +937,7 @@ declare namespace distributedData { /** * Constructs a {@code Query} object to query entries with the specified field whose value is not within the specified int value list. * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param field Indicates the field, which must start with $. and cannot contain ^. * @param valueList Indicates the int value list. @@ -1028,8 +949,7 @@ declare namespace distributedData { * Constructs a {@code Query} object to query entries with the specified field whose value is not within the specified string value list. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param field Indicates the field, which must start with $. and cannot contain ^. * @param valueList Indicates the string value list. @@ -1041,8 +961,7 @@ declare namespace distributedData { * Constructs a {@code Query} object to query entries with the specified field whose value is similar to the specified string value. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param field Indicates the field, which must start with $. and cannot contain ^. * @param value Indicates the string value. @@ -1054,8 +973,7 @@ declare namespace distributedData { * Constructs a {@code Query} object to query entries with the specified field whose value is not similar to the specified string value. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param field Indicates the field, which must start with $. and cannot contain ^. * @param value Indicates the string value. @@ -1069,8 +987,7 @@ declare namespace distributedData { *

Multiple predicates should be connected using the and or or condition. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @returns Returns the {@coed Query} object. */ @@ -1081,8 +998,7 @@ declare namespace distributedData { *

Multiple predicates should be connected using the and or or condition. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @returns Returns the {@coed Query} object. */ @@ -1091,8 +1007,7 @@ declare namespace distributedData { * Constructs a {@code Query} object to sort the query results in ascending order. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param field Indicates the field, which must start with $. and cannot contain ^. * @returns Returns the {@coed Query} object. @@ -1103,8 +1018,7 @@ declare namespace distributedData { * Constructs a {@code Query} object to sort the query results in descending order. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param field Indicates the field, which must start with $. and cannot contain ^. * @returns Returns the {@coed Query} object. @@ -1115,8 +1029,7 @@ declare namespace distributedData { * Constructs a {@code Query} object to specify the number of results and the start position. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param total Indicates the number of results. * @param offset Indicates the start position. @@ -1127,8 +1040,7 @@ declare namespace distributedData { * Creates a {@code query} condition with a specified field that is not null. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param field Indicates the specified field. * @returns Returns the {@coed Query} object. @@ -1142,8 +1054,7 @@ declare namespace distributedData { * whole to combine with other query conditions. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @returns Returns the {@coed Query} object. */ @@ -1155,8 +1066,7 @@ declare namespace distributedData { * whole to combine with other query conditions. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @returns Returns the {@coed Query} object. */ @@ -1165,8 +1075,7 @@ declare namespace distributedData { * Creates a query condition with a specified key prefix. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param prefix Indicates the specified key prefix. * @returns Returns the {@coed Query} object. @@ -1177,8 +1086,7 @@ declare namespace distributedData { * Sets a specified index that will be preferentially used for query. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param index Indicates the index to set. * @returns Returns the {@coed Query} object. @@ -1189,8 +1097,7 @@ declare namespace distributedData { * Add device ID key prefix.Used by {@code DeviceKVStore}. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param deviceId Specify device id to query from. * @return Returns the {@code Query} object with device ID prefix added. @@ -1204,8 +1111,7 @@ declare namespace distributedData { * The String length should be no longer than 500kb. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @return String representing this {@code Query}. */ @@ -1221,8 +1127,7 @@ declare namespace distributedData { * including {@code SingleKVStore}. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A * @version 1 @@ -1235,8 +1140,7 @@ declare namespace distributedData { * * @note N/A * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param key Indicates the key. The length must be less than {@code MAX_KEY_LENGTH}. * Spaces before and after the key will be cleared. * @param value Indicates the string value, which must be less than 4 MB as a UTF-8 byte array. @@ -1252,8 +1156,7 @@ declare namespace distributedData { * * @note N/A * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param key Indicates the key. The length must be less than {@code MAX_KEY_LENGTH}. * Spaces before and after the key will be cleared. * @throws Throws this exception if any of the following errors @@ -1269,8 +1172,7 @@ declare namespace distributedData { * * @note N/A * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param type Indicates the subscription type, which is defined in {@code SubscribeType}. * @param observer Indicates the observer of data change events in the distributed database. * @throws Throws this exception if any of the following errors @@ -1284,8 +1186,7 @@ declare namespace distributedData { * * @note N/A * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @throws Throws this exception if any of the following errors * occurs: {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, * {@code DB_ERROR}, and {@code STORE_ALREADY_SUBSCRIBE}. @@ -1297,8 +1198,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param observer Indicates the data change observer registered by {#subscribe(SubscribeType, KvStoreObserver)}. * @throws Throws this exception if any of the following errors * occurs: {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, @@ -1311,8 +1211,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param entries Indicates the key-value pairs to be inserted in batches. * @throws Throws this exception if a database error occurs. */ @@ -1324,8 +1223,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param keys Indicates the key-value pairs to be deleted in batches. * @throws Throws this exception if a database error occurs. */ @@ -1339,8 +1237,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @throws Throws this exception if a database error occurs. */ startTransaction(callback: AsyncCallback): void; @@ -1351,8 +1248,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param callback * @throws Throws this exception if a database error occurs. */ @@ -1364,8 +1260,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @throws Throws this exception if a database error occurs. */ rollback(callback: AsyncCallback): void; @@ -1376,8 +1271,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param enabled Specifies whether to enable synchronization. The value true means to enable * synchronization, and false means the opposite. * @throws Throws this exception if an internal service error occurs. @@ -1392,8 +1286,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param localLabels Indicates the synchronization labels of the local device. * @param remoteSupportLabels Indicates the labels of the devices with which data will be synchronized. * @throws Throws this exception if an internal service error occurs. @@ -1413,8 +1306,7 @@ declare namespace distributedData { * synchronous transactions, or data search using snapshots. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A * @version 1 @@ -1424,8 +1316,7 @@ declare namespace distributedData { * Obtains the {@code String} value of a specified key. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param key Indicates the key of the boolean value to be queried. * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT}, @@ -1438,8 +1329,7 @@ declare namespace distributedData { * Obtains all key-value pairs that match a specified key prefix. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param keyPrefix Indicates the key prefix to match. * @returns Returns the list of all key-value pairs that match the specified key prefix. @@ -1453,8 +1343,7 @@ declare namespace distributedData { * Obtains the list of key-value pairs matching the specified {@code Query} object. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param query Indicates the {@code Query} object. * @returns Returns the list of key-value pairs matching the specified {@code Query} object. @@ -1472,8 +1361,7 @@ declare namespace distributedData { * in a timely manner. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param keyPrefix Indicates the key prefix to match. * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT}, @@ -1486,8 +1374,7 @@ declare namespace distributedData { * Obtains the {@code KvStoreResultSet} object matching the specified {@code Query} object. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param query Indicates the {@code Query} object. * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT}, @@ -1500,8 +1387,7 @@ declare namespace distributedData { * Closes a {@code KvStoreResultSet} object returned by getResultSet. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param resultSet Indicates the {@code KvStoreResultSet} object to close. * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT}, @@ -1514,8 +1400,7 @@ declare namespace distributedData { * Obtains the number of results matching the specified {@code Query} object. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @param query Indicates the {@code Query} object. * @returns Returns the number of results matching the specified {@code Query} object. @@ -1529,8 +1414,7 @@ declare namespace distributedData { * void removeDeviceData​({@link String} deviceId) throws {@link KvStoreException} * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A */ removeDeviceData(deviceId: string, callback: AsyncCallback): void; @@ -1541,8 +1425,7 @@ declare namespace distributedData { * * @note N/A * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param deviceIdList Indicates the list of devices to which to synchronize the database. * @param mode Indicates the synchronization mode. The value can be {@code PUSH}, {@code PULL}, or {@code PUSH_PULL}. * @param allowedDelayMs Indicates the delay allowed for the synchronization, in milliseconds. @@ -1558,8 +1441,7 @@ declare namespace distributedData { *

Sync result is returned through asynchronous callback. * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param syncCallback Indicates the callback used to send the synchronization result to the caller. * @throws Throws this exception if no {@code SingleKvStore} database is available. */ @@ -1569,8 +1451,7 @@ declare namespace distributedData { * UnRegister Synchronizes SingleKvStore databases callback. * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @throws Throws this exception if no {@code SingleKvStore} database is available. */ off(event: 'syncComplete', syncCallback?: Callback>): void; @@ -1581,8 +1462,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param defaultAllowedDelayMs Indicates the default delay allowed for the database synchronization, in milliseconds. * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT}, * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}. @@ -1595,8 +1475,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @returns SecurityLevel {@code SecurityLevel} the security level of the database. * @throws Throws this exception if any of the following errors occurs:{@code SERVER_UNAVAILABLE}, * {@code IPC_ERROR}, and {@code DB_ERROR}. @@ -1614,8 +1493,7 @@ declare namespace distributedData { * into the database, the system automatically adds the ID of the device running the application to the key. * * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A */ @@ -1625,8 +1503,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param deviceId Indicates the device to be queried. * @param key Indicates the key of the value to be queried. * @return Returns the value matching the given criteria. @@ -1641,8 +1518,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param deviceId Identifies the device whose data is to be queried. * @param keyPrefix Indicates the key prefix to match. * @returns Returns the list of all key-value pairs meeting the given criteria. @@ -1657,8 +1533,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param query Indicates the {@code Query} object. * @returns Returns the list of key-value pairs matching the specified {@code Query} object. * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT}, @@ -1672,8 +1547,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param deviceId Indicates the ID of the device to which the key-value pairs belong. * @param query Indicates the {@code Query} object. * @returns Returns the list of key-value pairs matching the specified {@code Query} object. @@ -1691,8 +1565,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param deviceId Identifies the device whose data is to be queried. * @param keyPrefix Indicates the key prefix to match. * @returns Returns the {@code KvStoreResultSet} objects. @@ -1707,8 +1580,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param query Indicates the {@code Query} object. * @returns Returns the {@code KvStoreResultSet} object matching the specified {@code Query} object. * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT}, @@ -1722,8 +1594,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param deviceId Indicates the ID of the device to which the {@code KvStoreResultSet} object belongs. * @param query Indicates the {@code Query} object. * @returns Returns the {@code KvStoreResultSet} object matching the specified {@code Query} object. @@ -1736,8 +1607,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param resultSet Indicates the {@code KvStoreResultSet} object to close. * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT}, * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}. @@ -1750,8 +1620,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param query Indicates the {@code Query} object. * @returns Returns the number of results matching the specified {@code Query} object. * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT}, @@ -1765,8 +1634,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param deviceId Indicates the ID of the device to which the results belong. * @param query Indicates the {@code Query} object. * @returns Returns the number of results matching the specified {@code Query} object. @@ -1781,8 +1649,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param deviceId Identifies the device whose data is to be removed. The value cannot be the current device ID. * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT}, * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}. @@ -1796,8 +1663,7 @@ declare namespace distributedData { *

This method returns immediately and sync result will be returned through asynchronous callback. * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param deviceIdList Indicates the list of IDs of devices whose * {@code DeviceKVStore} databases are to be synchronized. * @param mode Indicates the synchronization mode, {@code PUSH}, {@code PULL}, or @@ -1812,8 +1678,7 @@ declare namespace distributedData { *

Sync result is returned through asynchronous callback. * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param syncCallback Indicates the callback used to send the synchronization result to the caller. * @throws Throws this exception if no DeviceKVStore database is available. */ @@ -1823,8 +1688,7 @@ declare namespace distributedData { * UnRegister Synchronizes DeviceKVStore databases callback. * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @throws Throws this exception if no DeviceKVStore database is available. */ off(event: 'syncComplete', syncCallback?: Callback>): void; @@ -1838,8 +1702,7 @@ declare namespace distributedData { * * @note N/A * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param config Indicates the {@link KVStore} configuration information, * including the user information and package name. * @return Returns the {@code KVManager} instance. @@ -1852,8 +1715,7 @@ declare namespace distributedData { * Provides interfaces to manage a {@code KVStore} database, including obtaining, closing, and deleting the {@code KVStore}. * * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @import N/A * @permission N/A * @version 1 @@ -1864,8 +1726,7 @@ declare namespace distributedData { * * @note N/A * @since 7 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param options Indicates the options used for creating and obtaining the {@code KVStore} database, * including {@code isCreateIfMissing}, {@code isEncrypt}, and {@code KVStoreType}. * @param storeId Identifies the {@code KVStore} database. @@ -1889,8 +1750,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param kvStore Indicates the {@code KvStore} database to close. * @throws Throws this exception if any of the following errors * occurs:{@code INVALID_ARGUMENT}, {@code ERVER_UNAVAILABLE}, @@ -1909,8 +1769,7 @@ declare namespace distributedData { * lost. * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param storeId Identifies the {@code KvStore} database to delete. * @throws Throws this exception if any of the following errors * occurs: {@code INVALID_ARGUMENT}, @@ -1926,8 +1785,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @returns Returns the storeId of all created {@code KvStore} databases. * @throws Throws this exception if any of the following errors * occurs: {@code SERVER_UNAVAILABLE}, {@code DB_ERROR}, @@ -1941,8 +1799,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param deathCallback device change callback {@code DeviceChangeCallback} * @throws exception maybe occurs. */ @@ -1953,8 +1810,7 @@ declare namespace distributedData { * * @note N/A * @since 8 - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @param deathCallback device change callback {@code DeviceChangeCallback} which has been registered. * @throws exception maybe occurs. */ diff --git a/api/@ohos.data.distributedDataObject.d.ts b/api/@ohos.data.distributedDataObject.d.ts index aa7f594fc7..c910d13899 100644 --- a/api/@ohos.data.distributedDataObject.d.ts +++ b/api/@ohos.data.distributedDataObject.d.ts @@ -19,8 +19,7 @@ import {AsyncCallback, Callback} from './basic'; * * @name distributedDataObject * @since 8 - * @sysCap - * @devices phone + * @syscap SystemCapability.DistributedDataManager.DataObject.Core */ declare namespace distributedDataObject { /** @@ -43,8 +42,7 @@ declare namespace distributedDataObject { /** * Object create by {@link createDistributedObject}. * - * @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR - * @devices phone + * @syscap SystemCapability.DistributedDataManager.DataObject.Core * @since 8 */ interface DistributedObject { diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index dfbcea11da..8960cd687d 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -12,15 +12,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { AsyncCallback } from './basic'; +import {AsyncCallback, Callback} from './basic'; import { ResultSet } from './data/rdb/resultSet'; +import Context from "./application/Context"; /** * Provides methods for rdbStore create and delete. * * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @import import data_rdb from '@ohos.data.rdb'; * @permission N/A */ @@ -32,29 +32,78 @@ declare namespace rdb { * to obtain a rdb store. * * @note N/A - * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @since 8 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param context Indicates the context of application or capability. * @param config Indicates the configuration of the database related to this RDB store. The configurations include * the database path, storage mode, and whether the database is read-only. * @param version Indicates the database version for upgrade or downgrade. * @return Returns an RDB store {@link ohos.data.rdb.RdbStore}. */ - function getRdbStore(config: StoreConfig, version: number, callback: AsyncCallback): void; - function getRdbStore(config: StoreConfig, version: number): Promise; + function getRdbStore(context: Context, config: StoreConfig, version: number, callback: AsyncCallback): void; + function getRdbStore(context: Context, config: StoreConfig, version: number): Promise; /** * Deletes the database with a specified name. * * @note N/A - * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @since 8 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param context Indicates the context of application or capability. * @param name Indicates the database name. * @return Returns true if the database is deleted; returns false otherwise. */ - function deleteRdbStore(name: string, callback: AsyncCallback): void; - function deleteRdbStore(name: string): Promise; + function deleteRdbStore(context: Context, name: string, callback: AsyncCallback): void; + function deleteRdbStore(context: Context, name: string): Promise; + + /** + * Indicates the database synchronization mode. + * + * @since 8 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @import N/A + * @permission N/A + */ + enum SyncMode { + /** + * Indicates the data is pushed to remote device from local device. + * + * @since 8 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @import N/A + * @permission N/A + */ + SYNC_MODE_PUSH = 0, + + /** + * Indicates the data is pulled from remote device to local device. + * + * @since 8 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @import N/A + * @permission N/A + */ + SYNC_MODE_PULL = 1, + } + + /** + * Describes the subscription type. + * + * @since 8 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @import N/A + * @permission N/A + */ + enum SubscribeType { + /** + * Subscription to remote data changes + * @since 8 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @import N/A + * @permission N/A + */ + SUBSCRIBE_TYPE_REMOTE = 0, + } /** * Provides methods for managing the relational database (RDB). @@ -62,8 +111,7 @@ declare namespace rdb { * This class provides methods for creating, querying, updating, and deleting RDBs. * * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @import import data_rdb from '@ohos.data.rdb'; * @permission N/A */ @@ -73,8 +121,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param name Indicates the target table. * @param values Indicates the row of data to be inserted into the table. * @return Returns the row ID if the operation is successful; returns -1 otherwise. @@ -87,8 +134,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param values Indicates the row of data to be updated in the database.The key-value pairs are associated with column names of the database table. * @param rdbPredicates Indicates the specified update condition by the instance object of RdbPredicates. * @return Returns the number of affected rows. @@ -101,8 +147,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param rdbPredicates Indicates the specified delete condition by the instance object of RdbPredicates. * @return Returns the number of affected rows. */ @@ -114,8 +159,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param rdbPredicates Indicates the specified query condition by the instance object of RdbPredicates. * @param columns Indicates the columns to query. If the value is null, the query applies to all columns. * @return Returns a ResultSet object if the operation is successful; @@ -128,8 +172,7 @@ declare namespace rdb { * * @note N/A * @since 8 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param sql Indicates the SQL statement to execute. * @param bindArgs Indicates the values of the parameters in the SQL statement. The values are strings. * @return Returns a ResultSet object if the operation is successful; @@ -142,8 +185,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param sql Indicates the SQL statement to execute. * @param bindArgs Indicates the values of the parameters in the SQL statement. The values are strings. */ @@ -155,8 +197,7 @@ declare namespace rdb { * * @note N/A * @since 8 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param newEncryptKey the encrypted key is uint8 form in a vector. */ changeEncryptKey(newEncryptKey:Uint8Array, callback: AsyncCallback):void; @@ -167,8 +208,7 @@ declare namespace rdb { * * @note N/A * @since 8 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ beginTransaction(callback: AsyncCallback):void; beginTransaction(): Promise; @@ -178,8 +218,7 @@ declare namespace rdb { * * @note N/A * @since 8 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ commit(callback: AsyncCallback):void; commit(): Promise; @@ -189,8 +228,7 @@ declare namespace rdb { * * @note N/A * @since 8 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ rollBack(callback: AsyncCallback):void; rollBack(): Promise; @@ -200,20 +238,70 @@ declare namespace rdb { * * @note N/A * @since 8 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param tables the tables name you want to set - * @devices phone, tablet, tv, wearable, car */ setDistributedTables(tables: Array, callback: AsyncCallback): void; setDistributedTables(tables: Array): Promise; + + /** + * Obtain distributed table name of specified remote device according to local table name. + * When query remote device database, distributed table name is needed. + * + * @note N/A + * @since 8 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param device Indicates the remote device. + * @param table Indicates the local table name. + * @return the distributed table name. + + */ + obtainDistributedTableName(device: string, table: string, callback: AsyncCallback): void; + obtainDistributedTableName(device: string, table: string): Promise; + + /** + * Sync data between devices + * + * @note N/A + * @since 8 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param mode Indicates the synchronization mode. The value can be PUSH, PULL. + * @param predicates Constraint synchronized data and devices. + * @param callback Indicates the callback used to send the synchronization result to the caller. + + */ + sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback>): void; + sync(mode: SyncMode, predicates: RdbPredicates): Promise>; + + /** + * Registers a observer for the database. When data in the distributed database changes, + * the callback will be invoked. + * + * @note N/A + * @since 8 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param type Indicates the subscription type, which is defined in {@code SubscribeType}. + * @param observer Indicates the observer of data change events in the distributed database. + */ + on(event: 'dataChange', type: SubscribeType, observer: Callback>): void; + + /** + * Remove specified observer of specified type from the database. + * + * @note N/A + * @since 8 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param type Indicates the subscription type, which is defined in {@code SubscribeType}. + * @param observer Indicates the data change observer already registered . + */ + off(event:'dataChange', type: SubscribeType, observer: Callback>): void; } /** * Indicates possible value types * * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @import import data_rdb from '@ohos.data.rdb'; * @permission N/A */ @@ -223,8 +311,7 @@ declare namespace rdb { * Values in buckets are stored in key-value pairs * * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @import import data_rdb from '@ohos.data.rdb'; * @permission N/A */ @@ -236,8 +323,7 @@ declare namespace rdb { * Manages relational database configurations. * * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @import import data_rdb from '@ohos.data.rdb'; * @permission N/A */ @@ -247,7 +333,7 @@ declare namespace rdb { * Indicates the encryptKey of the database file * * @since 8 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ encryptKey: Uint8Array; } @@ -256,8 +342,7 @@ declare namespace rdb { * Manages relational database configurations. * * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @import import data_rdb from '@ohos.data.rdb'; * @permission N/A */ @@ -268,19 +353,38 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ constructor(name: string) + /** + * Specify remote devices when syncing distributed database. + * + * @note When query database, this function should not be called. + * @since 8 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param devices Indicates specified remote devices. + * @return Returns the RdbPredicates self. + */ + inDevices(devices: Array): RdbPredicates; + + /** + * Specify all remote devices which connect to local device when syncing distributed database. + * + * @note When query database, this function should not be called. + * @since 8 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @return Returns the RdbPredicates self. + */ + inAllDevices(): RdbPredicates; + /** * Configures the RdbPredicates to match the field whose data type is ValueType and value is equal * to a specified value. * * @note This method is similar to = of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name in the database table. * @param value Indicates the value to match with the RdbPredicates. * @return Returns the RdbPredicates that match the specified field. @@ -293,8 +397,7 @@ declare namespace rdb { * * @note This method is similar to != of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name in the database table. * @param value Indicates the value to match with the RdbPredicates. * @return Returns the RdbPredicates that match the specified field. @@ -306,8 +409,7 @@ declare namespace rdb { * * @note This method is similar to ( of the SQL statement and needs to be used together with endWrap(). * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @return Returns the RdbPredicates with the left parenthesis. */ beginWrap(): RdbPredicates; @@ -318,8 +420,7 @@ declare namespace rdb { * @note This method is similar to ) of the SQL statement and needs to be used together * with beginWrap(). * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @return Returns the RdbPredicates with the right parenthesis. */ endWrap(): RdbPredicates; @@ -329,8 +430,7 @@ declare namespace rdb { * * @note This method is similar to or of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @return Returns the RdbPredicates with the or condition. */ or(): RdbPredicates; @@ -340,8 +440,7 @@ declare namespace rdb { * * @note This method is similar to and of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @return Returns the RdbPredicates with the and condition. */ and(): RdbPredicates; @@ -352,8 +451,7 @@ declare namespace rdb { * * @note This method is similar to contains of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name in the database table. * @param value Indicates the value to match with the RdbPredicates. * @return Returns the RdbPredicates that match the specified field. @@ -366,8 +464,7 @@ declare namespace rdb { * * @note This method is similar to value% of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name in the database table. * @param value Indicates the value to match with the RdbPredicates. * @return Returns the RdbPredicates that match the specified field. @@ -380,8 +477,7 @@ declare namespace rdb { * * @note This method is similar to %value of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name in the database table. * @param value Indicates the value to match with the RdbPredicates. * @return Returns the RdbPredicates that match the specified field. @@ -393,8 +489,7 @@ declare namespace rdb { * * @note This method is similar to is null of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name in the database table. * @return Returns the RdbPredicates that match the specified field. */ @@ -405,8 +500,7 @@ declare namespace rdb { * * @note This method is similar to is not null of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name in the database table. * @return Returns the RdbPredicates that match the specified field. */ @@ -418,8 +512,7 @@ declare namespace rdb { * * @note This method is similar to like of the SQL statement. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name in the database table. * @param value Indicates the value to match with the RdbPredicates. The percent sign (%) in the value * is a wildcard (like * in a regular expression). @@ -433,8 +526,7 @@ declare namespace rdb { * * @note Different from like, the input parameters of this method are case-sensitive. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name in the database table. * @param value Indicates the value to match with RdbPredicates. * @return Returns the SQL statement with the specified RdbPredicates. @@ -446,8 +538,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name. * @param low Indicates the minimum value. * @param high Indicates the maximum value. @@ -461,8 +552,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name in the database table. * @param low Indicates the minimum value to match with DataAbilityPredicates. * @param high Indicates the maximum value to match with DataAbilityPredicates. @@ -475,8 +565,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name. * @param value Indicates the String field. * @return Returns the SQL query statement with the specified RdbPredicates. @@ -488,8 +577,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name. * @param value Indicates the String field. * @return Returns the SQL query statement with the specified RdbPredicates. @@ -501,8 +589,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name. * @param value Indicates the String field. * @return Returns the SQL query statement with the specified RdbPredicates. @@ -514,8 +601,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name. * @param value Indicates the String field. * @return Returns the SQL query statement with the specified RdbPredicates. @@ -528,8 +614,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name for sorting the return list. * @return Returns the SQL query statement with the specified RdbPredicates. */ @@ -541,8 +626,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name for sorting the return list. * @return Returns the SQL query statement with the specified RdbPredicates. */ @@ -553,8 +637,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @return Returns the SQL query statement with the specified RdbPredicates. */ distinct(): RdbPredicates; @@ -564,8 +647,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param value Indicates the max length of the return list. * @return Returns the SQL query statement with the specified RdbPredicates. */ @@ -576,8 +658,7 @@ declare namespace rdb { * * @note Use this method together with limit(int). * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param rowOffset Indicates the start position of the returned result. The value is a positive integer. * @return Returns the SQL query statement with the specified AbsPredicates. */ @@ -588,8 +669,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param fields Indicates the specified columns by which query results are grouped. * @return Returns the RdbPredicates with the specified columns by which query results are grouped. */ @@ -600,8 +680,7 @@ declare namespace rdb { * * @note Before using this method, you need to create an index column. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param indexName Indicates the name of the index column. * @return Returns RdbPredicates with the specified index column. */ @@ -613,8 +692,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name in the database table. * @param values Indicates the values to match with RdbPredicates. * @return Returns RdbPredicates that matches the specified field. @@ -627,8 +705,7 @@ declare namespace rdb { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name in the database table. * @param values Indicates the values to match with RdbPredicates. * @return Returns RdbPredicates that matches the specified field. diff --git a/api/@ohos.data.storage.d.ts b/api/@ohos.data.storage.d.ts index 937ce3ad4a..806692fb44 100644 --- a/api/@ohos.data.storage.d.ts +++ b/api/@ohos.data.storage.d.ts @@ -19,8 +19,8 @@ import { AsyncCallback, Callback } from './basic'; * * @name storage * @since 5 - * @sysCap SystemCapability.Data#DATA_APPDATAMGR - * @devices phone, tablet + * @syscap SystemCapability.DistributedDataManager.Preference.Core + * */ declare namespace storage { /** @@ -79,8 +79,8 @@ declare namespace storage { * the file that stores storage data, and use emoveStorageFromCache * to remove the {@link Storage} instance from the memory. * - * @sysCap SystemCapability.Data#DATA_APPDATAMGR - * @devices phone, tablet + * @syscap SystemCapability.DistributedDataManager.Preference.Core + * * @since 5 */ interface Storage { @@ -193,8 +193,8 @@ declare namespace storage { /** * Define the change data information object. * - * @sysCap SystemCapability.Data#DATA_APPDATAMGR - * @devices phone, tablet + * @syscap SystemCapability.DistributedDataManager.Preference.Core + * * @since 5 */ interface StorageObserver { diff --git a/api/data/rdb/resultSet.d.ts b/api/data/rdb/resultSet.d.ts index ac0e5eb6ea..2a6e45f99e 100755 --- a/api/data/rdb/resultSet.d.ts +++ b/api/data/rdb/resultSet.d.ts @@ -18,8 +18,7 @@ import { AsyncCallback } from '../../basic' * Provides methods for accessing a database result set generated by querying the database. * * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @import import data_rdb from '@ohos.data.rdb'; * @permission N/A */ @@ -30,8 +29,7 @@ interface ResultSet { * @note The column names are returned as a string array, in which the strings are in the same order * as the columns in the result set. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ columnNames: Array; @@ -41,8 +39,7 @@ interface ResultSet { * @note The returned number is equal to the length of the string array returned by the * columnCount method. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ columnCount: number; @@ -51,8 +48,7 @@ interface ResultSet { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ rowCount: number; @@ -61,8 +57,7 @@ interface ResultSet { * * @note The result set index starts from 0. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ rowIndex: number; @@ -71,8 +66,7 @@ interface ResultSet { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ isAtFirstRow: boolean; @@ -81,8 +75,7 @@ interface ResultSet { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ isAtLastRow: boolean; @@ -91,8 +84,7 @@ interface ResultSet { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ isEnded: boolean; @@ -102,8 +94,7 @@ interface ResultSet { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ isStarted: boolean; @@ -114,8 +105,7 @@ interface ResultSet { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ isClosed: boolean; @@ -124,8 +114,7 @@ interface ResultSet { * * @note The column name is passed as an input parameter. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param columnName Indicates the name of the specified column in the result set. * @return Returns the index of the specified column. */ @@ -136,8 +125,7 @@ interface ResultSet { * * @note The column index is passed as an input parameter. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param columnIndex Indicates the index of the specified column in the result set. * @return Returns the name of the specified column. */ @@ -149,8 +137,7 @@ interface ResultSet { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param offset Indicates the offset relative to the current position. * @return Returns true if the result set is moved successfully and does not go beyond the range; * returns false otherwise. @@ -162,8 +149,7 @@ interface ResultSet { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param rowIndex Indicates the index of the specified row, which starts from 0. * @return Returns true if the result set is moved successfully; returns false otherwise. */ @@ -174,8 +160,7 @@ interface ResultSet { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @return Returns true if the result set is moved successfully; * returns false otherwise, for example, if the result set is empty. */ @@ -186,8 +171,7 @@ interface ResultSet { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @return Returns true if the result set is moved successfully; * returns false otherwise, for example, if the result set is empty. */ @@ -198,8 +182,7 @@ interface ResultSet { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @return Returns true if the result set is moved successfully; * returns false otherwise, for example, if the result set is already in the last row. */ @@ -210,8 +193,7 @@ interface ResultSet { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @return Returns true if the result set is moved successfully; * returns false otherwise, for example, if the result set is already in the first row. */ @@ -223,8 +205,7 @@ interface ResultSet { * @note The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null or the specified column is not of the Blob type. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param columnIndex Indicates the specified column index, which starts from 0. * @return Returns the value of the specified column as a byte array. */ @@ -236,8 +217,7 @@ interface ResultSet { * @note The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null or the specified column is not of the string type. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param columnIndex Indicates the specified column index, which starts from 0. * @return Returns the value of the specified column as a string. */ @@ -249,8 +229,7 @@ interface ResultSet { * @note The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null, the specified column is not of the integer type. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param columnIndex Indicates the specified column index, which starts from 0. * @return Returns the value of the specified column as a long. */ @@ -262,8 +241,7 @@ interface ResultSet { * @note The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null, the specified column is not of the double type. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param columnIndex Indicates the specified column index, which starts from 0. * @return Returns the value of the specified column as a double. */ @@ -274,8 +252,7 @@ interface ResultSet { * * @note N/A * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param columnIndex Indicates the specified column index, which starts from 0. * @return Returns true if the value of the specified column in the current row is null; * returns false otherwise. @@ -287,8 +264,7 @@ interface ResultSet { * * @note Calling this method on the result set will release all of its resources and makes it ineffective. * @since 7 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @return Returns true if the result set is closed; returns false otherwise. */ close(): void; -- Gitee