BaseQuery<T extends BaseEntity> class

Implementers

Constructors

BaseQuery({Database? database, String? junctionOperator, List<String> selected = const []})

Properties

apiResourceName String?
getter/setter pair
data ↔ dynamic
getter/setter pair
database ↔ Database?
getter/setter pair
fields List<String>?
getter/setter pair
filters List<QueryFilter>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
getter/setter pair
junctionOperator String?
getter/setter pair
mergeMode MergeMode
no getter
primaryKey Column?
getter/setter pair
query QueryModel
no setter
relations List<ColumnRelation>
getter/setter pair
repository Repository<BaseEntity>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected List<String>
A list of strings as an argument for the select method. It can contain various fields as accepted by the DHIS2 API.
getter/setter pair
singularResourceName String?
getter/setter pair
sortOrder Map<String, SortOrder>
getter/setter pair
tableName String?
getter/setter pair

Methods

byId(String id) → dynamic
byIds(List<String> ids) → dynamic
count() Future
create() Future
createTable() Future
delete() Future
deleteOnline({Dio? dioTestClient}) Future<Map<String, dynamic>>
dhisUrl() Future<String>
download(dynamic callback(RequestProgress, bool), {Dio? dioTestClient}) Future<List<T>?>
fetchOnline({Dio? dioTestClient}) Future<List<T>>
get({Dio? dioTestClient, bool? online}) Future<List<T>>
getOne({Dio? dioTestClient, bool? online}) Future<T?>
greaterThan({required String attribute, required dynamic value}) → dynamic
greaterThanOrEqual({required String attribute, required dynamic value}) → dynamic
ilike({required String attribute, required dynamic value, String? filterCondition, String? key, String? keyValue}) → dynamic
lessThan({required String attribute, dynamic value}) → dynamic
lessThanOrEqual({required String attribute, required dynamic value}) → dynamic
like({required String attribute, required dynamic value}) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
orderBy({required String attribute, required SortOrder order}) → dynamic
save({SaveOptions? saveOptions}) Future<int>
select(List<String> fields) → dynamic
A method that accepted a list of user selected fields as an argument . Fields as accepted by the DHIS2 API.
setData(dynamic data) → dynamic
toString() String
A string representation of this object.
inherited
where({required String attribute, dynamic value}) → dynamic
whereIn({required String attribute, required List<String> values, required bool merge}) → dynamic

Operators

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