Write CRUDRepo
Write part of a standard CRUD repository. Provides create, update, and delete operations with reactive flows for change notifications.
Type Parameters
The type of objects stored in the repository
The type of identifiers used to reference stored objects
The type of input data used to create or update objects
Inheritors
Properties
Flow that emits the ID of each deleted object after a successful deleteById call.
Flow that emits each newly created object after a successful create call.
Mirrors WriteCRUDRepo.deletedObjectsIdsFlow under the name onDeletedObjectsIds for consistency with KV repos naming.
Mirrors WriteCRUDRepo.newObjectsFlow under the name onNewObjects for consistency with KV repos naming.
Mirrors WriteCRUDRepo.updatedObjectsFlow under the name onUpdatedObjects for consistency with KV repos naming.
Flow that emits each updated object after a successful update call.
Functions
Creates new objects from the given list of input values. Successfully created objects must be emitted via newObjectsFlow.
Vararg overload of WriteCRUDRepo.create for convenience.
Deletes objects with the given list of IDs. Successfully deleted IDs must be emitted via deletedObjectsIdsFlow.
Vararg overload of WriteCRUDRepo.deleteById for convenience.
Batch-updates objects using the given list of ID-value pairs. Successfully updated objects must be emitted via updatedObjectsFlow.
Updates the object identified by id with the given value. Successfully updated object must be emitted via updatedObjectsFlow.
Vararg overload of WriteCRUDRepo.update for convenience.