From e99c4c5246d9b8410846f46420c0685b56a5c171 Mon Sep 17 00:00:00 2001 From: yangliu Date: Thu, 18 Apr 2024 18:07:23 +0800 Subject: [PATCH 1/8] update err code Signed-off-by: yangliu --- api/@ohos.data.distributedKVStore.d.ts | 516 ++++++++++++++++++------- 1 file changed, 377 insertions(+), 139 deletions(-) diff --git a/api/@ohos.data.distributedKVStore.d.ts b/api/@ohos.data.distributedKVStore.d.ts index 4201976b1..7145a2451 100644 --- a/api/@ohos.data.distributedKVStore.d.ts +++ b/api/@ohos.data.distributedKVStore.d.ts @@ -662,7 +662,8 @@ declare namespace distributedKVStore { * the destination position will be entry 1. The valid final position after moving forwards starts with 0. If the * final position is invalid, false will be returned. * @returns { boolean } Returns true if the operation succeeds; return false otherwise. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -673,7 +674,8 @@ declare namespace distributedKVStore { * * @param { number } position - Indicates the absolute position. * @returns { boolean } Returns true if the operation succeeds; return false otherwise. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -758,7 +760,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number | string | boolean } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -770,7 +774,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number | string | boolean } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -783,7 +789,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number | string | boolean } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -795,7 +803,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number | string } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -808,7 +818,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number | string } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -821,7 +833,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number | string } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -832,7 +846,9 @@ declare namespace distributedKVStore { * * @param { string } field - Indicates the field, which cannot contain ^. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -844,7 +860,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number[] } valueList - Indicates the int value list. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -856,7 +874,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { string[] } valueList - Indicates the string value list. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -868,7 +888,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number[] } valueList - Indicates the int value list. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -880,7 +902,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { string[] } valueList - Indicates the string value list. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -892,7 +916,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { string } value - Indicates the string value. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -904,7 +930,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { string } value - Indicates the string value. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -935,7 +963,9 @@ declare namespace distributedKVStore { * * @param { string } field - Indicates the field, which cannot contain ^. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -946,7 +976,9 @@ declare namespace distributedKVStore { * * @param { string } field - Indicates the field, which cannot contain ^. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -958,7 +990,9 @@ declare namespace distributedKVStore { * @param { number } total - Indicates the number of results. * @param { number } offset - Indicates the start position. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -969,7 +1003,9 @@ declare namespace distributedKVStore { * * @param { string } field - Indicates the specified field. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1002,7 +1038,9 @@ declare namespace distributedKVStore { * * @param { string } prefix - Indicates the specified key prefix. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1013,7 +1051,9 @@ declare namespace distributedKVStore { * * @param { string } index - Indicates the index to set. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1024,7 +1064,9 @@ declare namespace distributedKVStore { * * @param { string } deviceId - Specify device id to query from. * @returns { Query } Returns the {@code Query} object with device ID prefix added. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1064,7 +1106,9 @@ declare namespace distributedKVStore { * Spaces before and after the key will be cleared. * @param { Uint8Array | string | number | boolean } value - Indicates the value to be inserted. * @param { AsyncCallback } callback - the callback of put. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1078,7 +1122,9 @@ declare namespace distributedKVStore { * Spaces before and after the key will be cleared. * @param { Uint8Array | string | number | boolean } value - Indicates the value to be inserted. * @param { AsyncCallback } callback - the callback of put. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1095,7 +1141,9 @@ declare namespace distributedKVStore { * Spaces before and after the key will be cleared. * @param { Uint8Array | string | number | boolean } value - Indicates the value to be inserted. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1109,7 +1157,9 @@ declare namespace distributedKVStore { * Spaces before and after the key will be cleared. * @param { Uint8Array | string | number | boolean } value - Indicates the value to be inserted. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1123,7 +1173,9 @@ declare namespace distributedKVStore { * * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @param { AsyncCallback } callback - the callback of putBatch. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1134,7 +1186,9 @@ declare namespace distributedKVStore { * * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @param { AsyncCallback } callback - the callback of putBatch. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1148,7 +1202,9 @@ declare namespace distributedKVStore { * * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1159,7 +1215,9 @@ declare namespace distributedKVStore { * * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1173,7 +1231,9 @@ declare namespace distributedKVStore { * * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @param { AsyncCallback } callback - the callback of putBatch. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1187,7 +1247,9 @@ declare namespace distributedKVStore { * * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @param { AsyncCallback } callback - the callback of putBatch. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1204,7 +1266,9 @@ declare namespace distributedKVStore { * * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1218,7 +1282,9 @@ declare namespace distributedKVStore { * * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1236,7 +1302,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. Length must be less than {@code MAX_KEY_LENGTH}. * Spaces before and after the key will be cleared. * @param { AsyncCallback } callback - the callback of delete. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1248,7 +1316,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. Length must be less than {@code MAX_KEY_LENGTH}. * Spaces before and after the key will be cleared. * @param { AsyncCallback } callback - the callback of delete. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1263,7 +1333,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. Length must be less than {@code MAX_KEY_LENGTH}. * Spaces before and after the key will be cleared. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1275,7 +1347,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. Length must be less than {@code MAX_KEY_LENGTH}. * Spaces before and after the key will be cleared. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1289,7 +1363,9 @@ declare namespace distributedKVStore { * * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @param { AsyncCallback } callback - the callback of delete. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1303,7 +1379,9 @@ declare namespace distributedKVStore { * * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @param { AsyncCallback } callback - the callback of delete. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1320,7 +1398,9 @@ declare namespace distributedKVStore { * * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1334,7 +1414,9 @@ declare namespace distributedKVStore { * * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1351,7 +1433,9 @@ declare namespace distributedKVStore { * * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches. * @param { AsyncCallback } callback - the callback of deleteBatch. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1362,7 +1446,9 @@ declare namespace distributedKVStore { * * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches. * @param { AsyncCallback } callback - the callback of deleteBatch. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1376,7 +1462,9 @@ declare namespace distributedKVStore { * * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1387,7 +1475,9 @@ declare namespace distributedKVStore { * * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1403,7 +1493,9 @@ declare namespace distributedKVStore { * * @param { string } deviceId - Identifies the device whose data is to be removed and the value cannot be the current device ID. * @param { AsyncCallback } callback - the callback of removeDeviceData. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed + * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 @@ -1417,7 +1509,8 @@ declare namespace distributedKVStore { * * @param { string } deviceId - Identifies the device whose data is to be removed and the value cannot be the current device ID. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 @@ -1430,7 +1523,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. The length must be less than {@code MAX_KEY_LENGTH}. * @param { AsyncCallback } callback - * {Uint8Array|string|boolean|number}: the returned value specified by the key. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1445,7 +1540,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. The length must be less than {@code MAX_KEY_LENGTH}. * @returns { Promise } * {Uint8Array|string|boolean|number}: the returned value specified by the key. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1460,7 +1557,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * that match the specified key prefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1474,7 +1573,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {Entry[]}: the list of all key-value pairs that match the * specified key prefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1488,7 +1589,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * matching the specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1502,7 +1605,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {Entry[]}: the list of all key-value pairs matching the * specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1520,7 +1625,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1536,7 +1643,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1555,7 +1664,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1571,7 +1682,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1586,7 +1699,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1598,7 +1713,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1625,7 +1742,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1655,7 +1774,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the datasharePredicates. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -1688,7 +1809,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the datasharePredicates. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -1705,7 +1828,9 @@ declare namespace distributedKVStore { * * @param { KVStoreResultSet } resultSet - Indicates the {@code KVStoreResultSet} object to close. * @param { AsyncCallback } callback - the callback of closeResultSet. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1716,7 +1841,9 @@ declare namespace distributedKVStore { * * @param { KVStoreResultSet } resultSet - Indicates the {@code KVStoreResultSet} object to close. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1728,7 +1855,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {number}: the number of results matching the * specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1742,7 +1871,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {number}: the number of results matching the specified * {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1755,7 +1886,8 @@ declare namespace distributedKVStore { * * @param { string } file - Indicates the database backup filename. * @param { AsyncCallback } callback - the callback of backup. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -1767,7 +1899,8 @@ declare namespace distributedKVStore { * * @param { string } file - Indicates the database backup filename. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -1779,7 +1912,8 @@ declare namespace distributedKVStore { * * @param { string } file - Indicates the database backup filename. * @param { AsyncCallback } callback - the callback of restore. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -1791,7 +1925,8 @@ declare namespace distributedKVStore { * * @param { string } file - Indicates the database backup filename. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -1805,7 +1940,8 @@ declare namespace distributedKVStore { * @param { AsyncCallback> } callback - {Array<[string, number]>}: * the list of backup file and it's corresponding delete result which 0 means delete success * and otherwise failed. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1817,7 +1953,8 @@ declare namespace distributedKVStore { * @param { Array } files - Indicates the backup filenames to be deleted. * @returns { Promise> } {Array<[string, number]>}: the list of backup * file and it's corresponding delete result which 0 means delete success and otherwise failed. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1911,7 +2048,8 @@ declare namespace distributedKVStore { * @param { boolean } enabled - Specifies whether to enable synchronization. The value true * means to enable synchronization, and false means the opposite. * @param { AsyncCallback } callback - the callback of enableSync. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1923,7 +2061,8 @@ declare namespace distributedKVStore { * @param { boolean } enabled - Specifies whether to enable synchronization. The value true * means to enable synchronization, and false means the opposite. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1937,7 +2076,9 @@ declare namespace distributedKVStore { * @param { string[] } remoteSupportLabels - Indicates the labels of the devices with which * data will be synchronized. * @param { AsyncCallback } callback - the callback of setSyncRange. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1951,7 +2092,9 @@ declare namespace distributedKVStore { * @param { string[] } remoteSupportLabels - Indicates the labels of the devices with which * data will be synchronized. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1963,7 +2106,9 @@ declare namespace distributedKVStore { * @param { number } defaultAllowedDelayMs - Indicates the default delay allowed for the * database synchronization, in milliseconds. * @param { AsyncCallback } callback - the callback of setSyncParam. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1975,7 +2120,9 @@ declare namespace distributedKVStore { * @param { number } defaultAllowedDelayMs - Indicates the default delay allowed for the * database synchronization, in milliseconds. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1989,7 +2136,9 @@ declare namespace distributedKVStore { * @param { SyncMode } mode - Indicates the synchronization mode. The value can be {@code PUSH}, * {@code PULL}, or {@code PUSH_PULL}. * @param { number } delayMs - Indicates the delay allowed for the synchronization, in milliseconds. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2006,7 +2155,9 @@ declare namespace distributedKVStore { * @param { SyncMode } mode - Indicates the synchronization mode. The value can be {@code PUSH}, * {@code PULL}, or {@code PUSH_PULL}. * @param { number } delayMs - Indicates the delay allowed for the synchronization, in milliseconds. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2036,7 +2187,8 @@ declare namespace distributedKVStore { * @param { SubscribeType } type - Indicates the subscription type, which is defined in {@code SubscribeType}. * @param { Callback } listener - {ChangeNotification}: the {@code ChangeNotification} * object indicates the data change events in the distributed database. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2052,7 +2204,8 @@ declare namespace distributedKVStore { * @param { Callback> } syncCallback - {Array<[string, number]>}: the * deviceId and it's corresponding synchronization result which 0 means synchronization success * and otherwise failed. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2064,7 +2217,8 @@ declare namespace distributedKVStore { * @param { 'dataChange' } event - The unsubscribe event name, fixed as 'dataChange', indicates the data change event. * @param { Callback } listener - {ChangeNotification}: the {@code ChangeNotification} * object indicates the data change events in the distributed database. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -2078,7 +2232,8 @@ declare namespace distributedKVStore { * @param { Callback> } syncCallback - {Array<[string, number]>}: the * deviceId and it's corresponding synchronization result which 0 means synchronization success * and otherwise failed. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2125,7 +2280,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. The length must be less than {@code MAX_KEY_LENGTH}. * @param { AsyncCallback } callback - * {Uint8Array|string|boolean|number}: the returned value specified by the local device ID and specified key. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2140,7 +2297,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. The length must be less than {@code MAX_KEY_LENGTH}. * @returns { Promise } * {Uint8Array|string|boolean|number}: the returned value specified by the local device ID and specified key. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2156,7 +2315,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key of the value to be queried. * @param { AsyncCallback } callback - * {boolean | string | number | Uint8Array}: the returned value specified by the deviceId and key. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2172,7 +2333,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key of the value to be queried. * @returns { Promise } * {Uint8Array|string|boolean|number}: the returned value specified by the deviceId and key. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2187,7 +2350,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * that match the local device ID and specified key prefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2201,7 +2366,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {Entry[]}: the list of all key-value pairs that match the * local device ID and specified key prefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2216,7 +2383,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * that match the specified deviceId and key prefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2231,7 +2400,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {Entry[]}: the list of all key-value pairs that match the * specified deviceId and key prefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2245,7 +2416,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * matching the local device ID and specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2259,7 +2432,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {Entry[]}: the list of all key-value pairs matching the local device ID and * specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2274,7 +2449,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * matching the specified deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2289,7 +2466,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {Entry[]}: the list of all key-value pairs matching the * specified deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2307,7 +2486,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified keyPrefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2323,7 +2504,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified keyPrefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2358,7 +2541,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified keyPrefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2395,7 +2580,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and keyPrefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2415,7 +2602,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and keyPrefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2432,7 +2621,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and keyPrefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2447,7 +2638,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2459,7 +2652,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2474,7 +2669,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2486,7 +2683,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2502,7 +2701,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2515,7 +2716,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2531,7 +2734,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2544,7 +2749,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2559,7 +2766,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the datasharePredicates. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2574,7 +2783,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the datasharePredicates. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2592,7 +2803,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the datasharePredicates. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2607,7 +2820,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the datasharePredicates. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2642,7 +2857,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2665,7 +2882,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2681,7 +2900,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2699,7 +2920,8 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {number}: the number of results matching the * local device ID and specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2713,7 +2935,8 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {number}: the number of results matching the local device ID and specified * {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2728,7 +2951,8 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {number}: the number of results matching the * specified deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2743,7 +2967,8 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {number}: the number of results matching the specified * deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2760,7 +2985,8 @@ declare namespace distributedKVStore { * @param { KVManagerConfig } config - Indicates the KVStore configuration information, * including the package name and context. * @returns { KVManager } : the {@code KVManager} instance. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified, + * 2.Incorrect parameters types,3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2783,7 +3009,9 @@ declare namespace distributedKVStore { * @param { Options } options - Indicates the {@code Options} object used for creating and * obtaining the KVStore database. * @param { AsyncCallback } callback - {T}: the {@code SingleKVStore} or {@code DeviceKVStore} instance. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed. * @throws { BusinessError } 15100002 - Open existed database with changed options. * @throws { BusinessError } 15100003 - Database corrupted. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2800,7 +3028,9 @@ declare namespace distributedKVStore { * @param { Options } options - Indicates the {@code Options} object used for creating and * obtaining the KVStore database. * @returns { Promise } {T}: the {@code SingleKVStore} or {@code DeviceKVStore} instance. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @throws { BusinessError } 15100002 - Open existed database with changed options. * @throws { BusinessError } 15100003 - Database corrupted. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2816,11 +3046,12 @@ declare namespace distributedKVStore { * method, release the resources created for the database, for example, {@code KVStoreResultSet} for KVStore, otherwise * closing the database will fail. * - * @param { string } appId - Identifies the application that the database belong to. + * @param { string } appId - Identifies the application that the database belong to, and cannot exceed 256 characters. * @param { string } storeId - Identifies the KVStore database to close. The storeId can consist of only letters, digits, * and underscores (_), and cannot exceed 128 characters. * @param { AsyncCallback } callback - the callback of closeKVStore. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2834,11 +3065,12 @@ declare namespace distributedKVStore { * method, release the resources created for the database, for example, {@code KVStoreResultSet} for KVStore, otherwise * closing the database will fail. * - * @param { string } appId - Identifies the application that the database belong to. + * @param { string } appId - Identifies the application that the database belong to, and cannot exceed 256 characters. * @param { string } storeId - Identifies the KVStore database to close. The storeId can consist of only letters, digits, * and underscores (_), and cannot exceed 128 characters. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2850,11 +3082,12 @@ declare namespace distributedKVStore { *

You can use this method to delete a KVStore database not in use. After the database is deleted, all its data will be * lost. * - * @param { string } appId - Identifies the application that the database belong to. + * @param { string } appId - Identifies the application that the database belong to, and cannot exceed 256 characters. * @param { string } storeId - Identifies the KVStore database to delete. The storeId can consist of only letters, digits, * and underscores (_), and cannot exceed 128 characters. * @param { AsyncCallback } callback - the callback of deleteKVStore. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @throws { BusinessError } 15100004 - Not found. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -2867,11 +3100,12 @@ declare namespace distributedKVStore { *

You can use this method to delete a KVStore database not in use. After the database is deleted, all its data will be * lost. * - * @param { string } appId - Identifies the application that the database belong to. + * @param { string } appId - Identifies the application that the database belong to, and cannot exceed 256 characters. * @param { string } storeId - Identifies the KVStore database to delete. The storeId can consist of only letters, digits, * and underscores (_), and cannot exceed 128 characters. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Parameter verification failed * @throws { BusinessError } 15100004 - Not found. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -2882,9 +3116,9 @@ declare namespace distributedKVStore { * Obtains the storeId of all KVStore databases that are created by using the {@code getKVStore} method and not deleted by * calling the {@code deleteKVStore} method. * - * @param { string } appId - Identifies the application that obtains the databases. + * @param { string } appId - Identifies the application that obtains the databases, and cannot exceed 256 characters. * @param { AsyncCallback } callback - {string[]}: the storeId of all created KVStore databases. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2894,9 +3128,9 @@ declare namespace distributedKVStore { * Obtains the storeId of all KVStore databases that are created by using the {@code getKVStore} method and not deleted by * calling the {@code deleteKVStore} method. * - * @param { string } appId - Identifies the application that obtains the databases. + * @param { string } appId - Identifies the application that obtains the databases, and cannot exceed 256 characters. * @returns { Promise } {string[]}: the storeId of all created KVStore databases. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2909,7 +3143,9 @@ declare namespace distributedKVStore { * * @param { 'distributedDataServiceDie' } event - Subscribed event name, fixed as 'distributedDataServiceDie', as a service status change events. * @param { Callback } deathCallback - callback to be invoked when the data manager service is terminated. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 */ @@ -2922,7 +3158,9 @@ declare namespace distributedKVStore { * * @param { 'distributedDataServiceDie' } event - Unsubscribe event name, fixed as 'distributedDataServiceDie', as a service status change events. * @param { Callback } deathCallback - the data manager service is terminated callback which has been registered. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * 2.Incorrect parameters types + * 3.Parameter verification failed * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 */ -- Gitee From 72bd6d07e786a3cc536cfd6505e010ace896b469 Mon Sep 17 00:00:00 2001 From: yangliu Date: Thu, 18 Apr 2024 19:32:01 +0800 Subject: [PATCH 2/8] update Signed-off-by: yangliu --- api/@ohos.data.distributedKVStore.d.ts | 765 +++++++++++++------------ 1 file changed, 390 insertions(+), 375 deletions(-) diff --git a/api/@ohos.data.distributedKVStore.d.ts b/api/@ohos.data.distributedKVStore.d.ts index 7145a2451..9622c82a1 100644 --- a/api/@ohos.data.distributedKVStore.d.ts +++ b/api/@ohos.data.distributedKVStore.d.ts @@ -541,7 +541,8 @@ declare namespace distributedKVStore { * name Indicates the field node name. * * @param { string } name - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameters verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 */ @@ -553,7 +554,8 @@ declare namespace distributedKVStore { * * @param { FieldNode } child - The field node to append. * @returns { boolean } Returns true if the child node is successfully added to this {@code FieldNode} and false otherwise. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameters verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 */ @@ -662,8 +664,8 @@ declare namespace distributedKVStore { * the destination position will be entry 1. The valid final position after moving forwards starts with 0. If the * final position is invalid, false will be returned. * @returns { boolean } Returns true if the operation succeeds; return false otherwise. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -674,8 +676,8 @@ declare namespace distributedKVStore { * * @param { number } position - Indicates the absolute position. * @returns { boolean } Returns true if the operation succeeds; return false otherwise. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -760,9 +762,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number | string | boolean } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -774,9 +776,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number | string | boolean } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -789,9 +791,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number | string | boolean } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -803,9 +805,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number | string } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -818,9 +820,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number | string } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -833,9 +835,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number | string } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -846,9 +848,9 @@ declare namespace distributedKVStore { * * @param { string } field - Indicates the field, which cannot contain ^. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -860,9 +862,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number[] } valueList - Indicates the int value list. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -874,9 +876,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { string[] } valueList - Indicates the string value list. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -888,9 +890,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { number[] } valueList - Indicates the int value list. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -902,9 +904,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { string[] } valueList - Indicates the string value list. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -916,9 +918,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { string } value - Indicates the string value. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -930,9 +932,9 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @param { string } value - Indicates the string value. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -963,9 +965,9 @@ declare namespace distributedKVStore { * * @param { string } field - Indicates the field, which cannot contain ^. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -976,9 +978,9 @@ declare namespace distributedKVStore { * * @param { string } field - Indicates the field, which cannot contain ^. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -990,9 +992,9 @@ declare namespace distributedKVStore { * @param { number } total - Indicates the number of results. * @param { number } offset - Indicates the start position. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1003,9 +1005,9 @@ declare namespace distributedKVStore { * * @param { string } field - Indicates the specified field. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1038,9 +1040,9 @@ declare namespace distributedKVStore { * * @param { string } prefix - Indicates the specified key prefix. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1051,9 +1053,9 @@ declare namespace distributedKVStore { * * @param { string } index - Indicates the index to set. * @returns { Query } Returns the {@coed Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1064,9 +1066,9 @@ declare namespace distributedKVStore { * * @param { string } deviceId - Specify device id to query from. * @returns { Query } Returns the {@code Query} object with device ID prefix added. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1106,9 +1108,9 @@ declare namespace distributedKVStore { * Spaces before and after the key will be cleared. * @param { Uint8Array | string | number | boolean } value - Indicates the value to be inserted. * @param { AsyncCallback } callback - the callback of put. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1122,9 +1124,9 @@ declare namespace distributedKVStore { * Spaces before and after the key will be cleared. * @param { Uint8Array | string | number | boolean } value - Indicates the value to be inserted. * @param { AsyncCallback } callback - the callback of put. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1141,9 +1143,9 @@ declare namespace distributedKVStore { * Spaces before and after the key will be cleared. * @param { Uint8Array | string | number | boolean } value - Indicates the value to be inserted. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1157,9 +1159,9 @@ declare namespace distributedKVStore { * Spaces before and after the key will be cleared. * @param { Uint8Array | string | number | boolean } value - Indicates the value to be inserted. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1173,9 +1175,9 @@ declare namespace distributedKVStore { * * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @param { AsyncCallback } callback - the callback of putBatch. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1186,9 +1188,9 @@ declare namespace distributedKVStore { * * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @param { AsyncCallback } callback - the callback of putBatch. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1202,9 +1204,9 @@ declare namespace distributedKVStore { * * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1215,9 +1217,9 @@ declare namespace distributedKVStore { * * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1231,9 +1233,9 @@ declare namespace distributedKVStore { * * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @param { AsyncCallback } callback - the callback of putBatch. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1247,9 +1249,9 @@ declare namespace distributedKVStore { * * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @param { AsyncCallback } callback - the callback of putBatch. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1266,9 +1268,9 @@ declare namespace distributedKVStore { * * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1282,9 +1284,9 @@ declare namespace distributedKVStore { * * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1302,9 +1304,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. Length must be less than {@code MAX_KEY_LENGTH}. * Spaces before and after the key will be cleared. * @param { AsyncCallback } callback - the callback of delete. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1316,9 +1318,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. Length must be less than {@code MAX_KEY_LENGTH}. * Spaces before and after the key will be cleared. * @param { AsyncCallback } callback - the callback of delete. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1333,9 +1335,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. Length must be less than {@code MAX_KEY_LENGTH}. * Spaces before and after the key will be cleared. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1347,9 +1349,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. Length must be less than {@code MAX_KEY_LENGTH}. * Spaces before and after the key will be cleared. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1363,9 +1365,9 @@ declare namespace distributedKVStore { * * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @param { AsyncCallback } callback - the callback of delete. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1379,9 +1381,9 @@ declare namespace distributedKVStore { * * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @param { AsyncCallback } callback - the callback of delete. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1398,9 +1400,9 @@ declare namespace distributedKVStore { * * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1414,9 +1416,9 @@ declare namespace distributedKVStore { * * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1433,9 +1435,9 @@ declare namespace distributedKVStore { * * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches. * @param { AsyncCallback } callback - the callback of deleteBatch. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1446,9 +1448,9 @@ declare namespace distributedKVStore { * * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches. * @param { AsyncCallback } callback - the callback of deleteBatch. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1462,9 +1464,9 @@ declare namespace distributedKVStore { * * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1475,9 +1477,9 @@ declare namespace distributedKVStore { * * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1493,8 +1495,8 @@ declare namespace distributedKVStore { * * @param { string } deviceId - Identifies the device whose data is to be removed and the value cannot be the current device ID. * @param { AsyncCallback } callback - the callback of removeDeviceData. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -1509,8 +1511,8 @@ declare namespace distributedKVStore { * * @param { string } deviceId - Identifies the device whose data is to be removed and the value cannot be the current device ID. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 @@ -1523,9 +1525,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. The length must be less than {@code MAX_KEY_LENGTH}. * @param { AsyncCallback } callback - * {Uint8Array|string|boolean|number}: the returned value specified by the key. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1540,9 +1542,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. The length must be less than {@code MAX_KEY_LENGTH}. * @returns { Promise } * {Uint8Array|string|boolean|number}: the returned value specified by the key. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1557,9 +1559,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * that match the specified key prefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1573,9 +1575,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {Entry[]}: the list of all key-value pairs that match the * specified key prefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1589,9 +1591,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * matching the specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1605,9 +1607,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {Entry[]}: the list of all key-value pairs matching the * specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1625,9 +1627,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1643,9 +1645,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1664,9 +1666,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1682,9 +1684,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1699,9 +1701,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1713,9 +1715,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1730,7 +1732,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1742,9 +1746,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1759,7 +1763,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the datasharePredicates. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1794,7 +1800,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the datasharePredicates. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1809,9 +1817,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the datasharePredicates. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -1828,9 +1836,9 @@ declare namespace distributedKVStore { * * @param { KVStoreResultSet } resultSet - Indicates the {@code KVStoreResultSet} object to close. * @param { AsyncCallback } callback - the callback of closeResultSet. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1841,9 +1849,9 @@ declare namespace distributedKVStore { * * @param { KVStoreResultSet } resultSet - Indicates the {@code KVStoreResultSet} object to close. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1855,9 +1863,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {number}: the number of results matching the * specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1871,9 +1879,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {number}: the number of results matching the specified * {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1886,8 +1894,8 @@ declare namespace distributedKVStore { * * @param { string } file - Indicates the database backup filename. * @param { AsyncCallback } callback - the callback of backup. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -1899,8 +1907,8 @@ declare namespace distributedKVStore { * * @param { string } file - Indicates the database backup filename. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -1912,8 +1920,8 @@ declare namespace distributedKVStore { * * @param { string } file - Indicates the database backup filename. * @param { AsyncCallback } callback - the callback of restore. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -1925,8 +1933,8 @@ declare namespace distributedKVStore { * * @param { string } file - Indicates the database backup filename. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -1940,8 +1948,8 @@ declare namespace distributedKVStore { * @param { AsyncCallback> } callback - {Array<[string, number]>}: * the list of backup file and it's corresponding delete result which 0 means delete success * and otherwise failed. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1953,8 +1961,8 @@ declare namespace distributedKVStore { * @param { Array } files - Indicates the backup filenames to be deleted. * @returns { Promise> } {Array<[string, number]>}: the list of backup * file and it's corresponding delete result which 0 means delete success and otherwise failed. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2048,8 +2056,8 @@ declare namespace distributedKVStore { * @param { boolean } enabled - Specifies whether to enable synchronization. The value true * means to enable synchronization, and false means the opposite. * @param { AsyncCallback } callback - the callback of enableSync. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2061,8 +2069,8 @@ declare namespace distributedKVStore { * @param { boolean } enabled - Specifies whether to enable synchronization. The value true * means to enable synchronization, and false means the opposite. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2076,9 +2084,9 @@ declare namespace distributedKVStore { * @param { string[] } remoteSupportLabels - Indicates the labels of the devices with which * data will be synchronized. * @param { AsyncCallback } callback - the callback of setSyncRange. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2092,9 +2100,9 @@ declare namespace distributedKVStore { * @param { string[] } remoteSupportLabels - Indicates the labels of the devices with which * data will be synchronized. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2106,9 +2114,9 @@ declare namespace distributedKVStore { * @param { number } defaultAllowedDelayMs - Indicates the default delay allowed for the * database synchronization, in milliseconds. * @param { AsyncCallback } callback - the callback of setSyncParam. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2120,9 +2128,9 @@ declare namespace distributedKVStore { * @param { number } defaultAllowedDelayMs - Indicates the default delay allowed for the * database synchronization, in milliseconds. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2136,9 +2144,9 @@ declare namespace distributedKVStore { * @param { SyncMode } mode - Indicates the synchronization mode. The value can be {@code PUSH}, * {@code PULL}, or {@code PUSH_PULL}. * @param { number } delayMs - Indicates the delay allowed for the synchronization, in milliseconds. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2155,9 +2163,9 @@ declare namespace distributedKVStore { * @param { SyncMode } mode - Indicates the synchronization mode. The value can be {@code PUSH}, * {@code PULL}, or {@code PUSH_PULL}. * @param { number } delayMs - Indicates the delay allowed for the synchronization, in milliseconds. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2173,7 +2181,8 @@ declare namespace distributedKVStore { * @param { SubscribeType } type - Indicates the subscription type, which is defined in {@code SubscribeType}. * @param { Callback } listener - {ChangeNotification}: the {@code ChangeNotification} * object indicates the data change events in the distributed database. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2187,8 +2196,8 @@ declare namespace distributedKVStore { * @param { SubscribeType } type - Indicates the subscription type, which is defined in {@code SubscribeType}. * @param { Callback } listener - {ChangeNotification}: the {@code ChangeNotification} * object indicates the data change events in the distributed database. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2204,8 +2213,8 @@ declare namespace distributedKVStore { * @param { Callback> } syncCallback - {Array<[string, number]>}: the * deviceId and it's corresponding synchronization result which 0 means synchronization success * and otherwise failed. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2217,8 +2226,8 @@ declare namespace distributedKVStore { * @param { 'dataChange' } event - The unsubscribe event name, fixed as 'dataChange', indicates the data change event. * @param { Callback } listener - {ChangeNotification}: the {@code ChangeNotification} * object indicates the data change events in the distributed database. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -2232,8 +2241,8 @@ declare namespace distributedKVStore { * @param { Callback> } syncCallback - {Array<[string, number]>}: the * deviceId and it's corresponding synchronization result which 0 means synchronization success * and otherwise failed. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2280,9 +2289,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. The length must be less than {@code MAX_KEY_LENGTH}. * @param { AsyncCallback } callback - * {Uint8Array|string|boolean|number}: the returned value specified by the local device ID and specified key. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2297,9 +2306,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key. The length must be less than {@code MAX_KEY_LENGTH}. * @returns { Promise } * {Uint8Array|string|boolean|number}: the returned value specified by the local device ID and specified key. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2315,9 +2324,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key of the value to be queried. * @param { AsyncCallback } callback - * {boolean | string | number | Uint8Array}: the returned value specified by the deviceId and key. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2333,9 +2342,9 @@ declare namespace distributedKVStore { * @param { string } key - Indicates the key of the value to be queried. * @returns { Promise } * {Uint8Array|string|boolean|number}: the returned value specified by the deviceId and key. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2350,9 +2359,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * that match the local device ID and specified key prefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2366,9 +2375,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {Entry[]}: the list of all key-value pairs that match the * local device ID and specified key prefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2383,9 +2392,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * that match the specified deviceId and key prefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2400,9 +2409,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {Entry[]}: the list of all key-value pairs that match the * specified deviceId and key prefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2416,9 +2425,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * matching the local device ID and specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2432,9 +2441,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {Entry[]}: the list of all key-value pairs matching the local device ID and * specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2449,9 +2458,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * matching the specified deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2466,9 +2475,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {Entry[]}: the list of all key-value pairs matching the * specified deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2486,9 +2495,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified keyPrefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2504,9 +2513,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified keyPrefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2525,7 +2534,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified keyPrefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2541,9 +2552,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified keyPrefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2563,7 +2574,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and keyPrefix. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2580,9 +2593,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and keyPrefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2602,9 +2615,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and keyPrefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2621,9 +2634,9 @@ declare namespace distributedKVStore { * @param { string } keyPrefix - Indicates the key prefix to match. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and keyPrefix. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2638,9 +2651,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2652,9 +2665,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2669,9 +2682,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2683,9 +2696,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2701,9 +2714,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2716,9 +2729,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2734,9 +2747,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2749,9 +2762,9 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2766,9 +2779,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the datasharePredicates. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2783,9 +2796,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the datasharePredicates. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2803,9 +2816,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the datasharePredicates. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2820,9 +2833,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the datasharePredicates. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2841,7 +2854,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2857,9 +2872,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2882,9 +2897,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2900,9 +2915,9 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2920,8 +2935,8 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {number}: the number of results matching the * local device ID and specified {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2935,8 +2950,8 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {number}: the number of results matching the local device ID and specified * {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2951,8 +2966,8 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @param { AsyncCallback } callback - {number}: the number of results matching the * specified deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2967,8 +2982,8 @@ declare namespace distributedKVStore { * @param { Query } query - Indicates the {@code Query} object. * @returns { Promise } {number}: the number of results matching the specified * deviceId and {@code Query} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2985,8 +3000,8 @@ declare namespace distributedKVStore { * @param { KVManagerConfig } config - Indicates the KVStore configuration information, * including the package name and context. * @returns { KVManager } : the {@code KVManager} instance. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified, - * 2.Incorrect parameters types,3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types,3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -3009,8 +3024,8 @@ declare namespace distributedKVStore { * @param { Options } options - Indicates the {@code Options} object used for creating and * obtaining the KVStore database. * @param { AsyncCallback } callback - {T}: the {@code SingleKVStore} or {@code DeviceKVStore} instance. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; * 3.Parameter verification failed. * @throws { BusinessError } 15100002 - Open existed database with changed options. * @throws { BusinessError } 15100003 - Database corrupted. @@ -3028,9 +3043,9 @@ declare namespace distributedKVStore { * @param { Options } options - Indicates the {@code Options} object used for creating and * obtaining the KVStore database. * @returns { Promise } {T}: the {@code SingleKVStore} or {@code DeviceKVStore} instance. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @throws { BusinessError } 15100002 - Open existed database with changed options. * @throws { BusinessError } 15100003 - Database corrupted. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -3050,8 +3065,8 @@ declare namespace distributedKVStore { * @param { string } storeId - Identifies the KVStore database to close. The storeId can consist of only letters, digits, * and underscores (_), and cannot exceed 128 characters. * @param { AsyncCallback } callback - the callback of closeKVStore. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -3069,8 +3084,8 @@ declare namespace distributedKVStore { * @param { string } storeId - Identifies the KVStore database to close. The storeId can consist of only letters, digits, * and underscores (_), and cannot exceed 128 characters. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -3086,8 +3101,8 @@ declare namespace distributedKVStore { * @param { string } storeId - Identifies the KVStore database to delete. The storeId can consist of only letters, digits, * and underscores (_), and cannot exceed 128 characters. * @param { AsyncCallback } callback - the callback of deleteKVStore. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @throws { BusinessError } 15100004 - Not found. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -3104,8 +3119,8 @@ declare namespace distributedKVStore { * @param { string } storeId - Identifies the KVStore database to delete. The storeId can consist of only letters, digits, * and underscores (_), and cannot exceed 128 characters. * @returns { Promise } the promise returned by the function. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @throws { BusinessError } 15100004 - Not found. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -3118,7 +3133,7 @@ declare namespace distributedKVStore { * * @param { string } appId - Identifies the application that obtains the databases, and cannot exceed 256 characters. * @param { AsyncCallback } callback - {string[]}: the storeId of all created KVStore databases. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * @throws { BusinessError } 401 - Parameter error.Possible causes:Mandatory parameters are left unspecified. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -3130,7 +3145,7 @@ declare namespace distributedKVStore { * * @param { string } appId - Identifies the application that obtains the databases, and cannot exceed 256 characters. * @returns { Promise } {string[]}: the storeId of all created KVStore databases. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified + * @throws { BusinessError } 401 - Parameter error.Possible causes:Mandatory parameters are left unspecified. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -3143,9 +3158,9 @@ declare namespace distributedKVStore { * * @param { 'distributedDataServiceDie' } event - Subscribed event name, fixed as 'distributedDataServiceDie', as a service status change events. * @param { Callback } deathCallback - callback to be invoked when the data manager service is terminated. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 */ @@ -3158,9 +3173,9 @@ declare namespace distributedKVStore { * * @param { 'distributedDataServiceDie' } event - Unsubscribe event name, fixed as 'distributedDataServiceDie', as a service status change events. * @param { Callback } deathCallback - the data manager service is terminated callback which has been registered. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 */ -- Gitee From 7fbcde8c7e1cca9a18749749f869b98d85cd0d59 Mon Sep 17 00:00:00 2001 From: yangliu Date: Tue, 23 Apr 2024 17:58:35 +0800 Subject: [PATCH 3/8] update Signed-off-by: yangliu --- api/@ohos.data.distributedKVStore.d.ts | 263 +++++++++---------------- 1 file changed, 96 insertions(+), 167 deletions(-) diff --git a/api/@ohos.data.distributedKVStore.d.ts b/api/@ohos.data.distributedKVStore.d.ts index 9622c82a1..af1c9dfa8 100644 --- a/api/@ohos.data.distributedKVStore.d.ts +++ b/api/@ohos.data.distributedKVStore.d.ts @@ -540,9 +540,9 @@ declare namespace distributedKVStore { * A constructor used to create a FieldNode instance with the specified field. * name Indicates the field node name. * - * @param { string } name + * @param { string } name - It can not be empty. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameters verification failed. + * 2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 */ @@ -555,7 +555,7 @@ declare namespace distributedKVStore { * @param { FieldNode } child - The field node to append. * @returns { boolean } Returns true if the child node is successfully added to this {@code FieldNode} and false otherwise. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameters verification failed. + * 2.Incorrect Parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 */ @@ -993,8 +993,7 @@ declare namespace distributedKVStore { * @param { number } offset - Indicates the start position. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1006,8 +1005,7 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the specified field. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1041,8 +1039,7 @@ declare namespace distributedKVStore { * @param { string } prefix - Indicates the specified key prefix. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1054,8 +1051,7 @@ declare namespace distributedKVStore { * @param { string } index - Indicates the index to set. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1064,7 +1060,7 @@ declare namespace distributedKVStore { /** * Add device ID key prefix.Used by {@code DeviceKVStore}. * - * @param { string } deviceId - Specify device id to query from. + * @param { string } deviceId - Specify device id to query from, It can not be empty. * @returns { Query } Returns the {@code Query} object with device ID prefix added. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; @@ -1177,7 +1173,6 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - the callback of putBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; - * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1190,7 +1185,6 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - the callback of putBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; - * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1206,7 +1200,6 @@ declare namespace distributedKVStore { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; - * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1219,7 +1212,6 @@ declare namespace distributedKVStore { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; - * 3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1235,7 +1227,6 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - the callback of putBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; - * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1251,7 +1242,6 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - the callback of putBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; - * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1270,7 +1260,6 @@ declare namespace distributedKVStore { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; - * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1286,7 +1275,6 @@ declare namespace distributedKVStore { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; - * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1367,7 +1355,6 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - the callback of delete. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; - * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1383,7 +1370,6 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - the callback of delete. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; - * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1402,7 +1388,6 @@ declare namespace distributedKVStore { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; - * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1418,7 +1403,6 @@ declare namespace distributedKVStore { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; - * 3.Parameter verification failed. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1433,7 +1417,7 @@ declare namespace distributedKVStore { /** * Deletes key-value pairs in batches from the {@code SingleKVStore} database. * - * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches. + * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches, It can not be empty. * @param { AsyncCallback } callback - the callback of deleteBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; @@ -1446,7 +1430,7 @@ declare namespace distributedKVStore { /** * Deletes key-value pairs in batches from the {@code SingleKVStore} database. * - * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches. + * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches, It can not be empty. * @param { AsyncCallback } callback - the callback of deleteBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; @@ -1475,7 +1459,7 @@ declare namespace distributedKVStore { /** * Deletes key-value pairs in batches from the {@code SingleKVStore} database. * - * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches. + * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches, It can not be empty. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; @@ -1560,8 +1544,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * that match the specified key prefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1576,8 +1559,7 @@ declare namespace distributedKVStore { * @returns { Promise } {Entry[]}: the list of all key-value pairs that match the * specified key prefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1592,8 +1574,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * matching the specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1608,8 +1589,7 @@ declare namespace distributedKVStore { * @returns { Promise } {Entry[]}: the list of all key-value pairs matching the * specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1628,8 +1608,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1646,8 +1625,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1667,8 +1645,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1685,8 +1662,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1702,8 +1678,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1716,8 +1691,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1733,8 +1707,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1747,8 +1720,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1764,8 +1736,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1780,9 +1751,8 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the datasharePredicates. * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code dataSharePredicates.DataSharePredicates} object. - * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified - * 2.Incorrect parameters types - * 3.Parameter verification failed + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -1801,8 +1771,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1818,8 +1787,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -1837,8 +1805,7 @@ declare namespace distributedKVStore { * @param { KVStoreResultSet } resultSet - Indicates the {@code KVStoreResultSet} object to close. * @param { AsyncCallback } callback - the callback of closeResultSet. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1850,8 +1817,7 @@ declare namespace distributedKVStore { * @param { KVStoreResultSet } resultSet - Indicates the {@code KVStoreResultSet} object to close. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1864,8 +1830,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {number}: the number of results matching the * specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1880,8 +1845,7 @@ declare namespace distributedKVStore { * @returns { Promise } {number}: the number of results matching the specified * {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1892,7 +1856,7 @@ declare namespace distributedKVStore { /** * Backs up a database in the specified filename. * - * @param { string } file - Indicates the database backup filename. + * @param { string } file - Indicates the database backup filename, It can not be empty. * @param { AsyncCallback } callback - the callback of backup. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Parameter verification failed. @@ -1905,7 +1869,7 @@ declare namespace distributedKVStore { /** * Backs up a database in the specified filename. * - * @param { string } file - Indicates the database backup filename. + * @param { string } file - Indicates the database backup filename, It can not be empty. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Parameter verification failed. @@ -1918,7 +1882,7 @@ declare namespace distributedKVStore { /** * Restores a database from a specified database file. * - * @param { string } file - Indicates the database backup filename. + * @param { string } file - Indicates the database backup filename, It can not be empty. * @param { AsyncCallback } callback - the callback of restore. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Parameter verification failed. @@ -1931,7 +1895,7 @@ declare namespace distributedKVStore { /** * Restores a database from a specified database file. * - * @param { string } file - Indicates the database backup filename. + * @param { string } file - Indicates the database backup filename, It can not be empty. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Parameter verification failed. @@ -1944,7 +1908,7 @@ declare namespace distributedKVStore { /** * Delete database backup files based on the specified filenames. * - * @param { Array } files - Indicates the backup filenames to be deleted. + * @param { Array } files - Indicates the backup filenames to be deleted, It can not be empty. * @param { AsyncCallback> } callback - {Array<[string, number]>}: * the list of backup file and it's corresponding delete result which 0 means delete success * and otherwise failed. @@ -1958,7 +1922,7 @@ declare namespace distributedKVStore { /** * Delete database backup files based on the specified filenames. * - * @param { Array } files - Indicates the backup filenames to be deleted. + * @param { Array } files - Indicates the backup filenames to be deleted, It can not be empty. * @returns { Promise> } {Array<[string, number]>}: the list of backup * file and it's corresponding delete result which 0 means delete success and otherwise failed. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; @@ -2057,7 +2021,7 @@ declare namespace distributedKVStore { * means to enable synchronization, and false means the opposite. * @param { AsyncCallback } callback - the callback of enableSync. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2070,7 +2034,7 @@ declare namespace distributedKVStore { * means to enable synchronization, and false means the opposite. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2085,8 +2049,7 @@ declare namespace distributedKVStore { * data will be synchronized. * @param { AsyncCallback } callback - the callback of setSyncRange. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2101,8 +2064,7 @@ declare namespace distributedKVStore { * data will be synchronized. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2115,8 +2077,7 @@ declare namespace distributedKVStore { * database synchronization, in milliseconds. * @param { AsyncCallback } callback - the callback of setSyncParam. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2129,8 +2090,7 @@ declare namespace distributedKVStore { * database synchronization, in milliseconds. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2145,8 +2105,7 @@ declare namespace distributedKVStore { * {@code PULL}, or {@code PUSH_PULL}. * @param { number } delayMs - Indicates the delay allowed for the synchronization, in milliseconds. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2164,8 +2123,7 @@ declare namespace distributedKVStore { * {@code PULL}, or {@code PUSH_PULL}. * @param { number } delayMs - Indicates the delay allowed for the synchronization, in milliseconds. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2182,7 +2140,7 @@ declare namespace distributedKVStore { * @param { Callback } listener - {ChangeNotification}: the {@code ChangeNotification} * object indicates the data change events in the distributed database. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2197,7 +2155,7 @@ declare namespace distributedKVStore { * @param { Callback } listener - {ChangeNotification}: the {@code ChangeNotification} * object indicates the data change events in the distributed database. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2214,7 +2172,7 @@ declare namespace distributedKVStore { * deviceId and it's corresponding synchronization result which 0 means synchronization success * and otherwise failed. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2227,7 +2185,7 @@ declare namespace distributedKVStore { * @param { Callback } listener - {ChangeNotification}: the {@code ChangeNotification} * object indicates the data change events in the distributed database. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -2242,7 +2200,7 @@ declare namespace distributedKVStore { * deviceId and it's corresponding synchronization result which 0 means synchronization success * and otherwise failed. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + * 2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2320,7 +2278,7 @@ declare namespace distributedKVStore { /** * Obtains the value matching a specified device ID and key. * - * @param { string } deviceId - Indicates the device to be queried. + * @param { string } deviceId - Indicates the device to be queried. The length must be less than {@code MAX_KEY_LENGTH}. * @param { string } key - Indicates the key of the value to be queried. * @param { AsyncCallback } callback - * {boolean | string | number | Uint8Array}: the returned value specified by the deviceId and key. @@ -2338,7 +2296,7 @@ declare namespace distributedKVStore { /** * Obtains the value matching a specified device ID and key. * - * @param { string } deviceId - Indicates the device to be queried. + * @param { string } deviceId - Indicates the device to be queried. The length must be less than {@code MAX_KEY_LENGTH}. * @param { string } key - Indicates the key of the value to be queried. * @returns { Promise } * {Uint8Array|string|boolean|number}: the returned value specified by the deviceId and key. @@ -2360,8 +2318,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * that match the local device ID and specified key prefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2376,8 +2333,7 @@ declare namespace distributedKVStore { * @returns { Promise } {Entry[]}: the list of all key-value pairs that match the * local device ID and specified key prefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2393,8 +2349,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * that match the specified deviceId and key prefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2410,8 +2365,7 @@ declare namespace distributedKVStore { * @returns { Promise } {Entry[]}: the list of all key-value pairs that match the * specified deviceId and key prefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2426,8 +2380,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * matching the local device ID and specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2442,8 +2395,7 @@ declare namespace distributedKVStore { * @returns { Promise } {Entry[]}: the list of all key-value pairs matching the local device ID and * specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2459,8 +2411,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * matching the specified deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2476,8 +2427,7 @@ declare namespace distributedKVStore { * @returns { Promise } {Entry[]}: the list of all key-value pairs matching the * specified deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2496,8 +2446,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2514,8 +2463,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2535,8 +2483,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2553,8 +2500,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2575,8 +2521,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2594,8 +2539,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2616,8 +2560,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2635,8 +2578,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2652,8 +2594,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2666,8 +2607,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2683,8 +2623,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2697,8 +2636,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2715,8 +2653,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2730,8 +2667,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2748,8 +2684,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2763,8 +2698,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2780,8 +2714,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2797,8 +2730,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2817,8 +2749,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2834,8 +2765,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2855,8 +2785,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2873,8 +2802,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2898,8 +2826,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2916,8 +2843,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2936,7 +2862,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {number}: the number of results matching the * local device ID and specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2951,7 +2877,7 @@ declare namespace distributedKVStore { * @returns { Promise } {number}: the number of results matching the local device ID and specified * {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2967,7 +2893,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {number}: the number of results matching the * specified deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2983,7 +2909,7 @@ declare namespace distributedKVStore { * @returns { Promise } {number}: the number of results matching the specified * deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2998,10 +2924,11 @@ declare namespace distributedKVStore { * to create a {@link KVManager} instance. * * @param { KVManagerConfig } config - Indicates the KVStore configuration information, - * including the package name and context. + * including the package name and context, and package name can not be empty. * @returns { KVManager } : the {@code KVManager} instance. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types,3.Parameter verification failed. + * 2.Incorrect parameters types; + * 3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -3133,7 +3060,8 @@ declare namespace distributedKVStore { * * @param { string } appId - Identifies the application that obtains the databases, and cannot exceed 256 characters. * @param { AsyncCallback } callback - {string[]}: the storeId of all created KVStore databases. - * @throws { BusinessError } 401 - Parameter error.Possible causes:Mandatory parameters are left unspecified. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; + * 2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -3145,7 +3073,8 @@ declare namespace distributedKVStore { * * @param { string } appId - Identifies the application that obtains the databases, and cannot exceed 256 characters. * @returns { Promise } {string[]}: the storeId of all created KVStore databases. - * @throws { BusinessError } 401 - Parameter error.Possible causes:Mandatory parameters are left unspecified. + * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified. + * 2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ -- Gitee From c7954405783d123782b9d0489d7376677410917b Mon Sep 17 00:00:00 2001 From: yangliu Date: Wed, 24 Apr 2024 22:04:02 +0800 Subject: [PATCH 4/8] fix Signed-off-by: yangliu --- api/@ohos.data.distributedKVStore.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/api/@ohos.data.distributedKVStore.d.ts b/api/@ohos.data.distributedKVStore.d.ts index af1c9dfa8..136e13b2e 100644 --- a/api/@ohos.data.distributedKVStore.d.ts +++ b/api/@ohos.data.distributedKVStore.d.ts @@ -1481,7 +1481,6 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - the callback of removeDeviceData. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Parameter verification failed. - * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 -- Gitee From e667397780b16b97763d64d5b07c0b4aa240b226 Mon Sep 17 00:00:00 2001 From: yangliu Date: Thu, 25 Apr 2024 11:32:11 +0800 Subject: [PATCH 5/8] update Signed-off-by: yangliu --- api/@ohos.data.distributedKVStore.d.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/api/@ohos.data.distributedKVStore.d.ts b/api/@ohos.data.distributedKVStore.d.ts index 136e13b2e..4d3219f0d 100644 --- a/api/@ohos.data.distributedKVStore.d.ts +++ b/api/@ohos.data.distributedKVStore.d.ts @@ -1172,7 +1172,7 @@ declare namespace distributedKVStore { * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @param { AsyncCallback } callback - the callback of putBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1184,7 +1184,7 @@ declare namespace distributedKVStore { * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @param { AsyncCallback } callback - the callback of putBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1199,7 +1199,7 @@ declare namespace distributedKVStore { * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1211,7 +1211,7 @@ declare namespace distributedKVStore { * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; + * 2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1226,7 +1226,7 @@ declare namespace distributedKVStore { * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @param { AsyncCallback } callback - the callback of putBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1241,7 +1241,7 @@ declare namespace distributedKVStore { * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @param { AsyncCallback } callback - the callback of putBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1259,7 +1259,7 @@ declare namespace distributedKVStore { * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1274,7 +1274,7 @@ declare namespace distributedKVStore { * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1354,7 +1354,7 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @param { AsyncCallback } callback - the callback of delete. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1369,7 +1369,7 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @param { AsyncCallback } callback - the callback of delete. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1387,7 +1387,7 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1402,7 +1402,7 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; + * 2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1446,7 +1446,7 @@ declare namespace distributedKVStore { /** * Deletes key-value pairs in batches from the {@code SingleKVStore} database. * - * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches. + * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches, It can not be empty. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Incorrect parameters types; -- Gitee From f3141875746ee131793e481412691b08f6e963cf Mon Sep 17 00:00:00 2001 From: yangliu Date: Sun, 28 Apr 2024 16:24:56 +0800 Subject: [PATCH 6/8] update Signed-off-by: yangliu --- api/@ohos.data.distributedKVStore.d.ts | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/api/@ohos.data.distributedKVStore.d.ts b/api/@ohos.data.distributedKVStore.d.ts index 4d3219f0d..08db2e9ab 100644 --- a/api/@ohos.data.distributedKVStore.d.ts +++ b/api/@ohos.data.distributedKVStore.d.ts @@ -1855,7 +1855,8 @@ declare namespace distributedKVStore { /** * Backs up a database in the specified filename. * - * @param { string } file - Indicates the database backup filename, It can not be empty. + * @param { string } file - Indicates the database backup filename, It can not be empty and + * The length must be less than {@code MAX_KEY_LENGTH}. * @param { AsyncCallback } callback - the callback of backup. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Parameter verification failed. @@ -1868,7 +1869,8 @@ declare namespace distributedKVStore { /** * Backs up a database in the specified filename. * - * @param { string } file - Indicates the database backup filename, It can not be empty. + * @param { string } file - Indicates the database backup filename, It can not be empty and + * The length must be less than {@code MAX_KEY_LENGTH}. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Parameter verification failed. @@ -1881,7 +1883,8 @@ declare namespace distributedKVStore { /** * Restores a database from a specified database file. * - * @param { string } file - Indicates the database backup filename, It can not be empty. + * @param { string } file - Indicates the database backup filename, It can not be empty and + * The length must be less than {@code MAX_KEY_LENGTH}. * @param { AsyncCallback } callback - the callback of restore. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Parameter verification failed. @@ -1894,7 +1897,8 @@ declare namespace distributedKVStore { /** * Restores a database from a specified database file. * - * @param { string } file - Indicates the database backup filename, It can not be empty. + * @param { string } file - Indicates the database backup filename, It can not be empty and + * The length must be less than {@code MAX_KEY_LENGTH}. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; * 2.Parameter verification failed. @@ -1907,7 +1911,8 @@ declare namespace distributedKVStore { /** * Delete database backup files based on the specified filenames. * - * @param { Array } files - Indicates the backup filenames to be deleted, It can not be empty. + * @param { Array } files - Indicates the backup filenames to be deleted, It can not be empty and + * The length must be less than {@code MAX_KEY_LENGTH}. * @param { AsyncCallback> } callback - {Array<[string, number]>}: * the list of backup file and it's corresponding delete result which 0 means delete success * and otherwise failed. @@ -1921,7 +1926,8 @@ declare namespace distributedKVStore { /** * Delete database backup files based on the specified filenames. * - * @param { Array } files - Indicates the backup filenames to be deleted, It can not be empty. + * @param { Array } files - Indicates the backup filenames to be deleted, It can not be empty and + * The length must be less than {@code MAX_KEY_LENGTH}. * @returns { Promise> } {Array<[string, number]>}: the list of backup * file and it's corresponding delete result which 0 means delete success and otherwise failed. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; @@ -2277,8 +2283,8 @@ declare namespace distributedKVStore { /** * Obtains the value matching a specified device ID and key. * - * @param { string } deviceId - Indicates the device to be queried. The length must be less than {@code MAX_KEY_LENGTH}. - * @param { string } key - Indicates the key of the value to be queried. + * @param { string } deviceId - Indicates the device to be queried. + * @param { string } key - Indicates the key of the value to be queried. The length must be less than {@code MAX_KEY_LENGTH}. * @param { AsyncCallback } callback - * {boolean | string | number | Uint8Array}: the returned value specified by the deviceId and key. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; @@ -2295,8 +2301,8 @@ declare namespace distributedKVStore { /** * Obtains the value matching a specified device ID and key. * - * @param { string } deviceId - Indicates the device to be queried. The length must be less than {@code MAX_KEY_LENGTH}. - * @param { string } key - Indicates the key of the value to be queried. + * @param { string } deviceId - Indicates the device to be queried. + * @param { string } key - Indicates the key of the value to be queried. The length must be less than {@code MAX_KEY_LENGTH}. * @returns { Promise } * {Uint8Array|string|boolean|number}: the returned value specified by the deviceId and key. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; -- Gitee From bb7328f66ac7b46e07052cb905b7634acc89f36a Mon Sep 17 00:00:00 2001 From: yangliu Date: Mon, 29 Apr 2024 11:28:27 +0800 Subject: [PATCH 7/8] update Signed-off-by: yangliu --- api/@ohos.data.distributedKVStore.d.ts | 354 ++++++++++++------------- 1 file changed, 177 insertions(+), 177 deletions(-) diff --git a/api/@ohos.data.distributedKVStore.d.ts b/api/@ohos.data.distributedKVStore.d.ts index 08db2e9ab..a602ca244 100644 --- a/api/@ohos.data.distributedKVStore.d.ts +++ b/api/@ohos.data.distributedKVStore.d.ts @@ -763,8 +763,8 @@ declare namespace distributedKVStore { * @param { number | string | boolean } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -777,8 +777,8 @@ declare namespace distributedKVStore { * @param { number | string | boolean } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -792,8 +792,8 @@ declare namespace distributedKVStore { * @param { number | string | boolean } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -806,8 +806,8 @@ declare namespace distributedKVStore { * @param { number | string } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -821,8 +821,8 @@ declare namespace distributedKVStore { * @param { number | string } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -836,8 +836,8 @@ declare namespace distributedKVStore { * @param { number | string } value - Indicates the value to be compared. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -849,8 +849,8 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -863,8 +863,8 @@ declare namespace distributedKVStore { * @param { number[] } valueList - Indicates the int value list. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -877,8 +877,8 @@ declare namespace distributedKVStore { * @param { string[] } valueList - Indicates the string value list. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -891,8 +891,8 @@ declare namespace distributedKVStore { * @param { number[] } valueList - Indicates the int value list. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -905,8 +905,8 @@ declare namespace distributedKVStore { * @param { string[] } valueList - Indicates the string value list. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -919,8 +919,8 @@ declare namespace distributedKVStore { * @param { string } value - Indicates the string value. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -933,8 +933,8 @@ declare namespace distributedKVStore { * @param { string } value - Indicates the string value. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -966,8 +966,8 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -979,8 +979,8 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the field, which cannot contain ^. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -993,7 +993,7 @@ declare namespace distributedKVStore { * @param { number } offset - Indicates the start position. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1005,7 +1005,7 @@ declare namespace distributedKVStore { * @param { string } field - Indicates the specified field. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1039,7 +1039,7 @@ declare namespace distributedKVStore { * @param { string } prefix - Indicates the specified key prefix. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1051,7 +1051,7 @@ declare namespace distributedKVStore { * @param { string } index - Indicates the index to set. * @returns { Query } Returns the {@coed Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1063,8 +1063,8 @@ declare namespace distributedKVStore { * @param { string } deviceId - Specify device id to query from, It can not be empty. * @returns { Query } Returns the {@code Query} object with device ID prefix added. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1105,8 +1105,8 @@ declare namespace distributedKVStore { * @param { Uint8Array | string | number | boolean } value - Indicates the value to be inserted. * @param { AsyncCallback } callback - the callback of put. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1121,8 +1121,8 @@ declare namespace distributedKVStore { * @param { Uint8Array | string | number | boolean } value - Indicates the value to be inserted. * @param { AsyncCallback } callback - the callback of put. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1140,8 +1140,8 @@ declare namespace distributedKVStore { * @param { Uint8Array | string | number | boolean } value - Indicates the value to be inserted. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1156,8 +1156,8 @@ declare namespace distributedKVStore { * @param { Uint8Array | string | number | boolean } value - Indicates the value to be inserted. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1172,7 +1172,7 @@ declare namespace distributedKVStore { * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @param { AsyncCallback } callback - the callback of putBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1184,7 +1184,7 @@ declare namespace distributedKVStore { * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @param { AsyncCallback } callback - the callback of putBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1199,7 +1199,7 @@ declare namespace distributedKVStore { * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1211,7 +1211,7 @@ declare namespace distributedKVStore { * @param { Entry[] } entries - Indicates the key-value pairs to be inserted in batches. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1226,7 +1226,7 @@ declare namespace distributedKVStore { * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @param { AsyncCallback } callback - the callback of putBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1241,7 +1241,7 @@ declare namespace distributedKVStore { * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @param { AsyncCallback } callback - the callback of putBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1259,7 +1259,7 @@ declare namespace distributedKVStore { * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1274,7 +1274,7 @@ declare namespace distributedKVStore { * @param { Array } value - Indicates the ValuesBucket array to be inserted. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1293,8 +1293,8 @@ declare namespace distributedKVStore { * Spaces before and after the key will be cleared. * @param { AsyncCallback } callback - the callback of delete. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1307,8 +1307,8 @@ declare namespace distributedKVStore { * Spaces before and after the key will be cleared. * @param { AsyncCallback } callback - the callback of delete. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1324,8 +1324,8 @@ declare namespace distributedKVStore { * Spaces before and after the key will be cleared. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1338,8 +1338,8 @@ declare namespace distributedKVStore { * Spaces before and after the key will be cleared. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1354,7 +1354,7 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @param { AsyncCallback } callback - the callback of delete. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1369,7 +1369,7 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @param { AsyncCallback } callback - the callback of delete. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1387,7 +1387,7 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1402,7 +1402,7 @@ declare namespace distributedKVStore { * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the dataSharePredicates. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1420,8 +1420,8 @@ declare namespace distributedKVStore { * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches, It can not be empty. * @param { AsyncCallback } callback - the callback of deleteBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1433,8 +1433,8 @@ declare namespace distributedKVStore { * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches, It can not be empty. * @param { AsyncCallback } callback - the callback of deleteBatch. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1449,8 +1449,8 @@ declare namespace distributedKVStore { * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches, It can not be empty. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1462,8 +1462,8 @@ declare namespace distributedKVStore { * @param { string[] } keys - Indicates the key-value pairs to be deleted in batches, It can not be empty. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. @@ -1480,7 +1480,7 @@ declare namespace distributedKVStore { * @param { string } deviceId - Identifies the device whose data is to be removed and the value cannot be the current device ID. * @param { AsyncCallback } callback - the callback of removeDeviceData. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + *
2.Parameter verification failed. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 @@ -1495,7 +1495,7 @@ declare namespace distributedKVStore { * @param { string } deviceId - Identifies the device whose data is to be removed and the value cannot be the current device ID. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + *
2.Parameter verification failed. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 @@ -1509,8 +1509,8 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - * {Uint8Array|string|boolean|number}: the returned value specified by the key. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1526,8 +1526,8 @@ declare namespace distributedKVStore { * @returns { Promise } * {Uint8Array|string|boolean|number}: the returned value specified by the key. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1543,7 +1543,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * that match the specified key prefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1558,7 +1558,7 @@ declare namespace distributedKVStore { * @returns { Promise } {Entry[]}: the list of all key-value pairs that match the * specified key prefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1573,7 +1573,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * matching the specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1588,7 +1588,7 @@ declare namespace distributedKVStore { * @returns { Promise } {Entry[]}: the list of all key-value pairs matching the * specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1607,7 +1607,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1624,7 +1624,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1644,7 +1644,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1661,7 +1661,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1677,7 +1677,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1690,7 +1690,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1706,7 +1706,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1719,7 +1719,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1735,7 +1735,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1751,7 +1751,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -1770,7 +1770,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -1786,7 +1786,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -1804,7 +1804,7 @@ declare namespace distributedKVStore { * @param { KVStoreResultSet } resultSet - Indicates the {@code KVStoreResultSet} object to close. * @param { AsyncCallback } callback - the callback of closeResultSet. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1816,7 +1816,7 @@ declare namespace distributedKVStore { * @param { KVStoreResultSet } resultSet - Indicates the {@code KVStoreResultSet} object to close. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1829,7 +1829,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {number}: the number of results matching the * specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1844,7 +1844,7 @@ declare namespace distributedKVStore { * @returns { Promise } {number}: the number of results matching the specified * {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -1859,7 +1859,7 @@ declare namespace distributedKVStore { * The length must be less than {@code MAX_KEY_LENGTH}. * @param { AsyncCallback } callback - the callback of backup. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + *
2.Parameter verification failed. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -1873,7 +1873,7 @@ declare namespace distributedKVStore { * The length must be less than {@code MAX_KEY_LENGTH}. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + *
2.Parameter verification failed. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -1887,7 +1887,7 @@ declare namespace distributedKVStore { * The length must be less than {@code MAX_KEY_LENGTH}. * @param { AsyncCallback } callback - the callback of restore. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + *
2.Parameter verification failed. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -1901,7 +1901,7 @@ declare namespace distributedKVStore { * The length must be less than {@code MAX_KEY_LENGTH}. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + *
2.Parameter verification failed. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -1917,7 +1917,7 @@ declare namespace distributedKVStore { * the list of backup file and it's corresponding delete result which 0 means delete success * and otherwise failed. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + *
2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -1931,7 +1931,7 @@ declare namespace distributedKVStore { * @returns { Promise> } {Array<[string, number]>}: the list of backup * file and it's corresponding delete result which 0 means delete success and otherwise failed. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + *
2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2026,7 +2026,7 @@ declare namespace distributedKVStore { * means to enable synchronization, and false means the opposite. * @param { AsyncCallback } callback - the callback of enableSync. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2039,7 +2039,7 @@ declare namespace distributedKVStore { * means to enable synchronization, and false means the opposite. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2054,7 +2054,7 @@ declare namespace distributedKVStore { * data will be synchronized. * @param { AsyncCallback } callback - the callback of setSyncRange. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2069,7 +2069,7 @@ declare namespace distributedKVStore { * data will be synchronized. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2082,7 +2082,7 @@ declare namespace distributedKVStore { * database synchronization, in milliseconds. * @param { AsyncCallback } callback - the callback of setSyncParam. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2095,7 +2095,7 @@ declare namespace distributedKVStore { * database synchronization, in milliseconds. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2110,7 +2110,7 @@ declare namespace distributedKVStore { * {@code PULL}, or {@code PUSH_PULL}. * @param { number } delayMs - Indicates the delay allowed for the synchronization, in milliseconds. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2128,7 +2128,7 @@ declare namespace distributedKVStore { * {@code PULL}, or {@code PUSH_PULL}. * @param { number } delayMs - Indicates the delay allowed for the synchronization, in milliseconds. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2145,7 +2145,7 @@ declare namespace distributedKVStore { * @param { Callback } listener - {ChangeNotification}: the {@code ChangeNotification} * object indicates the data change events in the distributed database. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2160,7 +2160,7 @@ declare namespace distributedKVStore { * @param { Callback } listener - {ChangeNotification}: the {@code ChangeNotification} * object indicates the data change events in the distributed database. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2177,7 +2177,7 @@ declare namespace distributedKVStore { * deviceId and it's corresponding synchronization result which 0 means synchronization success * and otherwise failed. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2190,7 +2190,7 @@ declare namespace distributedKVStore { * @param { Callback } listener - {ChangeNotification}: the {@code ChangeNotification} * object indicates the data change events in the distributed database. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -2205,7 +2205,7 @@ declare namespace distributedKVStore { * deviceId and it's corresponding synchronization result which 0 means synchronization success * and otherwise failed. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2253,8 +2253,8 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - * {Uint8Array|string|boolean|number}: the returned value specified by the local device ID and specified key. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2270,8 +2270,8 @@ declare namespace distributedKVStore { * @returns { Promise } * {Uint8Array|string|boolean|number}: the returned value specified by the local device ID and specified key. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2288,8 +2288,8 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - * {boolean | string | number | Uint8Array}: the returned value specified by the deviceId and key. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2306,8 +2306,8 @@ declare namespace distributedKVStore { * @returns { Promise } * {Uint8Array|string|boolean|number}: the returned value specified by the deviceId and key. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100004 - Not found. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2323,7 +2323,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * that match the local device ID and specified key prefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2338,7 +2338,7 @@ declare namespace distributedKVStore { * @returns { Promise } {Entry[]}: the list of all key-value pairs that match the * local device ID and specified key prefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2354,7 +2354,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * that match the specified deviceId and key prefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2370,7 +2370,7 @@ declare namespace distributedKVStore { * @returns { Promise } {Entry[]}: the list of all key-value pairs that match the * specified deviceId and key prefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2385,7 +2385,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * matching the local device ID and specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2400,7 +2400,7 @@ declare namespace distributedKVStore { * @returns { Promise } {Entry[]}: the list of all key-value pairs matching the local device ID and * specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2416,7 +2416,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {Entry[]}: the list of all key-value pairs * matching the specified deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2432,7 +2432,7 @@ declare namespace distributedKVStore { * @returns { Promise } {Entry[]}: the list of all key-value pairs matching the * specified deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2451,7 +2451,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2468,7 +2468,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2488,7 +2488,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2505,7 +2505,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2526,7 +2526,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2544,7 +2544,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2565,7 +2565,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2583,7 +2583,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and keyPrefix. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2599,7 +2599,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2612,7 +2612,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2628,7 +2628,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2641,7 +2641,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2658,7 +2658,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2672,7 +2672,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2689,7 +2689,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2703,7 +2703,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2719,7 +2719,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2735,7 +2735,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2754,7 +2754,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2770,7 +2770,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the local device ID and specified {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2790,7 +2790,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2807,7 +2807,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2831,7 +2831,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. @@ -2848,7 +2848,7 @@ declare namespace distributedKVStore { * @returns { Promise } {KVStoreResultSet}: the {@code KVStoreResultSet} * object matching the specified deviceId and {@code dataSharePredicates.DataSharePredicates} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 15100001 - Over max limits. * @throws { BusinessError } 15100003 - Database corrupted. @@ -2867,7 +2867,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {number}: the number of results matching the * local device ID and specified {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2882,7 +2882,7 @@ declare namespace distributedKVStore { * @returns { Promise } {number}: the number of results matching the local device ID and specified * {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2898,7 +2898,7 @@ declare namespace distributedKVStore { * @param { AsyncCallback } callback - {number}: the number of results matching the * specified deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2914,7 +2914,7 @@ declare namespace distributedKVStore { * @returns { Promise } {number}: the number of results matching the specified * deviceId and {@code Query} object. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @throws { BusinessError } 15100003 - Database corrupted. * @throws { BusinessError } 15100005 - Database or result set already closed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore @@ -2932,8 +2932,8 @@ declare namespace distributedKVStore { * including the package name and context, and package name can not be empty. * @returns { KVManager } : the {@code KVManager} instance. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -2957,8 +2957,8 @@ declare namespace distributedKVStore { * obtaining the KVStore database. * @param { AsyncCallback } callback - {T}: the {@code SingleKVStore} or {@code DeviceKVStore} instance. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100002 - Open existed database with changed options. * @throws { BusinessError } 15100003 - Database corrupted. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2976,8 +2976,8 @@ declare namespace distributedKVStore { * obtaining the KVStore database. * @returns { Promise } {T}: the {@code SingleKVStore} or {@code DeviceKVStore} instance. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @throws { BusinessError } 15100002 - Open existed database with changed options. * @throws { BusinessError } 15100003 - Database corrupted. * @syscap SystemCapability.DistributedDataManager.KVStore.Core @@ -2998,7 +2998,7 @@ declare namespace distributedKVStore { * and underscores (_), and cannot exceed 128 characters. * @param { AsyncCallback } callback - the callback of closeKVStore. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + *
2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -3017,7 +3017,7 @@ declare namespace distributedKVStore { * and underscores (_), and cannot exceed 128 characters. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + *
2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -3034,7 +3034,7 @@ declare namespace distributedKVStore { * and underscores (_), and cannot exceed 128 characters. * @param { AsyncCallback } callback - the callback of deleteKVStore. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + *
2.Parameter verification failed. * @throws { BusinessError } 15100004 - Not found. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -3052,7 +3052,7 @@ declare namespace distributedKVStore { * and underscores (_), and cannot exceed 128 characters. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + *
2.Parameter verification failed. * @throws { BusinessError } 15100004 - Not found. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 @@ -3066,7 +3066,7 @@ declare namespace distributedKVStore { * @param { string } appId - Identifies the application that obtains the databases, and cannot exceed 256 characters. * @param { AsyncCallback } callback - {string[]}: the storeId of all created KVStore databases. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + *
2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -3079,7 +3079,7 @@ declare namespace distributedKVStore { * @param { string } appId - Identifies the application that obtains the databases, and cannot exceed 256 characters. * @returns { Promise } {string[]}: the storeId of all created KVStore databases. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified. - * 2.Parameter verification failed. + *
2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -3093,8 +3093,8 @@ declare namespace distributedKVStore { * @param { 'distributedDataServiceDie' } event - Subscribed event name, fixed as 'distributedDataServiceDie', as a service status change events. * @param { Callback } deathCallback - callback to be invoked when the data manager service is terminated. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 */ @@ -3108,8 +3108,8 @@ declare namespace distributedKVStore { * @param { 'distributedDataServiceDie' } event - Unsubscribe event name, fixed as 'distributedDataServiceDie', as a service status change events. * @param { Callback } deathCallback - the data manager service is terminated callback which has been registered. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types; - * 3.Parameter verification failed. + *
2.Incorrect parameters types; + *
3.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 */ -- Gitee From d3cefedc0ee23f25fdef9c9f00c06225532fb1f9 Mon Sep 17 00:00:00 2001 From: yangliu Date: Mon, 29 Apr 2024 11:33:04 +0800 Subject: [PATCH 8/8] update Signed-off-by: yangliu --- api/@ohos.data.distributedKVStore.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/@ohos.data.distributedKVStore.d.ts b/api/@ohos.data.distributedKVStore.d.ts index a602ca244..1918c77d9 100644 --- a/api/@ohos.data.distributedKVStore.d.ts +++ b/api/@ohos.data.distributedKVStore.d.ts @@ -542,7 +542,7 @@ declare namespace distributedKVStore { * * @param { string } name - It can not be empty. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Parameter verification failed. + *
2.Parameter verification failed. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 */ @@ -555,7 +555,7 @@ declare namespace distributedKVStore { * @param { FieldNode } child - The field node to append. * @returns { boolean } Returns true if the child node is successfully added to this {@code FieldNode} and false otherwise. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect Parameters types. + *
2.Incorrect Parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore * @since 9 */ @@ -665,7 +665,7 @@ declare namespace distributedKVStore { * final position is invalid, false will be returned. * @returns { boolean } Returns true if the operation succeeds; return false otherwise. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ @@ -677,7 +677,7 @@ declare namespace distributedKVStore { * @param { number } position - Indicates the absolute position. * @returns { boolean } Returns true if the operation succeeds; return false otherwise. * @throws { BusinessError } 401 - Parameter error.Possible causes:1.Mandatory parameters are left unspecified; - * 2.Incorrect parameters types. + *
2.Incorrect parameters types. * @syscap SystemCapability.DistributedDataManager.KVStore.Core * @since 9 */ -- Gitee