NumField<T> class
A num db representation, may be integer
or double
.
- Inheritance
-
- Object
- QueryPart<
T> - FieldWithValue<
T> - NumField
- Implementers
Constructors
Properties
- ascOrder → FieldOrder
-
Get sql statement to order records in ascending way.
no setterinherited
- columnDefinition → String
-
Get this field column definition for creation table.
no setterinherited
- columnName → String?
-
The column name of this field.
finalinherited
- dbValue ↔ dynamic
-
Get the field value in db storable tyle.
getter/setter pairinherited
- descOrder → FieldOrder
-
Get sql statement to order records in descending way.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNotNull → ConditionQuery
-
Get sql statement to check weather this field value is not db null.
no setterinherited
- isNull → ConditionQuery
-
Get sql statement to check weather this field value is db null.
no setterinherited
- isUnique → bool?
-
Weather to add
UNIQUE
constraint.finalinherited - jsonMapName → String?
-
Represents the json part name of this value,
needed for serialization (not for saving in db).
finalinherited
- jsonMapType → Type?
-
The serialization type of this value.
finalinherited
- notNull → bool?
-
Weather to add
NOT NULL
constraint.finalinherited - parametersBuilder ↔ List Function()?
-
Build the sql query of this QueryPart parameters.
getter/setter pairinherited
- queryBuilder ↔ String Function()?
-
Build the sql query of this QueryPart.
getter/setter pairinherited
- randomOrder → FieldOrder
-
Get sql statement to order records in random way.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ T?
-
The field value in native dart.
getter/setter pairinherited
- valueType → Type
-
Get the native dart type of this field value.
no setterinherited
Methods
-
abs(
) → DoubleField -
Get db value with
ABS(X)
function applied. -
acos(
) → DoubleField -
Get db value with
ACOS(X)
function applied. -
asin(
) → DoubleField -
Get db value with
ASIN(X)
function applied. -
asNamed(
String name) → QueryPart -
Get QueryPart with custom name.
inherited
-
atan(
) → DoubleField -
Get db value with
ATAN(X)
function applied. -
atan2(
num y) → DoubleField -
Get db value with
ATAN2(X,Y)
function applied. -
between(
dynamic min, dynamic max) → ConditionQuery - Get a sql statement representation that check weather this value is between two values.
-
buildQuery(
) → String -
Get the sql text represents this QueryPart
inherited
-
ceil(
) → DoubleField -
Get db value with
CEIL(X)
function applied. -
cos(
) → DoubleField -
Get db value with
COS(X)
function applied. -
count(
) → IntField -
Get an IntField with count of this field values.
inherited
-
equals(
dynamic other) → ConditionQuery -
Get sql statement to check weather this field value equal to another (db field, some native value).
inherited
-
exp(
) → DoubleField -
Get db value with
EXP(X)
function applied. -
floor(
) → DoubleField -
Get db value with
FLOOR(X)
function applied. -
getParameters(
) → List -
Get the parameters of this QueryPart,
inherited
-
inCollection(
List< T> collection) → ConditionQuery -
Get sql statement to check weather this field value is in a collection of values.
inherited
-
lessThan(
dynamic other) → ConditionQuery -
Get a sql statement representation that check weather this value is less than
other
. -
lessThanOrEquals(
dynamic other) → ConditionQuery -
Get a sql statement representation that check weather this value is less than or equal
other
. -
ln(
) → DoubleField -
Get db value with
LN(X)
function applied. -
log(
) → DoubleField -
Get db value with
LOG(X)
function applied. -
log10(
) → DoubleField -
Get db value with
LOG10(X)
function applied. -
log2(
) → DoubleField -
Get db value with
LOG2(X)
function applied. -
logB(
num base) → DoubleField -
Get db value with
LOG_B(base,X)
function applied. -
max(
) → DoubleField -
Get db value with
MAX()
function applied. -
min(
) → DoubleField -
Get db value with
MIN()
function applied. -
moreThan(
dynamic other) → ConditionQuery -
Get a sql statement representation that check weather this value is more than
other
. -
moreThanOrEquals(
dynamic other) → ConditionQuery -
Get a sql statement representation that check weather this value is more than or equal
other
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notEquals(
dynamic other) → ConditionQuery -
Get sql statement to check weather this field value not equal to another (db field, some native value).
inherited
-
notInCollection(
List< T> collection) → ConditionQuery -
Get sql statement to check weather this field value is not in a collection of values.
inherited
-
powerTo(
num power) → DoubleField -
Get db value with
POW(X,power)
function applied. -
round(
[int? digits]) → DoubleField -
Get a db field with this value rounded to
digits
decimals. -
sin(
) → DoubleField -
Get db value with
SIN(X)
function applied. -
sqrt(
) → DoubleField -
Get db value with
SQRT(X)
function applied. -
tan(
) → DoubleField -
Get db value with
TAN(X)
function applied. -
toDegrees(
) → DoubleField - Convert from radians into degrees.
-
toRadians(
) → DoubleField - Convert from degrees into radians.
-
toString(
) → String -
A string representation of this object.
inherited
-
typeof(
) → StringField -
Get the db type of this query part using
TYPEOF()
function.inherited
Operators
-
operator <(
dynamic other) → ConditionQuery -
Get a sql statement representation that check weather this value is less than
other
. -
operator <=(
dynamic other) → ConditionQuery -
Get a sql statement representation that check weather this value is less than or equal
other
. -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >(
dynamic other) → ConditionQuery -
Get a sql statement representation that check weather this value is more than
other
. -
operator >=(
dynamic other) → ConditionQuery -
Get a sql statement representation that check weather this value is more than or equal
other
.