Read CRUDFrom Key Value Repo
Adapter that exposes a ReadKeyValueRepo as a ReadCRUDRepo. Maps CRUD read operations to the underlying key-value repository operations.
Parameters
The underlying ReadKeyValueRepo to delegate operations to
Type Parameters
The type of objects stored in the repository
The type of identifiers (keys) used to reference stored objects
Functions
Wraps this ReadCRUDRepo as a ReadKeyValueFromCRUDRepo, exposing CRUD IDs as keys and CRUD objects as values in a ReadKeyValueRepo.
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.
Wraps this ReadCRUDRepo with a mapper to expose different key and value types.
Wraps this ReadCRUDRepo with custom conversion functions for keys and values.