DataContract<T> class
abstract
Outline of core methods to which all data loaders must adhere.
- Mixed-in types
-
- ReadMixin<
T> - WriteMixin<
T>
- ReadMixin<
- Implementers
Constructors
- DataContract()
-
Outline of core methods to which all data loaders must adhere.
const
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
-
delete(
String id, RequestDetails details) → Future< DeleteResult< T> > -
Clears an item with the given
idif one exists.inherited -
getById(
String id, RequestDetails details) → Future< ReadResult< T> > -
Loads the instance of
Twhose primary key isid.inherited -
getByIds(
Set< String> ids, RequestDetails details) → Future<ReadListResult< T> > -
Loads all instances of
Twhose primary key is in the setids.inherited -
getItems(
RequestDetails details) → Future< ReadListResult< T> > -
Loads all instances of
Tthat satisfy any filtes or pagination ondetails.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setItem(
T item, RequestDetails details) → Future< WriteResult< T> > -
Persists
item.inherited -
setItems(
Iterable< T> items, RequestDetails details) → Future<WriteListResult< T> > -
Persists all
items.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited