BloomWriteRepository<T, ID> class abstract

Lean write-only/mutation repository interface (Interface Segregation Principle).

Example:

class UserWriteRepo implements BloomWriteRepository<User, int> {
  @override
  Future<User> create(User item) async => ...;
  @override
  Future<User> update(int id, User item) async => ...;
  @override
  Future<bool> delete(int id) async => ...;
}
Implementers

Constructors

BloomWriteRepository()

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

create(T item) Future<T>
Creates and stores a new entity item.
delete(ID id) Future<bool>
Deletes an entity identified by id. Returns true if deleted.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(ID id, T item) Future<T>
Updates an existing entity item identified by id.

Operators

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