Field class
A Field takes the place of the class properties in the generated code of a StanzaEntity.
A Field is the generated code representation of Dart class properties that provide an interface with database fields. A Field produces the corresponding field name of database fields and also contain functions to manipulate fields in Postgresql queries.
Constructors
- Field(String _tableName, String _fieldName)
Properties
- name → String
-
The String representation of the corresponding database field name.
read-only
- qualifiedName → String
-
The String representation of the corresponding table and field name 'tableName.fieldName'
read-only
- sql → String
-
read-only
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
aggregate(
String operation) → Field - Perform a supplied operation on a field.
-
avg(
) → Field - Perform an AVG operation on a field.
-
count(
) → Field - Perform a COUNT operation on a field.
-
max(
) → Field - Perform a MAX operation on a field.
-
min(
) → Field - Perform a MIN operation on a field.
-
rename(
String newName) → Field - Rename a field to a corresponding database field name. Postgresql AS. [...]
-
sum(
) → Field - Perform a SUM operation on a field.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited