MemoryRepository<T extends Object, ID extends Object> class
- Inheritance
-
- Object
- Repository<
T, ID> - MemoryRepository
- Mixed-in types
-
- RepositoryMixin<
T, ID, MemoryOdmSystem, MemoryDatabase< Object> , MemoryDatabase<T> , String> - QueryableRepositoryMixin<
T, ID, MemoryOdmSystem, MemoryDatabase< Object> , MemoryDatabase<T> , String> - PageableRepositoryMixin<
T, ID, MemoryOdmSystem, MemoryDatabase< Object> , MemoryDatabase<T> , String>
- RepositoryMixin<
Constructors
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
trueif an entity with the givenidexists.inherited -
existsByQuery(
QueryLike query) → Future< bool> -
Returns
trueif an entity that matches the givenqueryexists.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
querysorted by the giveninherited -
findById(
ID id) → Future< T?> -
Returns the entity with the given
idornullif none was found.inherited -
findOneByQuery(
QueryLike query, [Sorted sort = const Sorted.empty()]) → Future< T?> -
Returns the first entity that matches the given
querysorted by theinherited -
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
queryfor the givenrequestsorted bysortif specified.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
T value) → Future< T> -
Saves the given
valueto the database using an upsert operation.inherited -
saveAll(
Iterable< T> values) → Future<List< T> > -
Saves all
valuesto 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