Mapper CRUDRepo
Constructors
Properties
Flow that emits the ID of each deleted object after a successful deleteById call.
Provides a mapper for converting keys between inner and outer types.
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.
Provides a mapper for converting values between inner and outer types.
Functions
Wraps this ReadCRUDRepo as a ReadKeyValueFromCRUDRepo, exposing CRUD IDs as keys and CRUD objects as values in a ReadKeyValueRepo.
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.
Computes the difference between this ReadCRUDRepo and a map of items. Retrieves all items from the repository and compares them with the provided map.
Returns all objects in the repository as a map of ID to object. Default implementation iterates all pages using getIdsByPagination and getById.
Returns the object associated with the given id, or null if not found.
Returns a paginated list of all objects in the repository.
Returns a paginated list of all IDs in the repository.
Creates a pagination starting from the first page with size equal to the total count of items in this ReadCRUDRepo. This effectively creates a single page containing all items.
Converts a key from the outer type to the inner type.
Converts a value from the outer type to the inner type.
Converts a value from the inner type to the outer type.
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.
Wraps this ReadCRUDRepo with a mapper to expose different key and value types.
Wraps this ReadCRUDRepo with custom conversion functions for keys and values.