1# JS API Changes of the Distributed Data Management Subsystem 2 3The table below lists the APIs changes of the distributed data management subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1. 4 5## API Changes 6 7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type| 8|---|---|---|---| 9| ohos.data.dataShare | DataShareHelper | notifyChange(uri: string, callback: AsyncCallback\<void>): void;<br>notifyChange(uri: string): Promise\<void>; | Added| 10| ohos.data.dataShare | DataShareHelper | denormalizeUri(uri: string, callback: AsyncCallback\<string>): void;<br>denormalizeUri(uri: string): Promise\<string>; | Added| 11| ohos.data.dataShare | DataShareHelper | normalizeUri(uri: string, callback: AsyncCallback\<string>): void;<br>normalizeUri(uri: string): Promise\<string>; | Added| 12| ohos.data.dataShare | DataShareHelper | getFileTypes(uri: string, mimeTypeFilter:string, callback: AsyncCallback\<Array\<string>>): void;<br>getFileTypes(uri: string, mimeTypeFilter: string): Promise\<Array\<string>>; | Added| 13| ohos.data.dataShare | DataShareHelper | getType(uri: string, callback: AsyncCallback\<string>): void;<br>getType(uri: string): Promise\<string>; | Added| 14| ohos.data.dataShare | DataShareHelper | batchInsert(uri: string, values: Array\<ValuesBucket>, callback: AsyncCallback\<number>): void;<br>batchInsert(uri: string, values: Array\<ValuesBucket>): Promise\<number>; | Added| 15| ohos.data.dataShare | DataShareHelper | update(uri: string, predicates: dataSharePredicates.DataSharePredicates, value: ValuesBucket, callback: AsyncCallback\<number>): void;<br>update(uri: string, predicates: dataSharePredicates.DataSharePredicates, value: ValuesBucket): Promise\<number>; | Added| 16| ohos.data.dataShare | DataShareHelper | query(uri: string, predicates: dataSharePredicates.DataSharePredicates, columns: Array\<string>, callback: AsyncCallback\<DataShareResultSet>): void;<br>query(uri: string, predicates: dataSharePredicates.DataSharePredicates, columns: Array\<string>): Promise\<DataShareResultSet>; | Added| 17| ohos.data.dataShare | DataShareHelper | delete(uri: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback\<number>): void;<br>delete(uri: string, predicates: dataSharePredicates.DataSharePredicates): Promise\<number>; | Added| 18| ohos.data.dataShare | DataShareHelper | insert(uri: string, value: ValuesBucket, callback: AsyncCallback\<number>): void;<br>insert(uri: string, value: ValuesBucket): Promise\<number>; | Added| 19| ohos.data.dataShare | DataShareHelper | off(type: 'dataChange', uri: string, callback?: AsyncCallback\<void>): void; | Added| 20| ohos.data.dataShare | DataShareHelper | on(type: 'dataChange', uri: string, callback: AsyncCallback\<void>): void; | Added| 21| ohos.data.dataShare | DataShareHelper | openFile(uri: string, mode: string, callback: AsyncCallback\<number>): void;<br>openFile(uri: string, mode: string): Promise\<number>; | Added| 22| ohos.data.dataShare | dataShare | function createDataShareHelper(context: Context, uri: string, callback: AsyncCallback\<DataShareHelper>): void;<br>function createDataShareHelper(context: Context, uri: string): Promise\<DataShareHelper>; | Added| 23| ohos.data.dataSharePredicates | DataSharePredicates | inKeys(keys: Array\<string>): DataSharePredicates; | Added| 24| ohos.data.dataSharePredicates | DataSharePredicates | prefixKey(prefix: string): DataSharePredicates; | Added| 25| ohos.data.dataSharePredicates | DataSharePredicates | notIn(field: string, value: Array\<ValueType>): DataSharePredicates; | Added| 26| ohos.data.dataSharePredicates | DataSharePredicates | in(field: string, value: Array\<ValueType>): DataSharePredicates; | Added| 27| ohos.data.dataSharePredicates | DataSharePredicates | indexedBy(field: string): DataSharePredicates; | Added| 28| ohos.data.dataSharePredicates | DataSharePredicates | groupBy(fields: Array\<string>): DataSharePredicates; | Added| 29| ohos.data.dataSharePredicates | DataSharePredicates | limit(total: number, offset: number): DataSharePredicates; | Added| 30| ohos.data.dataSharePredicates | DataSharePredicates | distinct(): DataSharePredicates; | Added| 31| ohos.data.dataSharePredicates | DataSharePredicates | orderByDesc(field: string): DataSharePredicates; | Added| 32| ohos.data.dataSharePredicates | DataSharePredicates | orderByAsc(field: string): DataSharePredicates; | Added| 33| ohos.data.dataSharePredicates | DataSharePredicates | lessThanOrEqualTo(field: string, value: ValueType): DataSharePredicates; | Added| 34| ohos.data.dataSharePredicates | DataSharePredicates | greaterThanOrEqualTo(field: string, value: ValueType): DataSharePredicates; | Added| 35| ohos.data.dataSharePredicates | DataSharePredicates | lessThan(field: string, value: ValueType): DataSharePredicates; | Added| 36| ohos.data.dataSharePredicates | DataSharePredicates | greaterThan(field: string, value: ValueType): DataSharePredicates; | Added| 37| ohos.data.dataSharePredicates | DataSharePredicates | notBetween(field: string, low: ValueType, high: ValueType): DataSharePredicates; | Added| 38| ohos.data.dataSharePredicates | DataSharePredicates | between(field: string, low: ValueType, high: ValueType): DataSharePredicates; | Added| 39| ohos.data.dataSharePredicates | DataSharePredicates | glob(field: string, value: string): DataSharePredicates; | Added| 40| ohos.data.dataSharePredicates | DataSharePredicates | unlike(field: string, value: string): DataSharePredicates; | Added| 41| ohos.data.dataSharePredicates | DataSharePredicates | like(field: string, value: string): DataSharePredicates; | Added| 42| ohos.data.dataSharePredicates | DataSharePredicates | isNotNull(field: string): DataSharePredicates; | Added| 43| ohos.data.dataSharePredicates | DataSharePredicates | isNull(field: string): DataSharePredicates; | Added| 44| ohos.data.dataSharePredicates | DataSharePredicates | endsWith(field: string, value: string): DataSharePredicates; | Added| 45| ohos.data.dataSharePredicates | DataSharePredicates | beginsWith(field: string, value: string): DataSharePredicates; | Added| 46| ohos.data.dataSharePredicates | DataSharePredicates | contains(field: string, value: string): DataSharePredicates; | Added| 47| ohos.data.dataSharePredicates | DataSharePredicates | and(): DataSharePredicates; | Added| 48| ohos.data.dataSharePredicates | DataSharePredicates | or(): DataSharePredicates; | Added| 49| ohos.data.dataSharePredicates | DataSharePredicates | endWrap(): DataSharePredicates; | Added| 50| ohos.data.dataSharePredicates | DataSharePredicates | beginWrap(): DataSharePredicates; | Added| 51| ohos.data.dataSharePredicates | DataSharePredicates | notEqualTo(field: string, value: ValueType): DataSharePredicates; | Added| 52| ohos.data.dataSharePredicates | DataSharePredicates | equalTo(field: string, value: ValueType): DataSharePredicates; | Added| 53| ohos.data.DataShareResultSet | DataShareResultSet | getDataType(columnIndex: number): DataType; | Added| 54| ohos.data.DataShareResultSet | DataShareResultSet | getColumnName(columnIndex: number): string; | Added| 55| ohos.data.DataShareResultSet | DataShareResultSet | getColumnIndex(columnName: string): number; | Added| 56| ohos.data.DataShareResultSet | DataShareResultSet | close(): void; | Added| 57| ohos.data.DataShareResultSet | DataShareResultSet | getDouble(columnIndex: number): number; | Added| 58| ohos.data.DataShareResultSet | DataShareResultSet | getLong(columnIndex: number): number; | Added| 59| ohos.data.DataShareResultSet | DataShareResultSet | getString(columnIndex: number): string; | Added| 60| ohos.data.DataShareResultSet | DataShareResultSet | getBlob(columnIndex: number): Uint8Array; | Added| 61| ohos.data.DataShareResultSet | DataShareResultSet | goToRow(position: number): boolean; | Added| 62| ohos.data.DataShareResultSet | DataShareResultSet | goTo(offset: number): boolean; | Added| 63| ohos.data.DataShareResultSet | DataShareResultSet | goToPreviousRow(): boolean; | Added| 64| ohos.data.DataShareResultSet | DataShareResultSet | goToNextRow(): boolean; | Added| 65| ohos.data.DataShareResultSet | DataShareResultSet | goToLastRow(): boolean; | Added| 66| ohos.data.DataShareResultSet | DataShareResultSet | goToFirstRow(): boolean; | Added| 67| ohos.data.DataShareResultSet | DataShareResultSet | isClosed: boolean; | Added| 68| ohos.data.DataShareResultSet | DataShareResultSet | rowCount: number; | Added| 69| ohos.data.DataShareResultSet | DataShareResultSet | columnCount: number; | Added| 70| ohos.data.DataShareResultSet | DataShareResultSet | columnNames: Array\<string>; | Added| 71| ohos.data.DataShareResultSet | DataType | TYPE_BLOB = 4 | Added| 72| ohos.data.DataShareResultSet | DataType | TYPE_STRING = 3 | Added| 73| ohos.data.DataShareResultSet | DataType | TYPE_DOUBLE = 2 | Added| 74| ohos.data.DataShareResultSet | DataType | TYPE_LONG = 1 | Added| 75| ohos.data.DataShareResultSet | DataType | TYPE_NULL = 0 | Added| 76| ohos.data.distributedData | DeviceKVStore | off(event:'dataChange', listener?: Callback\<ChangeNotification>): void; | Added| 77| ohos.data.distributedData | DeviceKVStore | on(event: 'dataChange', type: SubscribeType, listener: Callback\<ChangeNotification>): void; | Added| 78| ohos.data.distributedData | SingleKVStore | off(event:'dataChange', listener?: Callback\<ChangeNotification>): void; | Added| 79| ohos.data.distributedData | SingleKVStore | on(event: 'dataChange', type: SubscribeType, listener: Callback\<ChangeNotification>): void; | Added| 80| ohos.data.distributedData | KVStore | off(event: 'syncComplete', syncCallback?: Callback\<Array\<[string, number]>>): void; | Added| 81| ohos.data.distributedData | KVManagerConfig | context: Context; | Added| 82| ohos.data.distributedDataObject | DistributedObject | revokeSave(callback: AsyncCallback\<RevokeSaveSuccessResponse>): void;<br>revokeSave(): Promise\<RevokeSaveSuccessResponse>; | Added| 83| ohos.data.distributedDataObject | DistributedObject | save(deviceId: string, callback: AsyncCallback\<SaveSuccessResponse>): void;<br>save(deviceId: string): Promise\<SaveSuccessResponse>; | Added| 84| ohos.data.distributedDataObject | RevokeSaveSuccessResponse | sessionId: string; | Added| 85| ohos.data.distributedDataObject | SaveSuccessResponse | deviceId: string; | Added| 86| ohos.data.distributedDataObject | SaveSuccessResponse | version: number; | Added| 87| ohos.data.distributedDataObject | SaveSuccessResponse | sessionId: string; | Added| 88| ohos.data.rdb | RdbStore | restore(srcName:string, callback: AsyncCallback\<void>):void;<br>restore(srcName:string): Promise\<void>; | Added| 89| ohos.data.rdb | RdbStore | backup(destName:string, callback: AsyncCallback\<void>):void;<br>backup(destName:string): Promise\<void>; | Added| 90