NumField<T> class

A num db representation, may be integer or double.

Inheritance
Implementers

Constructors

NumField(String? columnName, {int? precision, int? scale, bool? notNull, bool? isUnique, String? jsonMapName, Type jsonMapType = num})
Create an instance of NumField

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 Object?
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
l1 int?
finalinherited
l2 int?
finalinherited
notNull bool?
Weather to add NOT NULL constraint.
finalinherited
parametersBuilder ↔ (List Function()?)
Build the sql query of this QueryPart parameters.
getter/setter pairinherited
precision int?
getter/setter pair
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
scale int?
getter/setter pair
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

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.
setValue(Object? v) → void
inherited
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.