FieldWithValue<T> class

Represents a db field -with its value if required-.

Inheritance
Implementers

Constructors

FieldWithValue(String? columnName, {bool? notNull, bool? isUnique, T? defaultValue, String? jsonMapName, Type? jsonMapType})
Create an instance of FieldWithValue

Properties

ascOrder FieldOrder
Get sql statement to order records in ascending way.
no setter
columnDefinition String
Get this field column definition for creation table.
no setter
columnName String?
The column name of this field.
final
dbValue ↔ dynamic
Get the field value in db storable tyle.
getter/setter pair
descOrder FieldOrder
Get sql statement to order records in descending way.
no setter
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 setter
isNull ConditionQuery
Get sql statement to check weather this field value is db null.
no setter
isUnique bool?
Weather to add UNIQUE constraint.
final
jsonMapName String?
Represents the json part name of this value, needed for serialization (not for saving in db).
final
jsonMapType Type?
The serialization type of this value.
final
notNull bool?
Weather to add NOT NULL constraint.
final
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 setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T?
The field value in native dart.
getter/setter pair
valueType Type
Get the native dart type of this field value.
no setter

Methods

asNamed(String name) QueryPart
Get QueryPart with custom name.
inherited
buildQuery() String
Get the sql text represents this QueryPart
override
count() IntField
Get an IntField with count of this field values.
equals(dynamic other) ConditionQuery
Get sql statement to check weather this field value equal to another (db field, some native value).
getParameters() List
Get the parameters of this QueryPart,
override
inCollection(List<T> collection) ConditionQuery
Get sql statement to check weather this field value is in a collection of values.
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).
notInCollection(List<T> collection) ConditionQuery
Get sql statement to check weather this field value is not in a collection of values.
toString() String
A string representation of this object.
override
typeof() StringField
Get the db type of this query part using TYPEOF() function.
inherited

Operators

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