QueryMixin<InstanceType extends ManagedObject> class
Null safety
- Implemented types
-
- Query<
InstanceType>
- Query<
Constructors
Properties
- canModifyAllInstances ↔ bool
-
Confirms that a query has no predicate before executing it.
read / writeoverride
- context → ManagedContext
-
The ManagedContext this query will be executed on.
read-onlyinherited
- entity → ManagedEntity
-
The ManagedEntity of the
InstanceType
.read-onlyinherited -
expressions
↔ List<
QueryExpression> -
read / write
- fetchLimit ↔ int
-
Limits the number of objects returned from the Query.
read / writeoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- offset ↔ int
-
Offsets the rows returned.
read / writeoverride
- pageDescriptor ↔ QueryPage?
-
read / write
- predicate ↔ QueryPredicate?
-
A predicate for filtering the result or operation set.
read / writeoverride
-
propertiesToFetch
→ List<
KeyPath> -
read-only
-
reduce
→ QueryReduceOperation<
InstanceType> -
Returns a new object that can execute functions like sum, average, maximum, etc.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
-
sortDescriptors
↔ List<
QuerySortDescriptor> ? -
read / write
-
subQueries
↔ Map<
ManagedRelationshipDescription, Query< ?ManagedObject> > -
read / write
- timeoutInSeconds ↔ int
-
Number of seconds before a Query times out.
read / writeoverride
-
valueMap
↔ Map<
String, dynamic> ? -
Values to be used when inserting or updating an object.
read / writeoverride
- values ↔ InstanceType
-
Values to be sent to database during an update or insert query.
read / writeoverride
Methods
-
delete(
) → Future< int?> -
Deletes
InstanceType
s from the underlying database.inherited -
fetch(
) → Future< List< InstanceType> > -
Fetches
InstanceType
s from the database.inherited -
fetchOne(
) → Future< InstanceType?> -
Fetches a single
InstanceType
from the database.inherited -
insert(
) → Future< InstanceType> -
Inserts an
InstanceType
into the underlying database.inherited -
insertMany(
List< InstanceType> objects) → Future<List< InstanceType> > -
Inserts an
InstanceType
s into the underlying database.inherited -
join<
T extends ManagedObject> ({T? object(InstanceType x)?, ManagedSet< T> ? set(InstanceType x)?}) → Query<T> -
Configures this instance to fetch a relationship property identified by
object
orset
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
pageBy<
T> (T propertyIdentifier(InstanceType x), QuerySortOrder order, {T? boundingValue}) → void -
Configures this instance to fetch a section of a larger result set.
override
-
returningProperties(
List propertyIdentifiers(InstanceType x)) → void -
Configures the list of properties to be fetched for
InstanceType
.override -
sortBy<
T> (T propertyIdentifier(InstanceType x), QuerySortOrder order) → void -
Configures this instance to sort its results by some property and order.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
) → Future< List< InstanceType> > -
Updates
InstanceType
s in the underlying database.inherited -
updateOne(
) → Future< InstanceType?> -
Updates an
InstanceType
in the underlying database.inherited -
validateInput(
Validating op) → void -
where<
T> (T propertyIdentifier(InstanceType x)) → QueryExpression< T, InstanceType> -
Selects a property from the object being queried to add a filtering expression.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited