Cond<ValType> class

A relational conditional expression

Inheritance

Constructors

Cond(Field<ValType> lhs, Op op, ValType? rhs)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
Always returns 1 because relational condition is not a composite expressions
no setteroverride
lhs Field<ValType>
The field/column of the condition
final
op Op
The operator of the relational expression
final
rhs → ValType?
The value of the relational expression the field is being compared against
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

and(Expression exp) And
Creates a 'logical and' expression of this expression and the other
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
or(Expression exp) Or
Creates a 'logical or' expression of this expression and the other
override
toString() String
A string representation of this object.
inherited

Operators

operator &(Expression other) And
Creates a 'logical and' expression of this expression and the other
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator |(Expression other) Or
Creates a 'logical or' expression of this expression and the other
inherited

Static Methods

between<ValType>(Field<ValType> field, ValType low, ValType high) Between<ValType>
DSL to create 'in-between' relational condition
eq<ValType>(Field<ValType> field, ValType value) Cond<ValType>
DSL to create 'is equal to' relational condition
gt<ValType>(Field<ValType> field, ValType value) Cond<ValType>
DSL to create 'is greater than' relational condition
gtEq<ValType>(Field<ValType> field, ValType value) Cond<ValType>
DSL to create 'is greater than or equal to' relational condition
isIn<ValType>(Field<ValType> field, Set<ValType> values) InOperation<ValType>
DSL to create 'in' relational condition
isNotNull<ValType>(Field<ValType> field) Cond<ValType>
DSL to create 'IS NOT NULL' relational condition
isNull<ValType>(Field<ValType> field) Cond<ValType>
DSL to create 'IS NULL' relational condition
like(Field<String> field, String value) Cond<String>
DSL to create 'is like' relational condition
lt<ValType>(Field<ValType> field, ValType value) Cond<ValType>
DSL to create 'is less than' relational condition
ltEq<ValType>(Field<ValType> field, ValType value) Cond<ValType>
DSL to create 'is less than or equal to' relational condition
ne<ValType>(Field<ValType> field, ValType value) Cond<ValType>
DSL to create 'is not equal to' relational condition