DataRepository<T extends DataObject> class
abstract
An interface for Components providing CRUD functionality for a DataObject.
- Implementers
- Available extensions
Constructors
Properties
Methods
-
atomic<
R> (Future< R> delegate()) → Future<R> -
Runs all calls to this repository from inside
delegateinside an atomic transaction. -
count(
{Filter filter = Filter.empty}) → Future< int> -
Returns the count of all elements that match
filter. -
create(
T element) → Future< T> - Creates a new element.
-
deleteAll(
{required Filter filter}) → Future< int> -
Deletes all elements matching the
filter. -
deleteById(
dynamic id) → Future< bool> - Find and delete an element by its DataBean.idField value.
-
first(
{Filter filter = Filter.empty, Sort sort = Sort.empty, int offset = 0}) → Future< T?> -
Available on DataRepository<
T> , provided by the DataRepositoryExtension extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readAll(
{Filter filter = Filter.empty, Sort sort = Sort.empty, int? offset, int? limit}) → Future< List< T> > -
Read all elements respecting
filter,sort,offsetandlimitvalues. -
readById(
dynamic id) → Future< T?> - Find and read an element by its DataBean.idField value.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateAll(
{required Filter filter, required Map< DataField< values}) → Future<T, dynamic> , dynamic>int> -
Updates the given
valuesof all elements matching thefilter. -
updateById(
T element) → Future< bool> - Find and update an element by its DataBean.idField value.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited