DataRepository<T> class abstract

Represents simultaneously a DataSource and a DataReceiver.

Implemented types

Constructors

DataRepository(String domain, String name, {bool register = true})

Properties

domain String
final
hashCode int
The hash code for this object.
no setterinherited
id String
no setteroverride
isRegistered bool
no setteroverride
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transformerFrom DataTransformerFrom<T>?
getter/setter pairoverride
transformerFromList DataTransformerFromList<T>?
getter/setter pairoverride
transformerTo DataTransformerTo<T?>?
getter/setter pairoverride
transformerToList DataTransformerToList<T>?
getter/setter pairoverride

Methods

doOperation(DataSourceOperation operation, Map<String, String>? parameters, [List<T?>? dataList]) Future<List<T?>?>
override
find(Map<String, dynamic>? filter) Future<List<T?>?>
Finds data by filter.
override
findByID(Object? id) Future<List<T>?>
Finds data by ID.
override
findByIDImpl(Map<String, dynamic> parameters) Future
override
findByIDRange(Object? fromID, Object? toID) Future<List<T?>?>
Finds data by ID range.
override
findByIDRangeImpl(Map<String, dynamic> parameters) Future
override
findImpl(Map<String, dynamic> parameters) Future
override
get([Map<String, dynamic>? parameters]) Future<List<T>?>
Gets data using parameters as selector.
override
getImpl(Map<String, dynamic>? parameters) Future
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put({Map<String, dynamic>? parameters, List<T>? dataList}) Future<List<T>?>
Puts dataList using parameters.
override
putImpl(Map<String, dynamic>? parameters, Object? payload) Future
inherited
toString() String
A string representation of this object.
inherited
transformFrom(T? data) → dynamic
override
transformFromList(List<T>? list) → dynamic
override
transformOutput(Object? o) List<T?>?
inherited
transformTo(Object? o) → T?
override
transformToList(Object? o) List<T>?
override

Operators

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

Static Properties

instances Map<String?, DataRepository>
final
onRegister EventStream<DataRepository>
final

Static Methods

byID<T>(String? id) DataRepository<T>?
override
byName<T>(String domain, String name) DataRepository<T>?
override
register(DataRepository instance) → void
override