Signed-off-by: yangliu <yangliu146@huawei.com>

Changes to be committed:
	modified:   api/@ohos.data.dataAbility.d.ts
	modified:   api/@ohos.data.distributedData.d.ts
	modified:   api/@ohos.data.distributedDataObject.d.ts
	modified:   api/@ohos.data.rdb.d.ts
	modified:   api/@ohos.data.storage.d.ts
	modified:   api/data/rdb/resultSet.d.ts
This commit is contained in:
yangliu 2022-02-15 16:06:56 +08:00
parent 3234aa23b3
commit 5dc3992eb2
6 changed files with 287 additions and 579 deletions

View File

@ -19,8 +19,7 @@ import rdb from './@ohos.data.rdb';
* Provides predicates for implementing diverse query methods.
*
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @import import data_dataAbility from '@ohos.data.dataAbility';
* @permission N/A
*/
@ -30,8 +29,7 @@ declare namespace dataAbility {
*
* @note This method is similar to = of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param name Indicates the table name.
* @param dataAbilityPredicates Indicates the dataAbility predicates.
* @return Returns an RdbPredicates.
@ -42,8 +40,7 @@ declare namespace dataAbility {
* Manages relational database configurations.
*
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @import import data_dataAbility from '@ohos.data.dataAbility';
* @permission N/A
*/
@ -54,8 +51,7 @@ declare namespace dataAbility {
*
* @note This method is similar to = of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name in the database table.
* @param value Indicates the value to match with the DataAbilityPredicates.
* @return Returns the DataAbilityPredicates that match the specified field.
@ -68,8 +64,7 @@ declare namespace dataAbility {
*
* @note This method is similar to != of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name in the database table.
* @param value Indicates the value to match with the DataAbilityPredicates.
* @return Returns the DataAbilityPredicates that match the specified field.
@ -81,8 +76,7 @@ declare namespace dataAbility {
*
* @note This method is similar to ( of the SQL statement and needs to be used together with endWrap().
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @return Returns the DataAbilityPredicates with the left parenthesis.
*/
beginWrap(): DataAbilityPredicates;
@ -93,8 +87,7 @@ declare namespace dataAbility {
* @note This method is similar to ) of the SQL statement and needs to be used together
* with beginWrap().
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @return Returns the DataAbilityPredicates with the right parenthesis.
*/
endWrap(): DataAbilityPredicates;
@ -104,8 +97,7 @@ declare namespace dataAbility {
*
* @note This method is similar to or of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @return Returns the DataAbilityPredicates with the or condition.
*/
or(): DataAbilityPredicates;
@ -115,8 +107,7 @@ declare namespace dataAbility {
*
* @note This method is similar to and of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @return Returns the DataAbilityPredicates with the and condition.
*/
and(): DataAbilityPredicates;
@ -127,8 +118,7 @@ declare namespace dataAbility {
*
* @note This method is similar to contains of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name in the database table.
* @param value Indicates the value to match with the DataAbilityPredicates.
* @return Returns the DataAbilityPredicates that match the specified field.
@ -141,8 +131,7 @@ declare namespace dataAbility {
*
* @note This method is similar to value% of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name in the database table.
* @param value Indicates the value to match with the DataAbilityPredicates.
* @return Returns the DataAbilityPredicates that match the specified field.
@ -155,8 +144,7 @@ declare namespace dataAbility {
*
* @note This method is similar to %value of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name in the database table.
* @param value Indicates the value to match with the DataAbilityPredicates.
* @return Returns the DataAbilityPredicates that match the specified field.
@ -168,8 +156,7 @@ declare namespace dataAbility {
*
* @note This method is similar to is null of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name in the database table.
* @return Returns the DataAbilityPredicates that match the specified field.
*/
@ -180,8 +167,7 @@ declare namespace dataAbility {
*
* @note This method is similar to is not null of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name in the database table.
* @return Returns the DataAbilityPredicates that match the specified field.
*/
@ -193,8 +179,7 @@ declare namespace dataAbility {
*
* @note This method is similar to like of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name in the database table.
* @param value Indicates the value to match with the DataAbilityPredicates. The percent sign (%) in the value
* is a wildcard (like * in a regular expression).
@ -208,8 +193,7 @@ declare namespace dataAbility {
*
* @note Different from like, the input parameters of this method are case-sensitive.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name in the database table.
* @param value Indicates the value to match with DataAbilityPredicates.
* @return Returns the SQL statement with the specified DataAbilityPredicates.
@ -221,8 +205,7 @@ declare namespace dataAbility {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name.
* @param low Indicates the minimum value.
* @param high Indicates the maximum value.
@ -236,8 +219,7 @@ declare namespace dataAbility {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name in the database table.
* @param low Indicates the minimum value to match with DataAbilityPredicates}.
* @param high Indicates the maximum value to match with DataAbilityPredicates}.
@ -250,8 +232,7 @@ declare namespace dataAbility {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name.
* @param value Indicates the String field.
* @return Returns the SQL query statement with the specified DataAbilityPredicates.
@ -263,8 +244,7 @@ declare namespace dataAbility {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name.
* @param value Indicates the String field.
* @return Returns the SQL query statement with the specified DataAbilityPredicates.
@ -276,8 +256,7 @@ declare namespace dataAbility {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name.
* @param value Indicates the String field.
* @return Returns the SQL query statement with the specified DataAbilityPredicates.
@ -289,8 +268,7 @@ declare namespace dataAbility {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name.
* @param value Indicates the String field.
* @return Returns the SQL query statement with the specified DataAbilityPredicates.
@ -303,8 +281,7 @@ declare namespace dataAbility {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name for sorting the return list.
* @return Returns the SQL query statement with the specified DataAbilityPredicates.
*/
@ -316,8 +293,7 @@ declare namespace dataAbility {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name for sorting the return list.
* @return Returns the SQL query statement with the specified DataAbilityPredicates.
*/
@ -328,8 +304,7 @@ declare namespace dataAbility {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @return Returns the SQL query statement with the specified DataAbilityPredicates.
*/
distinct(): DataAbilityPredicates;
@ -339,8 +314,7 @@ declare namespace dataAbility {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param value Indicates the max length of the return list.
* @return Returns the SQL query statement with the specified DataAbilityPredicates.
* @throws IllegalPredicateException Throws this exception if DataAbilityPredicates are added to a wrong position.
@ -352,8 +326,7 @@ declare namespace dataAbility {
*
* @note Use this method together with limit(int).
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param rowOffset Indicates the start position of the returned result. The value is a positive integer.
* @return Returns the SQL query statement with the specified AbsPredicates.
*/
@ -364,8 +337,7 @@ declare namespace dataAbility {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param fields Indicates the specified columns by which query results are grouped.
* @return Returns the DataAbilityPredicates with the specified columns by which query results are grouped.
*/
@ -376,8 +348,7 @@ declare namespace dataAbility {
*
* @note Before using this method, you need to create an index column.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param indexName Indicates the name of the index column.
* @return Returns DataAbilityPredicates with the specified index column.
*/
@ -389,8 +360,7 @@ declare namespace dataAbility {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name in the database table.
* @param values Indicates the values to match with DataAbilityPredicates.
* @return Returns DataAbilityPredicates that matches the specified field.
@ -403,8 +373,7 @@ declare namespace dataAbility {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @param field Indicates the column name in the database table.
* @param values Indicates the values to match with DataAbilityPredicates.
* @return Returns DataAbilityPredicates that matches the specified field.
@ -414,8 +383,7 @@ declare namespace dataAbility {
/**
* Indicates possible value types
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.DataShare.Core
* @import import data_rdb from '@ohos.data.rdb';
* @permission N/A
*/

File diff suppressed because it is too large Load Diff

View File

@ -19,8 +19,7 @@ import {AsyncCallback, Callback} from './basic';
*
* @name distributedDataObject
* @since 8
* @sysCap
* @devices phone
* @syscap SystemCapability.DistributedDataManager.DataObject.Core
*/
declare namespace distributedDataObject {
/**
@ -43,8 +42,7 @@ declare namespace distributedDataObject {
/**
* Object create by {@link createDistributedObject}.
*
* @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR
* @devices phone
* @syscap SystemCapability.DistributedDataManager.DataObject.Core
* @since 8
*/
interface DistributedObject {
@ -72,26 +70,6 @@ declare namespace distributedDataObject {
* @since 8
*/
off(type: 'change', callback?: Callback<{ sessionId: string, fields: Array<string> }>): void;
/**
* On watch of status
*
* @param callback Indicates the observer of object status changed.
* sessionId: The sessionId of the changed object
* networkId: NetworkId of the changed device
* status: 'online' The object became online on the device and data can be synced to the device
* 'offline' The object became offline on the device and the object can not sync any data
* @since 8
*/
on(type: 'status', callback: Callback<{ sessionId: string, networkId: string, status: 'online' | 'offline' }>): void;
/**
* Off watch of status
*
* @param callback If not null, off the callback, if undefined, off all callbacks
* @since 8
*/
off(type: 'status', callback?: Callback<{ sessionId: string, deviceId: string, status: 'online' | 'offline' }>): void;
}
}

View File

@ -20,8 +20,7 @@ import Context from "./application/Context";
* Provides methods for rdbStore create and delete.
*
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @import import data_rdb from '@ohos.data.rdb';
* @permission N/A
*/
@ -34,8 +33,7 @@ declare namespace rdb {
*
* @note N/A
* @since 8
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
*
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param context Indicates the context of application or capability.
* @param config Indicates the configuration of the database related to this RDB store. The configurations include
* the database path, storage mode, and whether the database is read-only.
@ -50,8 +48,7 @@ declare namespace rdb {
*
* @note N/A
* @since 8
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
*
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param context Indicates the context of application or capability.
* @param name Indicates the database name.
* @return Returns true if the database is deleted; returns false otherwise.
@ -63,8 +60,7 @@ declare namespace rdb {
* Indicates the database synchronization mode.
*
* @since 8
* @Syscap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @import N/A
* @permission N/A
*/
@ -73,8 +69,7 @@ declare namespace rdb {
* Indicates the data is pushed to remote device from local device.
*
* @since 8
* @Syscap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @import N/A
* @permission N/A
*/
@ -84,8 +79,7 @@ declare namespace rdb {
* Indicates the data is pulled from remote device to local device.
*
* @since 8
* @Syscap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @import N/A
* @permission N/A
*/
@ -96,8 +90,7 @@ declare namespace rdb {
* Describes the subscription type.
*
* @since 8
* @Syscap SystemCapability.Data.DATA_DISTRIBUTEDDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @import N/A
* @permission N/A
*/
@ -105,8 +98,7 @@ declare namespace rdb {
/**
* Subscription to remote data changes
* @since 8
* @Syscap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @import N/A
* @permission N/A
*/
@ -119,8 +111,7 @@ declare namespace rdb {
* This class provides methods for creating, querying, updating, and deleting RDBs.
*
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @import import data_rdb from '@ohos.data.rdb';
* @permission N/A
*/
@ -130,8 +121,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param name Indicates the target table.
* @param values Indicates the row of data to be inserted into the table.
* @return Returns the row ID if the operation is successful; returns -1 otherwise.
@ -144,8 +134,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param values Indicates the row of data to be updated in the database.The key-value pairs are associated with column names of the database table.
* @param rdbPredicates Indicates the specified update condition by the instance object of RdbPredicates.
* @return Returns the number of affected rows.
@ -158,8 +147,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param rdbPredicates Indicates the specified delete condition by the instance object of RdbPredicates.
* @return Returns the number of affected rows.
*/
@ -171,8 +159,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param rdbPredicates Indicates the specified query condition by the instance object of RdbPredicates.
* @param columns Indicates the columns to query. If the value is null, the query applies to all columns.
* @return Returns a ResultSet object if the operation is successful;
@ -185,8 +172,7 @@ declare namespace rdb {
*
* @note N/A
* @since 8
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param sql Indicates the SQL statement to execute.
* @param bindArgs Indicates the values of the parameters in the SQL statement. The values are strings.
* @return Returns a ResultSet object if the operation is successful;
@ -199,8 +185,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param sql Indicates the SQL statement to execute.
* @param bindArgs Indicates the values of the parameters in the SQL statement. The values are strings.
*/
@ -212,8 +197,7 @@ declare namespace rdb {
*
* @note N/A
* @since 8
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param newEncryptKey the encrypted key is uint8 form in a vector.
*/
changeEncryptKey(newEncryptKey:Uint8Array, callback: AsyncCallback<void>):void;
@ -224,8 +208,7 @@ declare namespace rdb {
*
* @note N/A
* @since 8
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
*/
beginTransaction(callback: AsyncCallback<void>):void;
beginTransaction(): Promise<void>;
@ -235,8 +218,7 @@ declare namespace rdb {
*
* @note N/A
* @since 8
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
*/
commit(callback: AsyncCallback<void>):void;
commit(): Promise<void>;
@ -246,8 +228,7 @@ declare namespace rdb {
*
* @note N/A
* @since 8
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
*/
rollBack(callback: AsyncCallback<void>):void;
rollBack(): Promise<void>;
@ -257,9 +238,8 @@ declare namespace rdb {
*
* @note N/A
* @since 8
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param tables the tables name you want to set
* @devices phone, tablet, tv, wearable, car
*/
setDistributedTables(tables: Array<string>, callback: AsyncCallback<void>): void;
setDistributedTables(tables: Array<string>): Promise<void>;
@ -270,11 +250,11 @@ declare namespace rdb {
*
* @note N/A
* @since 8
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param device Indicates the remote device.
* @param table Indicates the local table name.
* @return the distributed table name.
* @devices phone, tablet, tv, wearable, car
*/
obtainDistributedTableName(device: string, table: string, callback: AsyncCallback<string>): void;
obtainDistributedTableName(device: string, table: string): Promise<string>;
@ -284,11 +264,11 @@ declare namespace rdb {
*
* @note N/A
* @since 8
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param mode Indicates the synchronization mode. The value can be PUSH, PULL.
* @param predicates Constraint synchronized data and devices.
* @param callback Indicates the callback used to send the synchronization result to the caller.
* @devices phone, tablet, tv, wearable, car
*/
sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback<Array<[string, number]>>): void;
sync(mode: SyncMode, predicates: RdbPredicates): Promise<Array<[string, number]>>;
@ -299,8 +279,7 @@ declare namespace rdb {
*
* @note N/A
* @since 8
* @Syscap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param type Indicates the subscription type, which is defined in {@code SubscribeType}.
* @param observer Indicates the observer of data change events in the distributed database.
*/
@ -311,8 +290,7 @@ declare namespace rdb {
*
* @note N/A
* @since 8
* @Syscap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param type Indicates the subscription type, which is defined in {@code SubscribeType}.
* @param observer Indicates the data change observer already registered .
*/
@ -323,8 +301,7 @@ declare namespace rdb {
* Indicates possible value types
*
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @import import data_rdb from '@ohos.data.rdb';
* @permission N/A
*/
@ -334,8 +311,7 @@ declare namespace rdb {
* Values in buckets are stored in key-value pairs
*
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @import import data_rdb from '@ohos.data.rdb';
* @permission N/A
*/
@ -347,8 +323,7 @@ declare namespace rdb {
* Manages relational database configurations.
*
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @import import data_rdb from '@ohos.data.rdb';
* @permission N/A
*/
@ -358,7 +333,7 @@ declare namespace rdb {
* Indicates the encryptKey of the database file
*
* @since 8
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
*/
encryptKey: Uint8Array;
}
@ -367,8 +342,7 @@ declare namespace rdb {
* Manages relational database configurations.
*
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @import import data_rdb from '@ohos.data.rdb';
* @permission N/A
*/
@ -379,8 +353,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
*/
constructor(name: string)
@ -389,8 +362,7 @@ declare namespace rdb {
*
* @note When query database, this function should not be called.
* @since 8
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param devices Indicates specified remote devices.
* @return Returns the RdbPredicates self.
*/
@ -401,8 +373,7 @@ declare namespace rdb {
*
* @note When query database, this function should not be called.
* @since 8
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @return Returns the RdbPredicates self.
*/
inAllDevices(): RdbPredicates;
@ -413,8 +384,7 @@ declare namespace rdb {
*
* @note This method is similar to = of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name in the database table.
* @param value Indicates the value to match with the RdbPredicates.
* @return Returns the RdbPredicates that match the specified field.
@ -427,8 +397,7 @@ declare namespace rdb {
*
* @note This method is similar to != of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name in the database table.
* @param value Indicates the value to match with the RdbPredicates.
* @return Returns the RdbPredicates that match the specified field.
@ -440,8 +409,7 @@ declare namespace rdb {
*
* @note This method is similar to ( of the SQL statement and needs to be used together with endWrap().
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @return Returns the RdbPredicates with the left parenthesis.
*/
beginWrap(): RdbPredicates;
@ -452,8 +420,7 @@ declare namespace rdb {
* @note This method is similar to ) of the SQL statement and needs to be used together
* with beginWrap().
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @return Returns the RdbPredicates with the right parenthesis.
*/
endWrap(): RdbPredicates;
@ -463,8 +430,7 @@ declare namespace rdb {
*
* @note This method is similar to or of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @return Returns the RdbPredicates with the or condition.
*/
or(): RdbPredicates;
@ -474,8 +440,7 @@ declare namespace rdb {
*
* @note This method is similar to and of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @return Returns the RdbPredicates with the and condition.
*/
and(): RdbPredicates;
@ -486,8 +451,7 @@ declare namespace rdb {
*
* @note This method is similar to contains of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name in the database table.
* @param value Indicates the value to match with the RdbPredicates.
* @return Returns the RdbPredicates that match the specified field.
@ -500,8 +464,7 @@ declare namespace rdb {
*
* @note This method is similar to value% of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name in the database table.
* @param value Indicates the value to match with the RdbPredicates.
* @return Returns the RdbPredicates that match the specified field.
@ -514,8 +477,7 @@ declare namespace rdb {
*
* @note This method is similar to %value of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name in the database table.
* @param value Indicates the value to match with the RdbPredicates.
* @return Returns the RdbPredicates that match the specified field.
@ -527,8 +489,7 @@ declare namespace rdb {
*
* @note This method is similar to is null of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name in the database table.
* @return Returns the RdbPredicates that match the specified field.
*/
@ -539,8 +500,7 @@ declare namespace rdb {
*
* @note This method is similar to is not null of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name in the database table.
* @return Returns the RdbPredicates that match the specified field.
*/
@ -552,8 +512,7 @@ declare namespace rdb {
*
* @note This method is similar to like of the SQL statement.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name in the database table.
* @param value Indicates the value to match with the RdbPredicates. The percent sign (%) in the value
* is a wildcard (like * in a regular expression).
@ -567,8 +526,7 @@ declare namespace rdb {
*
* @note Different from like, the input parameters of this method are case-sensitive.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name in the database table.
* @param value Indicates the value to match with RdbPredicates.
* @return Returns the SQL statement with the specified RdbPredicates.
@ -580,8 +538,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name.
* @param low Indicates the minimum value.
* @param high Indicates the maximum value.
@ -595,8 +552,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name in the database table.
* @param low Indicates the minimum value to match with DataAbilityPredicates.
* @param high Indicates the maximum value to match with DataAbilityPredicates.
@ -609,8 +565,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name.
* @param value Indicates the String field.
* @return Returns the SQL query statement with the specified RdbPredicates.
@ -622,8 +577,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name.
* @param value Indicates the String field.
* @return Returns the SQL query statement with the specified RdbPredicates.
@ -635,8 +589,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name.
* @param value Indicates the String field.
* @return Returns the SQL query statement with the specified RdbPredicates.
@ -648,8 +601,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name.
* @param value Indicates the String field.
* @return Returns the SQL query statement with the specified RdbPredicates.
@ -662,8 +614,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name for sorting the return list.
* @return Returns the SQL query statement with the specified RdbPredicates.
*/
@ -675,8 +626,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name for sorting the return list.
* @return Returns the SQL query statement with the specified RdbPredicates.
*/
@ -687,8 +637,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @return Returns the SQL query statement with the specified RdbPredicates.
*/
distinct(): RdbPredicates;
@ -698,8 +647,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param value Indicates the max length of the return list.
* @return Returns the SQL query statement with the specified RdbPredicates.
*/
@ -710,8 +658,7 @@ declare namespace rdb {
*
* @note Use this method together with limit(int).
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param rowOffset Indicates the start position of the returned result. The value is a positive integer.
* @return Returns the SQL query statement with the specified AbsPredicates.
*/
@ -722,8 +669,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param fields Indicates the specified columns by which query results are grouped.
* @return Returns the RdbPredicates with the specified columns by which query results are grouped.
*/
@ -734,8 +680,7 @@ declare namespace rdb {
*
* @note Before using this method, you need to create an index column.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param indexName Indicates the name of the index column.
* @return Returns RdbPredicates with the specified index column.
*/
@ -747,8 +692,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name in the database table.
* @param values Indicates the values to match with RdbPredicates.
* @return Returns RdbPredicates that matches the specified field.
@ -761,8 +705,7 @@ declare namespace rdb {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param field Indicates the column name in the database table.
* @param values Indicates the values to match with RdbPredicates.
* @return Returns RdbPredicates that matches the specified field.

View File

@ -19,8 +19,8 @@ import { AsyncCallback, Callback } from './basic';
*
* @name storage
* @since 5
* @sysCap SystemCapability.Data#DATA_APPDATAMGR
* @devices phone, tablet
* @syscap SystemCapability.DistributedDataManager.Preference.Core
*
*/
declare namespace storage {
/**
@ -79,8 +79,8 @@ declare namespace storage {
* the file that stores storage data, and use emoveStorageFromCache
* to remove the {@link Storage} instance from the memory.
*
* @sysCap SystemCapability.Data#DATA_APPDATAMGR
* @devices phone, tablet
* @syscap SystemCapability.DistributedDataManager.Preference.Core
*
* @since 5
*/
interface Storage {
@ -193,8 +193,8 @@ declare namespace storage {
/**
* Define the change data information object.
*
* @sysCap SystemCapability.Data#DATA_APPDATAMGR
* @devices phone, tablet
* @syscap SystemCapability.DistributedDataManager.Preference.Core
*
* @since 5
*/
interface StorageObserver {

View File

@ -18,8 +18,7 @@ import { AsyncCallback } from '../../basic'
* Provides methods for accessing a database result set generated by querying the database.
*
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @import import data_rdb from '@ohos.data.rdb';
* @permission N/A
*/
@ -30,8 +29,7 @@ interface ResultSet {
* @note The column names are returned as a string array, in which the strings are in the same order
* as the columns in the result set.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
*/
columnNames: Array<string>;
@ -41,8 +39,7 @@ interface ResultSet {
* @note The returned number is equal to the length of the string array returned by the
* columnCount method.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
*/
columnCount: number;
@ -51,8 +48,7 @@ interface ResultSet {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
*/
rowCount: number;
@ -61,8 +57,7 @@ interface ResultSet {
*
* @note The result set index starts from 0.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
*/
rowIndex: number;
@ -71,8 +66,7 @@ interface ResultSet {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
*/
isAtFirstRow: boolean;
@ -81,8 +75,7 @@ interface ResultSet {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
*/
isAtLastRow: boolean;
@ -91,8 +84,7 @@ interface ResultSet {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
*/
isEnded: boolean;
@ -102,8 +94,7 @@ interface ResultSet {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
*/
isStarted: boolean;
@ -114,8 +105,7 @@ interface ResultSet {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
*/
isClosed: boolean;
@ -124,8 +114,7 @@ interface ResultSet {
*
* @note The column name is passed as an input parameter.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param columnName Indicates the name of the specified column in the result set.
* @return Returns the index of the specified column.
*/
@ -136,8 +125,7 @@ interface ResultSet {
*
* @note The column index is passed as an input parameter.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param columnIndex Indicates the index of the specified column in the result set.
* @return Returns the name of the specified column.
*/
@ -149,8 +137,7 @@ interface ResultSet {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param offset Indicates the offset relative to the current position.
* @return Returns true if the result set is moved successfully and does not go beyond the range;
* returns false otherwise.
@ -162,8 +149,7 @@ interface ResultSet {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param rowIndex Indicates the index of the specified row, which starts from 0.
* @return Returns true if the result set is moved successfully; returns false otherwise.
*/
@ -174,8 +160,7 @@ interface ResultSet {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @return Returns true if the result set is moved successfully;
* returns false otherwise, for example, if the result set is empty.
*/
@ -186,8 +171,7 @@ interface ResultSet {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @return Returns true if the result set is moved successfully;
* returns false otherwise, for example, if the result set is empty.
*/
@ -198,8 +182,7 @@ interface ResultSet {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @return Returns true if the result set is moved successfully;
* returns false otherwise, for example, if the result set is already in the last row.
*/
@ -210,8 +193,7 @@ interface ResultSet {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @return Returns true if the result set is moved successfully;
* returns false otherwise, for example, if the result set is already in the first row.
*/
@ -223,8 +205,7 @@ interface ResultSet {
* @note The implementation class determines whether to throw an exception if the value of the specified column
* in the current row is null or the specified column is not of the Blob type.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param columnIndex Indicates the specified column index, which starts from 0.
* @return Returns the value of the specified column as a byte array.
*/
@ -236,8 +217,7 @@ interface ResultSet {
* @note The implementation class determines whether to throw an exception if the value of the specified column
* in the current row is null or the specified column is not of the string type.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param columnIndex Indicates the specified column index, which starts from 0.
* @return Returns the value of the specified column as a string.
*/
@ -249,8 +229,7 @@ interface ResultSet {
* @note The implementation class determines whether to throw an exception if the value of the specified column
* in the current row is null, the specified column is not of the integer type.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param columnIndex Indicates the specified column index, which starts from 0.
* @return Returns the value of the specified column as a long.
*/
@ -262,8 +241,7 @@ interface ResultSet {
* @note The implementation class determines whether to throw an exception if the value of the specified column
* in the current row is null, the specified column is not of the double type.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param columnIndex Indicates the specified column index, which starts from 0.
* @return Returns the value of the specified column as a double.
*/
@ -274,8 +252,7 @@ interface ResultSet {
*
* @note N/A
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @param columnIndex Indicates the specified column index, which starts from 0.
* @return Returns true if the value of the specified column in the current row is null;
* returns false otherwise.
@ -287,8 +264,7 @@ interface ResultSet {
*
* @note Calling this method on the result set will release all of its resources and makes it ineffective.
* @since 7
* @sysCap SystemCapability.Data.DATA_APPDATAMGR
* @devices phone, tablet, tv, wearable, car
* @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
* @return Returns true if the result set is closed; returns false otherwise.
*/
close(): void;