MemoryRepository<T extends Object, ID extends Object> class

Inheritance
Mixed in types

Constructors

MemoryRepository()

Properties

database MemoryDatabase<T>
Returns the backing database of this repository.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
system OdmSystem<MemoryDatabase<Object>, String>
Returns the backing system of this repository.
no setterinherited

Methods

clear() Future<void>
Deletes all entities.
inherited
count() Future<int>
Returns the number of entities.
inherited
countByQuery(QueryLike query) Future<int>
Returns the number of entities that match the given query.
inherited
delete(T value) Future<void>
Deletes the given value.
inherited
deleteAll(Iterable<T> values) Future<void>
Deletes all values.
inherited
deleteAllById(Iterable<ID> ids) Future<void>
Deletes all entities with the given ids.
inherited
deleteAllByQuery(QueryLike query) Future<void>
Deletes all entities that match the given query.
inherited
deleteById(ID id) Future<void>
Deletes the entity with the given id.
inherited
deleteOneByQuery(QueryLike query) Future<void>
Deletes the first entity that matches the given query.
inherited
existsById(ID id) Future<bool>
Returns true if an entity with the given id exists.
inherited
existsByQuery(QueryLike query) Future<bool>
Returns true if an entity that matches the given query exists.
inherited
findAll() Future<List<T>>
Returns all entities.
inherited
findAllByQuery(QueryLike query, [Sorted sort = const Sorted.empty()]) Future<List<T>>
Returns all entities that match the given query sorted by the given
inherited
findById(ID id) Future<T?>
Returns the entity with the given id or null if none was found.
inherited
findOneByQuery(QueryLike query, [Sorted sort = const Sorted.empty()]) Future<T?>
Returns the first entity that matches the given query sorted by the
inherited
findPaginated(PageRequest request) Future<Page<T>>
Returns a page of all entities for the given request.
inherited
findPaginatedByQuery(QueryLike query, PageRequest request, [Sorted sort = const Sorted.empty()]) Future<Page<T>>
Returns a page of all entities that match the query for the given request sorted by sort if specified.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(T value) Future<T>
Saves the given value to the database using an upsert operation.
inherited
saveAll(Iterable<T> values) Future<List<T>>
Saves all values to the database using an upsert operation.
inherited
toString() String
A string representation of this object.
inherited

Operators

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