QueryExpression<T, InstanceType> class

Contains methods for adding logical expressions to properties when building a Query.

You do not create instances of this type directly, but instead are returned an instance when selecting a property of an object in Query.where. You invoke methods from this type to add an expression to the query for the selected property. Example:

    final query = new Query<Employee>()
      ..where((e) => e.name).equalTo("Bob");

Constructors

QueryExpression(KeyPath keyPath)
QueryExpression.byAddingKey(QueryExpression<T, InstanceType> original, ManagedPropertyDescription byAdding)

Properties

expression ↔ PredicateExpression?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
keyPath → KeyPath
final
not QueryExpression<T, InstanceType>
Inverts the next expression.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

beginsWith(String value, {bool caseSensitive = true}) QueryExpressionJunction<T, InstanceType>
Adds a 'begins with string' expression to a query.
between(T lhs, T rhs) QueryExpressionJunction<T, InstanceType>
Adds a 'between two values' expression to a query.
contains(String value, {bool caseSensitive = true}) QueryExpressionJunction<T, InstanceType>
Adds a 'contains string' expression to a query.
endsWith(String value, {bool caseSensitive = true}) QueryExpressionJunction<T, InstanceType>
Adds a 'ends with string' expression to a query.
equalTo(T value, {bool caseSensitive = true}) QueryExpressionJunction<T, InstanceType>
Adds an equality expression to a query.
greaterThan(T value) QueryExpressionJunction<T, InstanceType>
Adds a 'greater than' expression to a query.
greaterThanEqualTo(T value) QueryExpressionJunction<T, InstanceType>
Adds a 'greater than or equal to' expression to a query.
identifiedBy(dynamic identifier) QueryExpressionJunction<T, InstanceType>
Adds an equality expression for foreign key columns to a query.
isNotNull() QueryExpressionJunction<T, InstanceType>
Adds a 'not null check' expression to a query.
isNull() QueryExpressionJunction<T, InstanceType>
Adds a 'null check' expression to a query.
lessThan(T value) QueryExpressionJunction<T, InstanceType>
Adds a 'less than' expression to a query.
lessThanEqualTo(T value) QueryExpressionJunction<T, InstanceType>
Adds a 'less than or equal to' expression to a query.
like(String value, {bool caseSensitive = true}) QueryExpressionJunction<T, InstanceType>
Adds a like expression to a query.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notEqualTo(T value, {bool caseSensitive = true}) QueryExpressionJunction<T, InstanceType>
Adds a 'not equal' expression to a query.
notLike(String value, {bool caseSensitive = true}) QueryExpressionJunction<T, InstanceType>
Adds a 'not like' expression to a query.
oneOf(Iterable<T> values) QueryExpressionJunction<T, InstanceType>
Adds a 'equal to one of' expression to a query.
outsideOf(T lhs, T rhs) QueryExpressionJunction<T, InstanceType>
Adds a 'outside of the range crated by two values' expression to a query.
toString() String
A string representation of this object.
inherited

Operators

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