MultiLoad class abstract

The interface to decorate Entity if it allowed to load into the same entity multiple times (with different fields).

If Entity implements MultiLoad, load and loadIfAny will check if the required fields are loaded. If not, it will load them from database and put into the same entity. If yes, the entity will be returned directly without consulting database.

On the other hand, if this interface is not implemented, the cached entity, if any, will be returned directly.

Constructors

MultiLoad()

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

getFieldsToLoad(Iterable<String>? fields) Iterable<String>?
Returns the set of fields to load for the given fields.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setFieldsLoaded(Iterable<String>? fields) → void
Marks the given fields are loaded.
toString() String
A string representation of this object.
inherited

Operators

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