BloomReadOnlyRepository<T, ID> class abstract

Lean read-only repository interface for query-only data access (Interface Segregation Principle).

Example:

class ReadOnlyUserRepo implements BloomReadOnlyRepository<User, int> {
  @override
  Future<List<User>> findAll() async => ...;
  @override
  Future<User?> findById(int id) async => ...;
}
Implementers

Constructors

BloomReadOnlyRepository()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

findAll() Future<List<T>>
Retrieves all records of entity type T.
findById(ID id) Future<T?>
Retrieves a single record of entity type T matching id, or null if not found.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited