Repository<T extends Entity> class
abstract
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
-
find(String id, Function deserialize)
→ Future<Optional<T>>
-
It finds an Entity for the given Id.
-
findAll(PaginationOptions po, Function deserialize)
→ Future<Page>
-
- It retrieves a {@link Page} of {@link Post} entities
- for the given {@link PaginationOptions}.
- @param po the {@link PaginationOptions} to determine which {@link Page} of results to return
- @return a {@link Page} of Entities
//
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(String id, Function deserialize)
→ Future<Optional<T>>
-
It finds the Entity for the given Id and
removes it. If no Entity can be found for
the given Id an empty result is returned.
-
save(T entity, Function deserialize)
→ Future<T>
-
It saves the given Entity into the Repository.
-
toString()
→ String
-
A string representation of this object.
inherited