These classes or interfaces can be used by the classes or interfaces
in ohos.data.distributed.device or ohos.data.distributed.user.
| 接口 | 说明 |
|---|---|
| KvManager |
Provides interfaces to manage a
KvStore database,
including obtaining, closing, and deleting the KvStore. |
| KvStore |
Represents a key-value distributed database and provides methods for adding, deleting, modifying, querying,
and subscribing to distributed data.
|
| KvStoreObserver |
Listens for data changes in the
KvStore database. |
| KvStoreResultSet |
Provide methods to obtain the result set of the
KvStore database. |
| KvStoreServiceDeathRecipient |
Provides the callback that is invoked when the
KvStore service stops running. |
| SyncCallback |
A callback interface used to receive database synchronization results.
|
| 类 | 说明 |
|---|---|
| ChangeNotification |
Receives notifications of all data changes, including data insertion, update, and deletion.
|
| Entry |
Provides key-value pairs stored in the distributed database.
|
| FieldNode |
Represents a node of a
Schema instance. |
| KvManagerConfig |
Provides configuration information for
KvManager instances,
including the caller's package name and distributed network type. |
| KvManagerFactory | |
| Options |
Provides configuration options for creating a
KvStore. |
| Query |
Represents a database query using a predicate.
|
| Schema |
Represents the database schema.
|
| UserInfo |
Manages user information.
|
| Value |
Obtains
Value objects stored in a KvStore database. |
| 枚举 | 说明 |
|---|---|
| FieldValueType |
Enumerates field value types.
|
| KvStoreErrorCode |
Indicates the error codes for
KvStore database exceptions. |
| KvStoreType |
Describes the
KvStore type. |
| SchemaMode |
Enumerates schema modes.
|
| SecurityLevel |
Enumerates security levels.
|
| SubscribeType |
Describes the subscription type.
|
| SyncMode |
Indicates the database synchronization mode.
|
| UserType |
Enumerates user types.
|
| 异常错误 | 说明 |
|---|---|
| KvStoreException |
Provides
KvStoreException constructors
and the method for obtaining kvStoreErrorCode. |