IdField class

An IntField with id field constrains

Inheritance

Constructors

IdField([String columnName = 'id'])
Create an instance of IdField

Properties

ascOrder → FieldOrder
Get sql statement to order records in ascending way.
no setterinherited
autoIncrement ↔ bool?
Weather the field has auto-increment constrain.
getter/setter pairinherited
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
isEven → ConditionQuery
Get sql statement to check weather this field is even.
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
isOdd → ConditionQuery
Get sql statement to check weather this field is odd.
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
primaryKey ↔ bool?
Weather the field has primary-key constrain.
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 ↔ int?
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.
inherited
acos() → DoubleField
Get db value with ACOS(X) function applied.
inherited
asin() → DoubleField
Get db value with ASIN(X) function applied.
inherited
asNamed(String name) → QueryPart
Get QueryPart with custom name.
inherited
atan() → DoubleField
Get db value with ATAN(X) function applied.
inherited
atan2(num y) → DoubleField
Get db value with ATAN2(X,Y) function applied.
inherited
avg() → IntField
Get new IntField object with db AVG() function applied.
inherited
between(dynamic min, dynamic max) → ConditionQuery
Get a sql statement representation that check weather this value is between two values.
inherited
buildQuery() → String
Get the sql text represents this QueryPart
inherited
ceil() → DoubleField
Get db value with CEIL(X) function applied.
inherited
cos() → DoubleField
Get db value with COS(X) function applied.
inherited
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.
inherited
floor() → DoubleField
Get db value with FLOOR(X) function applied.
inherited
getParameters() → List
Get the parameters of this QueryPart,
inherited
inCollection(List<int> 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.
inherited
lessThanOrEquals(dynamic other) → ConditionQuery
Get a sql statement representation that check weather this value is less than or equal other.
inherited
ln() → DoubleField
Get db value with LN(X) function applied.
inherited
log() → DoubleField
Get db value with LOG(X) function applied.
inherited
log10() → DoubleField
Get db value with LOG10(X) function applied.
inherited
log2() → DoubleField
Get db value with LOG2(X) function applied.
inherited
logB(num base) → DoubleField
Get db value with LOG_B(base,X) function applied.
inherited
max() → DoubleField
Get db value with MAX() function applied.
inherited
min() → DoubleField
Get db value with MIN() function applied.
inherited
moreThan(dynamic other) → ConditionQuery
Get a sql statement representation that check weather this value is more than other.
inherited
moreThanOrEquals(dynamic other) → ConditionQuery
Get a sql statement representation that check weather this value is more than or equal other.
inherited
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<int> 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.
inherited
round([int? digits]) → DoubleField
Get a db field with this value rounded to digits decimals.
inherited
sin() → DoubleField
Get db value with SIN(X) function applied.
inherited
sqrt() → DoubleField
Get db value with SQRT(X) function applied.
inherited
tan() → DoubleField
Get db value with TAN(X) function applied.
inherited
toDegrees() → DoubleField
Convert from radians into degrees.
inherited
toDouble() → DoubleField
Get new DoubleField object with this field value.
inherited
toRadians() → DoubleField
Convert from degrees into radians.
inherited
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) → IntField
Get new IntField of this value % other
inherited
operator *(dynamic other) → IntField
Get new IntField of this value * other
inherited
operator +(dynamic other) → IntField
Get new IntField of this value + other
inherited
operator -(dynamic other) → IntField
Get new IntField of this value - other
inherited
operator /(dynamic other) → IntField
Get new IntField of this value / other
inherited
operator <(dynamic other) → ConditionQuery
Get a sql statement representation that check weather this value is less than other.
inherited
operator <=(dynamic other) → ConditionQuery
Get a sql statement representation that check weather this value is less than or equal other.
inherited
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.
inherited
operator >=(dynamic other) → ConditionQuery
Get a sql statement representation that check weather this value is more than or equal other.
inherited