StorageController class abstract
Generic implementation of a convenient storage controller providing persistence to a mapper backend.
- Mixed in types
- 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
-
add(
Node node) → Future< void> - Add StorageNode to data.
-
addOrUpdate(
Node node) → Future< bool> - add or update the node and all materialized sub-nodes.
-
addOrUpdateValue(
String path, NodeValue value) → Future< bool> - Adds or updates a NodeValueObject to StorageNode and returns true if the value was added.
-
addValue(
String path, NodeValue value) → Future< void> - Add NodeValueObject to StorageNode.
-
close(
) → Future< void> - Closes all database connections and flushes the content.
-
delete(
String path) → Future< Node> - Remove a StorageNode from the data.
-
deleteValue(
String path, String key) → Future< NodeValue> - Updates one NodeValueObject with a new NodeValueObject by copying all fields except key.
-
deregisterChangeListener(
StorageListener listener) → Future< List< SearchCriteria> > -
Removes a registered listener.
inherited
-
dump(
[String rootNode = ':', String prefix = '']) → Future< String> - Gets a dump of the whole storage as string representation.
-
flush(
) → Future< void> - Flushes all values to the backend.
-
get(
String path) → Future< Node> - Fetches a node by its path.
-
getNodeOrTombstone(
String path) → Future< Node> - Fetches a node by its path.
-
getValue(
String path, String key) → Future< NodeValue?> - Get a single value from a node.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerChangeListener(
StorageListener listener, SearchCriteria criteria) → Future< void> -
Registers a listener for a specific search criteria.
inherited
-
rename(
String oldPath, String newName) → Future< void> - Rename a node identified by a path.
-
search(
SearchCriteria criteria) → Future< List< Node> > - *
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Node node) → Future< void> - Update a StorageNode inside the data.
-
updateValue(
String nodeName, NodeValue value) → Future< void> - Updates one NodeValueObject with a new NodeValueObject.
-
zap(
) → Future< void> - Clear the entire storage.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited