NamedDataRepository<T> class
abstract
Interface for implementing block-data (whole object) repositories, specifying for each CRUD operation the name of the object involved.
The implementation of this interface must allow to save a single entire object in a persistence system, retrieving it from the same system and removing it.
- Implementers
Constructors
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
-
content(
String name) → Future< T?> -
Reads the content of the whole object stored inside the persistence system with name
name
. Returnsnull
if it cannot read the object. -
deleteContent(
String name) → Future< void> -
Removes the object with name
name
from the persistence system. It can also unmount the persistence system if it is no longer useful. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveContent(
String name, T content) → Future< void> -
Stores the object
content
of typeT
inside the predefined (by the implementer) persistent system, storing it with namename
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited