StringField class

A string db field representation.

Inheritance

Constructors

StringField({String? columnName, bool? notNull, bool? isUnique, String? jsonMapName, String? defaultValue})
Create an instance of StringField

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
length → IntField
Get db int field with the length of this string content.
no setter
longerOrder → FieldOrder
Get sql statement to order this field by its values lengths descending.
no setter
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
shorterOrder → FieldOrder
Get sql statement to order this field by its values lengths ascending.
no setter
value ↔ String?
The field value in native dart.
getter/setter pairinherited
valueType → Type
Get the native dart type of this field value.
no setterinherited

Methods

asNamed(String name) → QueryPart
Get QueryPart with custom name.
inherited
buildQuery() → String
Get the sql text represents this QueryPart
inherited
concat(dynamic other) → StringField
Concat this string db value with other, other may be StringField or String
contains(String text) → ConditionQuery
Get sql statement to check this value if contains text.
count() → IntField
Get an IntField with count of this field values.
inherited
endsWith(String text) → ConditionQuery
Get sql statement to check this value if ends with text.
equals(dynamic other) → ConditionQuery
Get sql statement to check weather this field value equal to another (db field, some native value).
inherited
getParameters() → List
Get the parameters of this QueryPart,
inherited
inCollection(List<String> collection) → ConditionQuery
Get sql statement to check weather this field value is in a collection of values.
inherited
indexOf(dynamic str) → IntField
Get db int field with the starct index of contained str, if not contained, returned field value will be -1.
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<String> collection) → ConditionQuery
Get sql statement to check weather this field value is not in a collection of values.
inherited
replace(String pattern, dynamic replacement) → StringField
Get db string field with replaced string.
startsWith(String text) → ConditionQuery
Get sql statement to check this value if start with text.
subString(int startIndex, int length) → StringField
Get string db value with SUBSTR() function applied.
toLowerCase() → StringField
Get string db value with LOWER() function applied.
toString() → String
A string representation of this object.
inherited
toUpperCase() → StringField
Get string db value with UPPER() function applied.
trim([String? ch]) → StringField
Get db string field with white spaces removed from left and right.
trimLeft([String? ch]) → StringField
Get db string field with white spaces removed from left.
trimRight([String? ch]) → StringField
Get db string field with white spaces removed from right.
typeof() → StringField
Get the db type of this query part using TYPEOF() function.
inherited
unicodeOfFirstCharacter() → IntField
Get a db int field with first character unicode.

Operators

operator +(dynamic other) → StringField
Concat this string db value with other, other may be StringField or String
operator ==(Object other) → bool
The equality operator.
inherited