From c4174a248dc736dad9aacfc1a475a959e17c86b2 Mon Sep 17 00:00:00 2001 From: Jens Reinemuth Date: Mon, 28 Oct 2024 16:25:45 +0100 Subject: [PATCH] Baumarten -> TreeType --- .env | 2 +- lib/main.dart | 6 +- lib/src/domain/entity/entities.dart | 2 +- .../funding_program/funding_program.g.dart | 577 +++++--- .../tree_type.dart} | 12 +- .../tree_type.g.dart} | 1266 ++++++++--------- lib/src/packages/ambito_api/base.dart | 10 +- lib/src/packages/ambito_db/base_db.dart | 2 +- ...ository.dart => tree_type_repository.dart} | 4 +- 9 files changed, 983 insertions(+), 898 deletions(-) rename lib/src/domain/entity/{baumarten/baumarten.dart => tree_type/tree_type.dart} (88%) rename lib/src/domain/entity/{baumarten/baumarten.g.dart => tree_type/tree_type.g.dart} (78%) rename lib/src/packages/ambito_db/repositories/{baumarten_repository.dart => tree_type_repository.dart} (62%) diff --git a/.env b/.env index 12a06be..99e17ba 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ BASEROW_TOKEN="TFxO7vzBLVRCu9I3VMoHmTuCvSu8aCDi" -BASEROW_IDS='{"measure": 328253, "measure_combination": 328217, "organism": 328255, "funding_program": 328256, "factsheet": 328273, "standortansprueche": 328188, "referenzumsetzung": 328465, "betriebsverzeichnis": 328472, "erfahrungsbericht": 330802, "genehmigungspflicht": 330806, "dienstleister": 330824, "ansprechperson": 330832, "material": 330836, "quellen": 334231, "baumarten": 342622, "aenderungfactsheet": 330946}' \ No newline at end of file +BASEROW_IDS='{"measure": 328253, "measure_combination": 328217, "organism": 328255, "funding_program": 328256, "factsheet": 328273, "standortansprueche": 328188, "referenzumsetzung": 328465, "betriebsverzeichnis": 328472, "erfahrungsbericht": 330802, "genehmigungspflicht": 330806, "dienstleister": 330824, "ansprechperson": 330832, "material": 330836, "quellen": 334231, "tree_type": 342622, "aenderungfactsheet": 330946}' \ No newline at end of file diff --git a/lib/main.dart b/lib/main.dart index 31dbc0c..bd3a134 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -28,11 +28,11 @@ void main() async { const engine = kIsWeb ? IsarEngine.sqlite : IsarEngine.isar; isar = Isar.open( schemas: [ - BaumartenSchema, FundingProgramSchema, MeasureSchema, MeasureCombinationSchema, - OrganismSchema + OrganismSchema, + TreeTypeSchema, ], directory: dir, engine: engine, @@ -40,7 +40,7 @@ void main() async { ); await Future.wait([ - BaseApi().getContent('baumarten'), + BaseApi().getContent('tree_type'), BaseApi().getContent('measure'), BaseApi().getContent('measure_combination'), BaseApi().getContent('organism'), diff --git a/lib/src/domain/entity/entities.dart b/lib/src/domain/entity/entities.dart index 7665ab6..80382b3 100644 --- a/lib/src/domain/entity/entities.dart +++ b/lib/src/domain/entity/entities.dart @@ -1,7 +1,6 @@ library ambito_entities; export 'base_entity.dart'; -export 'baumarten/baumarten.dart'; export 'general/file/file_part.dart'; export 'general/file/thumbnail.dart'; export 'general/file/thumbnails.dart'; @@ -12,3 +11,4 @@ export 'general/month/month.dart'; export 'measure/measure.dart'; export 'measure_combination/measure_combination.dart'; export 'organism/organism.dart'; +export 'tree_type//tree_type.dart'; diff --git a/lib/src/domain/entity/funding_program/funding_program.g.dart b/lib/src/domain/entity/funding_program/funding_program.g.dart index cd73f3b..d080c0a 100644 --- a/lib/src/domain/entity/funding_program/funding_program.g.dart +++ b/lib/src/domain/entity/funding_program/funding_program.g.dart @@ -31,7 +31,22 @@ const FundingProgramSchema = IsarGeneratedSchema( ), IsarPropertySchema( name: 'calculationBase', - type: IsarType.string, + type: IsarType.object, + target: 'IdValueColor', + ), + IsarPropertySchema( + name: 'fundingFrequency', + type: IsarType.object, + target: 'IdValueColor', + ), + IsarPropertySchema( + name: 'deminimis', + type: IsarType.bool, + ), + IsarPropertySchema( + name: 'regions', + type: IsarType.objectList, + target: 'IdValueColor', ), IsarPropertySchema( name: 'name', @@ -54,7 +69,7 @@ const FundingProgramSchema = IsarGeneratedSchema( deserialize: deserializeFundingProgram, deserializeProperty: deserializeFundingProgramProp, ), - embeddedSchemas: [IdValueSchema], + embeddedSchemas: [IdValueSchema, IdValueColorSchema], ); @isarProtected @@ -89,15 +104,52 @@ int serializeFundingProgram(IsarWriter writer, FundingProgram object) { if (value == null) { IsarCore.writeNull(writer, 3); } else { - IsarCore.writeString(writer, 3, value); + final objectWriter = IsarCore.beginObject(writer, 3); + serializeIdValueColor(objectWriter, value); + IsarCore.endObject(writer, objectWriter); + } + } + { + final value = object.fundingFrequency; + if (value == null) { + IsarCore.writeNull(writer, 4); + } else { + final objectWriter = IsarCore.beginObject(writer, 4); + serializeIdValueColor(objectWriter, value); + IsarCore.endObject(writer, objectWriter); + } + } + { + final value = object.deminimis; + if (value == null) { + IsarCore.writeNull(writer, 5); + } else { + IsarCore.writeBool(writer, 5, value); + } + } + { + final list = object.regions; + if (list == null) { + IsarCore.writeNull(writer, 6); + } else { + final listWriter = IsarCore.beginList(writer, 6, list.length); + for (var i = 0; i < list.length; i++) { + { + final value = list[i]; + final objectWriter = IsarCore.beginObject(listWriter, i); + serializeIdValueColor(objectWriter, value); + IsarCore.endObject(listWriter, objectWriter); + } + } + IsarCore.endList(writer, listWriter); } } { final value = object.name; if (value == null) { - IsarCore.writeNull(writer, 4); + IsarCore.writeNull(writer, 7); } else { - IsarCore.writeString(writer, 4, value); + IsarCore.writeString(writer, 7, value); } } return object.id; @@ -132,9 +184,61 @@ FundingProgram deserializeFundingProgram(IsarReader reader) { } } object.fundingAmount = IsarCore.readString(reader, 2); - object.calculationBase = IsarCore.readString(reader, 3); + { + final objectReader = IsarCore.readObject(reader, 3); + if (objectReader.isNull) { + object.calculationBase = null; + } else { + final embedded = deserializeIdValueColor(objectReader); + IsarCore.freeReader(objectReader); + object.calculationBase = embedded; + } + } + { + final objectReader = IsarCore.readObject(reader, 4); + if (objectReader.isNull) { + object.fundingFrequency = null; + } else { + final embedded = deserializeIdValueColor(objectReader); + IsarCore.freeReader(objectReader); + object.fundingFrequency = embedded; + } + } + { + if (IsarCore.readNull(reader, 5)) { + object.deminimis = null; + } else { + object.deminimis = IsarCore.readBool(reader, 5); + } + } + { + final length = IsarCore.readList(reader, 6, IsarCore.readerPtrPtr); + { + final reader = IsarCore.readerPtr; + if (reader.isNull) { + object.regions = null; + } else { + final list = + List.filled(length, IdValueColor(), growable: true); + for (var i = 0; i < length; i++) { + { + final objectReader = IsarCore.readObject(reader, i); + if (objectReader.isNull) { + list[i] = IdValueColor(); + } else { + final embedded = deserializeIdValueColor(objectReader); + IsarCore.freeReader(objectReader); + list[i] = embedded; + } + } + } + IsarCore.freeReader(reader); + object.regions = list; + } + } + } object.id = IsarCore.readId(reader); - object.name = IsarCore.readString(reader, 4); + object.name = IsarCore.readString(reader, 7); return object; } @@ -171,11 +275,66 @@ dynamic deserializeFundingProgramProp(IsarReader reader, int property) { case 2: return IsarCore.readString(reader, 2); case 3: - return IsarCore.readString(reader, 3); + { + final objectReader = IsarCore.readObject(reader, 3); + if (objectReader.isNull) { + return null; + } else { + final embedded = deserializeIdValueColor(objectReader); + IsarCore.freeReader(objectReader); + return embedded; + } + } + case 4: + { + final objectReader = IsarCore.readObject(reader, 4); + if (objectReader.isNull) { + return null; + } else { + final embedded = deserializeIdValueColor(objectReader); + IsarCore.freeReader(objectReader); + return embedded; + } + } + case 5: + { + if (IsarCore.readNull(reader, 5)) { + return null; + } else { + return IsarCore.readBool(reader, 5); + } + } + case 6: + { + final length = IsarCore.readList(reader, 6, IsarCore.readerPtrPtr); + { + final reader = IsarCore.readerPtr; + if (reader.isNull) { + return null; + } else { + final list = List.filled(length, IdValueColor(), + growable: true); + for (var i = 0; i < length; i++) { + { + final objectReader = IsarCore.readObject(reader, i); + if (objectReader.isNull) { + list[i] = IdValueColor(); + } else { + final embedded = deserializeIdValueColor(objectReader); + IsarCore.freeReader(objectReader); + list[i] = embedded; + } + } + } + IsarCore.freeReader(reader); + return list; + } + } + } case 0: return IsarCore.readId(reader); - case 4: - return IsarCore.readString(reader, 4); + case 7: + return IsarCore.readString(reader, 7); default: throw ArgumentError('Unknown property: $property'); } @@ -185,7 +344,7 @@ sealed class _FundingProgramUpdate { bool call({ required int id, String? fundingAmount, - String? calculationBase, + bool? deminimis, String? name, }); } @@ -199,15 +358,15 @@ class _FundingProgramUpdateImpl implements _FundingProgramUpdate { bool call({ required int id, Object? fundingAmount = ignore, - Object? calculationBase = ignore, + Object? deminimis = ignore, Object? name = ignore, }) { return collection.updateProperties([ id ], { if (fundingAmount != ignore) 2: fundingAmount as String?, - if (calculationBase != ignore) 3: calculationBase as String?, - if (name != ignore) 4: name as String?, + if (deminimis != ignore) 5: deminimis as bool?, + if (name != ignore) 7: name as String?, }) > 0; } @@ -217,7 +376,7 @@ sealed class _FundingProgramUpdateAll { int call({ required List id, String? fundingAmount, - String? calculationBase, + bool? deminimis, String? name, }); } @@ -231,13 +390,13 @@ class _FundingProgramUpdateAllImpl implements _FundingProgramUpdateAll { int call({ required List id, Object? fundingAmount = ignore, - Object? calculationBase = ignore, + Object? deminimis = ignore, Object? name = ignore, }) { return collection.updateProperties(id, { if (fundingAmount != ignore) 2: fundingAmount as String?, - if (calculationBase != ignore) 3: calculationBase as String?, - if (name != ignore) 4: name as String?, + if (deminimis != ignore) 5: deminimis as bool?, + if (name != ignore) 7: name as String?, }); } } @@ -251,7 +410,7 @@ extension FundingProgramUpdate on IsarCollection { sealed class _FundingProgramQueryUpdate { int call({ String? fundingAmount, - String? calculationBase, + bool? deminimis, String? name, }); } @@ -265,13 +424,13 @@ class _FundingProgramQueryUpdateImpl implements _FundingProgramQueryUpdate { @override int call({ Object? fundingAmount = ignore, - Object? calculationBase = ignore, + Object? deminimis = ignore, Object? name = ignore, }) { return query.updateProperties(limit: limit, { if (fundingAmount != ignore) 2: fundingAmount as String?, - if (calculationBase != ignore) 3: calculationBase as String?, - if (name != ignore) 4: name as String?, + if (deminimis != ignore) 5: deminimis as bool?, + if (name != ignore) 7: name as String?, }); } } @@ -294,15 +453,15 @@ class _FundingProgramQueryBuilderUpdateImpl @override int call({ Object? fundingAmount = ignore, - Object? calculationBase = ignore, + Object? deminimis = ignore, Object? name = ignore, }) { final q = query.build(); try { return q.updateProperties(limit: limit, { if (fundingAmount != ignore) 2: fundingAmount as String?, - if (calculationBase != ignore) 3: calculationBase as String?, - if (name != ignore) 4: name as String?, + if (deminimis != ignore) 5: deminimis as bool?, + if (name != ignore) 7: name as String?, }); } finally { q.close(); @@ -560,181 +719,73 @@ extension FundingProgramQueryFilter } QueryBuilder - calculationBaseEqualTo( - String? value, { - bool caseSensitive = true, - }) { + fundingFrequencyIsNull() { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(const IsNullCondition(property: 4)); + }); + } + + QueryBuilder + fundingFrequencyIsNotNull() { + return QueryBuilder.apply(not(), (query) { + return query.addFilterCondition(const IsNullCondition(property: 4)); + }); + } + + QueryBuilder + deminimisIsNull() { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(const IsNullCondition(property: 5)); + }); + } + + QueryBuilder + deminimisIsNotNull() { + return QueryBuilder.apply(not(), (query) { + return query.addFilterCondition(const IsNullCondition(property: 5)); + }); + } + + QueryBuilder + deminimisEqualTo( + bool? value, + ) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( EqualCondition( - property: 3, + property: 5, value: value, - caseSensitive: caseSensitive, ), ); }); } QueryBuilder - calculationBaseGreaterThan( - String? value, { - bool caseSensitive = true, - }) { + regionsIsNull() { return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterCondition( - property: 3, - value: value, - caseSensitive: caseSensitive, - ), - ); + return query.addFilterCondition(const IsNullCondition(property: 6)); }); } QueryBuilder - calculationBaseGreaterThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterOrEqualCondition( - property: 3, - value: value, - caseSensitive: caseSensitive, - ), - ); + regionsIsNotNull() { + return QueryBuilder.apply(not(), (query) { + return query.addFilterCondition(const IsNullCondition(property: 6)); }); } QueryBuilder - calculationBaseLessThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessCondition( - property: 3, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); + regionsIsEmpty() { + return not().group( + (q) => q.regionsIsNull().or().regionsIsNotEmpty(), + ); } QueryBuilder - calculationBaseLessThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { + regionsIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( - LessOrEqualCondition( - property: 3, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - calculationBaseBetween( - String? lower, - String? upper, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - BetweenCondition( - property: 3, - lower: lower, - upper: upper, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - calculationBaseStartsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - StartsWithCondition( - property: 3, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - calculationBaseEndsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EndsWithCondition( - property: 3, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - calculationBaseContains(String value, {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - ContainsCondition( - property: 3, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - calculationBaseMatches(String pattern, {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - MatchesCondition( - property: 3, - wildcard: pattern, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - calculationBaseIsEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const EqualCondition( - property: 3, - value: '', - ), - ); - }); - } - - QueryBuilder - calculationBaseIsNotEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const GreaterCondition( - property: 3, - value: '', - ), + const GreaterOrEqualCondition(property: 6, value: null), ); }); } @@ -826,14 +877,14 @@ extension FundingProgramQueryFilter QueryBuilder nameIsNull() { return QueryBuilder.apply(this, (query) { - return query.addFilterCondition(const IsNullCondition(property: 4)); + return query.addFilterCondition(const IsNullCondition(property: 7)); }); } QueryBuilder nameIsNotNull() { return QueryBuilder.apply(not(), (query) { - return query.addFilterCondition(const IsNullCondition(property: 4)); + return query.addFilterCondition(const IsNullCondition(property: 7)); }); } @@ -845,7 +896,7 @@ extension FundingProgramQueryFilter return QueryBuilder.apply(this, (query) { return query.addFilterCondition( EqualCondition( - property: 4, + property: 7, value: value, caseSensitive: caseSensitive, ), @@ -861,7 +912,7 @@ extension FundingProgramQueryFilter return QueryBuilder.apply(this, (query) { return query.addFilterCondition( GreaterCondition( - property: 4, + property: 7, value: value, caseSensitive: caseSensitive, ), @@ -877,7 +928,7 @@ extension FundingProgramQueryFilter return QueryBuilder.apply(this, (query) { return query.addFilterCondition( GreaterOrEqualCondition( - property: 4, + property: 7, value: value, caseSensitive: caseSensitive, ), @@ -893,7 +944,7 @@ extension FundingProgramQueryFilter return QueryBuilder.apply(this, (query) { return query.addFilterCondition( LessCondition( - property: 4, + property: 7, value: value, caseSensitive: caseSensitive, ), @@ -909,7 +960,7 @@ extension FundingProgramQueryFilter return QueryBuilder.apply(this, (query) { return query.addFilterCondition( LessOrEqualCondition( - property: 4, + property: 7, value: value, caseSensitive: caseSensitive, ), @@ -926,7 +977,7 @@ extension FundingProgramQueryFilter return QueryBuilder.apply(this, (query) { return query.addFilterCondition( BetweenCondition( - property: 4, + property: 7, lower: lower, upper: upper, caseSensitive: caseSensitive, @@ -943,7 +994,7 @@ extension FundingProgramQueryFilter return QueryBuilder.apply(this, (query) { return query.addFilterCondition( StartsWithCondition( - property: 4, + property: 7, value: value, caseSensitive: caseSensitive, ), @@ -959,7 +1010,7 @@ extension FundingProgramQueryFilter return QueryBuilder.apply(this, (query) { return query.addFilterCondition( EndsWithCondition( - property: 4, + property: 7, value: value, caseSensitive: caseSensitive, ), @@ -972,7 +1023,7 @@ extension FundingProgramQueryFilter return QueryBuilder.apply(this, (query) { return query.addFilterCondition( ContainsCondition( - property: 4, + property: 7, value: value, caseSensitive: caseSensitive, ), @@ -985,7 +1036,7 @@ extension FundingProgramQueryFilter return QueryBuilder.apply(this, (query) { return query.addFilterCondition( MatchesCondition( - property: 4, + property: 7, wildcard: pattern, caseSensitive: caseSensitive, ), @@ -998,7 +1049,7 @@ extension FundingProgramQueryFilter return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( - property: 4, + property: 7, value: '', ), ); @@ -1010,7 +1061,7 @@ extension FundingProgramQueryFilter return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterCondition( - property: 4, + property: 7, value: '', ), ); @@ -1019,7 +1070,21 @@ extension FundingProgramQueryFilter } extension FundingProgramQueryObject - on QueryBuilder {} + on QueryBuilder { + QueryBuilder + calculationBase(FilterQuery q) { + return QueryBuilder.apply(this, (query) { + return query.object(q, 3); + }); + } + + QueryBuilder + fundingFrequency(FilterQuery q) { + return QueryBuilder.apply(this, (query) { + return query.object(q, 4); + }); + } +} extension FundingProgramQuerySortBy on QueryBuilder { @@ -1044,24 +1109,16 @@ extension FundingProgramQuerySortBy }); } - QueryBuilder - sortByCalculationBase({bool caseSensitive = true}) { + QueryBuilder sortByDeminimis() { return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 3, - caseSensitive: caseSensitive, - ); + return query.addSortBy(5); }); } QueryBuilder - sortByCalculationBaseDesc({bool caseSensitive = true}) { + sortByDeminimisDesc() { return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 3, - sort: Sort.desc, - caseSensitive: caseSensitive, - ); + return query.addSortBy(5, sort: Sort.desc); }); } @@ -1081,7 +1138,7 @@ extension FundingProgramQuerySortBy {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( - 4, + 7, caseSensitive: caseSensitive, ); }); @@ -1091,7 +1148,7 @@ extension FundingProgramQuerySortBy {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( - 4, + 7, sort: Sort.desc, caseSensitive: caseSensitive, ); @@ -1115,17 +1172,16 @@ extension FundingProgramQuerySortThenBy }); } - QueryBuilder - thenByCalculationBase({bool caseSensitive = true}) { + QueryBuilder thenByDeminimis() { return QueryBuilder.apply(this, (query) { - return query.addSortBy(3, caseSensitive: caseSensitive); + return query.addSortBy(5); }); } QueryBuilder - thenByCalculationBaseDesc({bool caseSensitive = true}) { + thenByDeminimisDesc() { return QueryBuilder.apply(this, (query) { - return query.addSortBy(3, sort: Sort.desc, caseSensitive: caseSensitive); + return query.addSortBy(5, sort: Sort.desc); }); } @@ -1144,14 +1200,14 @@ extension FundingProgramQuerySortThenBy QueryBuilder thenByName( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { - return query.addSortBy(4, caseSensitive: caseSensitive); + return query.addSortBy(7, caseSensitive: caseSensitive); }); } QueryBuilder thenByNameDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { - return query.addSortBy(4, sort: Sort.desc, caseSensitive: caseSensitive); + return query.addSortBy(7, sort: Sort.desc, caseSensitive: caseSensitive); }); } } @@ -1166,16 +1222,16 @@ extension FundingProgramQueryWhereDistinct } QueryBuilder - distinctByCalculationBase({bool caseSensitive = true}) { + distinctByDeminimis() { return QueryBuilder.apply(this, (query) { - return query.addDistinctBy(3, caseSensitive: caseSensitive); + return query.addDistinctBy(5); }); } QueryBuilder distinctByName( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { - return query.addDistinctBy(4, caseSensitive: caseSensitive); + return query.addDistinctBy(7, caseSensitive: caseSensitive); }); } } @@ -1196,13 +1252,33 @@ extension FundingProgramQueryProperty1 }); } - QueryBuilder + QueryBuilder calculationBaseProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(3); }); } + QueryBuilder + fundingFrequencyProperty() { + return QueryBuilder.apply(this, (query) { + return query.addProperty(4); + }); + } + + QueryBuilder deminimisProperty() { + return QueryBuilder.apply(this, (query) { + return query.addProperty(5); + }); + } + + QueryBuilder?, QAfterProperty> + regionsProperty() { + return QueryBuilder.apply(this, (query) { + return query.addProperty(6); + }); + } + QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(0); @@ -1211,7 +1287,7 @@ extension FundingProgramQueryProperty1 QueryBuilder nameProperty() { return QueryBuilder.apply(this, (query) { - return query.addProperty(4); + return query.addProperty(7); }); } } @@ -1232,13 +1308,33 @@ extension FundingProgramQueryProperty2 }); } - QueryBuilder + QueryBuilder calculationBaseProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(3); }); } + QueryBuilder + fundingFrequencyProperty() { + return QueryBuilder.apply(this, (query) { + return query.addProperty(4); + }); + } + + QueryBuilder deminimisProperty() { + return QueryBuilder.apply(this, (query) { + return query.addProperty(5); + }); + } + + QueryBuilder?), QAfterProperty> + regionsProperty() { + return QueryBuilder.apply(this, (query) { + return query.addProperty(6); + }); + } + QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(0); @@ -1247,7 +1343,7 @@ extension FundingProgramQueryProperty2 QueryBuilder nameProperty() { return QueryBuilder.apply(this, (query) { - return query.addProperty(4); + return query.addProperty(7); }); } } @@ -1268,13 +1364,34 @@ extension FundingProgramQueryProperty3 }); } - QueryBuilder + QueryBuilder calculationBaseProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(3); }); } + QueryBuilder + fundingFrequencyProperty() { + return QueryBuilder.apply(this, (query) { + return query.addProperty(4); + }); + } + + QueryBuilder + deminimisProperty() { + return QueryBuilder.apply(this, (query) { + return query.addProperty(5); + }); + } + + QueryBuilder?), QOperations> + regionsProperty() { + return QueryBuilder.apply(this, (query) { + return query.addProperty(6); + }); + } + QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(0); @@ -1283,7 +1400,7 @@ extension FundingProgramQueryProperty3 QueryBuilder nameProperty() { return QueryBuilder.apply(this, (query) { - return query.addProperty(4); + return query.addProperty(7); }); } } @@ -1300,7 +1417,18 @@ FundingProgram _$FundingProgramFromJson(Map json) => ?.map((e) => IdValue.fromJson(e as Map)) .toList() ..fundingAmount = json['Höhe der Förderung'] as String? - ..calculationBase = json['Berechnungsgrundlage'] as String?; + ..calculationBase = json['Berechnungsgrundlage'] == null + ? null + : IdValueColor.fromJson( + json['Berechnungsgrundlage'] as Map) + ..fundingFrequency = json['Förderfrequenz'] == null + ? null + : IdValueColor.fromJson( + json['Förderfrequenz'] as Map) + ..deminimis = json['De-Minimis-Pflichtig'] as bool? + ..regions = (json['Region/Bundesland'] as List?) + ?.map((e) => IdValueColor.fromJson(e as Map)) + .toList(); Map _$FundingProgramToJson(FundingProgram instance) => { @@ -1308,5 +1436,8 @@ Map _$FundingProgramToJson(FundingProgram instance) => 'Name': instance.name, 'Maßnahmen_Main': instance.measures?.map((e) => e.toJson()).toList(), 'Höhe der Förderung': instance.fundingAmount, - 'Berechnungsgrundlage': instance.calculationBase, + 'Berechnungsgrundlage': instance.calculationBase?.toJson(), + 'Förderfrequenz': instance.fundingFrequency?.toJson(), + 'De-Minimis-Pflichtig': instance.deminimis, + 'Region/Bundesland': instance.regions?.map((e) => e.toJson()).toList(), }; diff --git a/lib/src/domain/entity/baumarten/baumarten.dart b/lib/src/domain/entity/tree_type/tree_type.dart similarity index 88% rename from lib/src/domain/entity/baumarten/baumarten.dart rename to lib/src/domain/entity/tree_type/tree_type.dart index cd32960..b097e6e 100644 --- a/lib/src/domain/entity/baumarten/baumarten.dart +++ b/lib/src/domain/entity/tree_type/tree_type.dart @@ -2,12 +2,12 @@ import 'package:ambito/src/domain/entity/entities.dart'; import 'package:isar/isar.dart'; import 'package:json_annotation/json_annotation.dart'; -part 'baumarten.g.dart'; +part 'tree_type.g.dart'; @JsonSerializable(explicitToJson: true) @collection -class Baumarten extends BaseEntity with EntityWithId { - Baumarten(); +class TreeType extends BaseEntity with EntityWithId { + TreeType(); @JsonKey(name: 'order') String? orderString; @@ -74,8 +74,8 @@ class Baumarten extends BaseEntity with EntityWithId { @JsonKey(name: 'Heimisch') bool? local; - factory Baumarten.fromJson(Map json) => - _$BaumartenFromJson(json); + factory TreeType.fromJson(Map json) => + _$TreeTypeFromJson(json); - Map toJson() => _$BaumartenToJson(this); + Map toJson() => _$TreeTypeToJson(this); } diff --git a/lib/src/domain/entity/baumarten/baumarten.g.dart b/lib/src/domain/entity/tree_type/tree_type.g.dart similarity index 78% rename from lib/src/domain/entity/baumarten/baumarten.g.dart rename to lib/src/domain/entity/tree_type/tree_type.g.dart index 3eec6d7..7a447ec 100644 --- a/lib/src/domain/entity/baumarten/baumarten.g.dart +++ b/lib/src/domain/entity/tree_type/tree_type.g.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND -part of 'baumarten.dart'; +part of 'tree_type.dart'; // ************************************************************************** // _IsarCollectionGenerator @@ -10,13 +10,13 @@ part of 'baumarten.dart'; // ignore_for_file: duplicate_ignore, invalid_use_of_protected_member, lines_longer_than_80_chars, constant_identifier_names, avoid_js_rounded_ints, no_leading_underscores_for_local_identifiers, require_trailing_commas, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_in_if_null_operators, library_private_types_in_public_api, prefer_const_constructors // ignore_for_file: type=lint -extension GetBaumartenCollection on Isar { - IsarCollection get baumartens => this.collection(); +extension GetTreeTypeCollection on Isar { + IsarCollection get treeTypes => this.collection(); } -const BaumartenSchema = IsarGeneratedSchema( +const TreeTypeSchema = IsarGeneratedSchema( schema: IsarSchema( - name: 'Baumarten', + name: 'TreeType', idName: 'id', embedded: false, properties: [ @@ -162,16 +162,16 @@ const BaumartenSchema = IsarGeneratedSchema( ], indexes: [], ), - converter: IsarObjectConverter( - serialize: serializeBaumarten, - deserialize: deserializeBaumarten, - deserializeProperty: deserializeBaumartenProp, + converter: IsarObjectConverter( + serialize: serializeTreeType, + deserialize: deserializeTreeType, + deserializeProperty: deserializeTreeTypeProp, ), embeddedSchemas: [IdValueColorSchema, IdValueSchema], ); @isarProtected -int serializeBaumarten(IsarWriter writer, Baumarten object) { +int serializeTreeType(IsarWriter writer, TreeType object) { { final value = object.orderString; if (value == null) { @@ -496,8 +496,8 @@ int serializeBaumarten(IsarWriter writer, Baumarten object) { } @isarProtected -Baumarten deserializeBaumarten(IsarReader reader) { - final object = Baumarten(); +TreeType deserializeTreeType(IsarReader reader) { + final object = TreeType(); object.orderString = IsarCore.readString(reader, 1); object.art = IsarCore.readString(reader, 2); object.id2 = IsarCore.readString(reader, 3); @@ -735,7 +735,7 @@ Baumarten deserializeBaumarten(IsarReader reader) { } @isarProtected -dynamic deserializeBaumartenProp(IsarReader reader, int property) { +dynamic deserializeTreeTypeProp(IsarReader reader, int property) { switch (property) { case 1: return IsarCore.readString(reader, 1); @@ -1009,7 +1009,7 @@ dynamic deserializeBaumartenProp(IsarReader reader, int property) { } } -sealed class _BaumartenUpdate { +sealed class _TreeTypeUpdate { bool call({ required int id, String? orderString, @@ -1036,10 +1036,10 @@ sealed class _BaumartenUpdate { }); } -class _BaumartenUpdateImpl implements _BaumartenUpdate { - const _BaumartenUpdateImpl(this.collection); +class _TreeTypeUpdateImpl implements _TreeTypeUpdate { + const _TreeTypeUpdateImpl(this.collection); - final IsarCollection collection; + final IsarCollection collection; @override bool call({ @@ -1095,7 +1095,7 @@ class _BaumartenUpdateImpl implements _BaumartenUpdate { } } -sealed class _BaumartenUpdateAll { +sealed class _TreeTypeUpdateAll { int call({ required List id, String? orderString, @@ -1122,10 +1122,10 @@ sealed class _BaumartenUpdateAll { }); } -class _BaumartenUpdateAllImpl implements _BaumartenUpdateAll { - const _BaumartenUpdateAllImpl(this.collection); +class _TreeTypeUpdateAllImpl implements _TreeTypeUpdateAll { + const _TreeTypeUpdateAllImpl(this.collection); - final IsarCollection collection; + final IsarCollection collection; @override int call({ @@ -1178,13 +1178,13 @@ class _BaumartenUpdateAllImpl implements _BaumartenUpdateAll { } } -extension BaumartenUpdate on IsarCollection { - _BaumartenUpdate get update => _BaumartenUpdateImpl(this); +extension TreeTypeUpdate on IsarCollection { + _TreeTypeUpdate get update => _TreeTypeUpdateImpl(this); - _BaumartenUpdateAll get updateAll => _BaumartenUpdateAllImpl(this); + _TreeTypeUpdateAll get updateAll => _TreeTypeUpdateAllImpl(this); } -sealed class _BaumartenQueryUpdate { +sealed class _TreeTypeQueryUpdate { int call({ String? orderString, String? art, @@ -1210,10 +1210,10 @@ sealed class _BaumartenQueryUpdate { }); } -class _BaumartenQueryUpdateImpl implements _BaumartenQueryUpdate { - const _BaumartenQueryUpdateImpl(this.query, {this.limit}); +class _TreeTypeQueryUpdateImpl implements _TreeTypeQueryUpdate { + const _TreeTypeQueryUpdateImpl(this.query, {this.limit}); - final IsarQuery query; + final IsarQuery query; final int? limit; @override @@ -1266,17 +1266,17 @@ class _BaumartenQueryUpdateImpl implements _BaumartenQueryUpdate { } } -extension BaumartenQueryUpdate on IsarQuery { - _BaumartenQueryUpdate get updateFirst => - _BaumartenQueryUpdateImpl(this, limit: 1); +extension TreeTypeQueryUpdate on IsarQuery { + _TreeTypeQueryUpdate get updateFirst => + _TreeTypeQueryUpdateImpl(this, limit: 1); - _BaumartenQueryUpdate get updateAll => _BaumartenQueryUpdateImpl(this); + _TreeTypeQueryUpdate get updateAll => _TreeTypeQueryUpdateImpl(this); } -class _BaumartenQueryBuilderUpdateImpl implements _BaumartenQueryUpdate { - const _BaumartenQueryBuilderUpdateImpl(this.query, {this.limit}); +class _TreeTypeQueryBuilderUpdateImpl implements _TreeTypeQueryUpdate { + const _TreeTypeQueryBuilderUpdateImpl(this.query, {this.limit}); - final QueryBuilder query; + final QueryBuilder query; final int? limit; @override @@ -1334,31 +1334,30 @@ class _BaumartenQueryBuilderUpdateImpl implements _BaumartenQueryUpdate { } } -extension BaumartenQueryBuilderUpdate - on QueryBuilder { - _BaumartenQueryUpdate get updateFirst => - _BaumartenQueryBuilderUpdateImpl(this, limit: 1); +extension TreeTypeQueryBuilderUpdate + on QueryBuilder { + _TreeTypeQueryUpdate get updateFirst => + _TreeTypeQueryBuilderUpdateImpl(this, limit: 1); - _BaumartenQueryUpdate get updateAll => _BaumartenQueryBuilderUpdateImpl(this); + _TreeTypeQueryUpdate get updateAll => _TreeTypeQueryBuilderUpdateImpl(this); } -extension BaumartenQueryFilter - on QueryBuilder { - QueryBuilder - orderStringIsNull() { +extension TreeTypeQueryFilter + on QueryBuilder { + QueryBuilder orderStringIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 1)); }); } - QueryBuilder + QueryBuilder orderStringIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 1)); }); } - QueryBuilder orderStringEqualTo( + QueryBuilder orderStringEqualTo( String? value, { bool caseSensitive = true, }) { @@ -1373,7 +1372,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder orderStringGreaterThan( String? value, { bool caseSensitive = true, @@ -1389,7 +1388,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder orderStringGreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -1405,7 +1404,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder orderStringLessThan( + QueryBuilder orderStringLessThan( String? value, { bool caseSensitive = true, }) { @@ -1420,7 +1419,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder orderStringLessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -1436,7 +1435,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder orderStringBetween( + QueryBuilder orderStringBetween( String? lower, String? upper, { bool caseSensitive = true, @@ -1453,8 +1452,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - orderStringStartsWith( + QueryBuilder orderStringStartsWith( String value, { bool caseSensitive = true, }) { @@ -1469,7 +1467,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder orderStringEndsWith( + QueryBuilder orderStringEndsWith( String value, { bool caseSensitive = true, }) { @@ -1484,7 +1482,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder orderStringContains( + QueryBuilder orderStringContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -1498,7 +1496,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder orderStringMatches( + QueryBuilder orderStringMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -1512,8 +1510,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - orderStringIsEmpty() { + QueryBuilder orderStringIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( @@ -1524,7 +1521,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder orderStringIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -1536,19 +1533,19 @@ extension BaumartenQueryFilter }); } - QueryBuilder artIsNull() { + QueryBuilder artIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 2)); }); } - QueryBuilder artIsNotNull() { + QueryBuilder artIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 2)); }); } - QueryBuilder artEqualTo( + QueryBuilder artEqualTo( String? value, { bool caseSensitive = true, }) { @@ -1563,7 +1560,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder artGreaterThan( + QueryBuilder artGreaterThan( String? value, { bool caseSensitive = true, }) { @@ -1578,7 +1575,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder artGreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -1594,7 +1591,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder artLessThan( + QueryBuilder artLessThan( String? value, { bool caseSensitive = true, }) { @@ -1609,8 +1606,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - artLessThanOrEqualTo( + QueryBuilder artLessThanOrEqualTo( String? value, { bool caseSensitive = true, }) { @@ -1625,7 +1621,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder artBetween( + QueryBuilder artBetween( String? lower, String? upper, { bool caseSensitive = true, @@ -1642,7 +1638,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder artStartsWith( + QueryBuilder artStartsWith( String value, { bool caseSensitive = true, }) { @@ -1657,7 +1653,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder artEndsWith( + QueryBuilder artEndsWith( String value, { bool caseSensitive = true, }) { @@ -1672,7 +1668,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder artContains( + QueryBuilder artContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -1686,7 +1682,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder artMatches( + QueryBuilder artMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -1700,7 +1696,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder artIsEmpty() { + QueryBuilder artIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( @@ -1711,7 +1707,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder artIsNotEmpty() { + QueryBuilder artIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterCondition( @@ -1722,19 +1718,19 @@ extension BaumartenQueryFilter }); } - QueryBuilder id2IsNull() { + QueryBuilder id2IsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 3)); }); } - QueryBuilder id2IsNotNull() { + QueryBuilder id2IsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 3)); }); } - QueryBuilder id2EqualTo( + QueryBuilder id2EqualTo( String? value, { bool caseSensitive = true, }) { @@ -1749,7 +1745,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder id2GreaterThan( + QueryBuilder id2GreaterThan( String? value, { bool caseSensitive = true, }) { @@ -1764,7 +1760,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder id2GreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -1780,7 +1776,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder id2LessThan( + QueryBuilder id2LessThan( String? value, { bool caseSensitive = true, }) { @@ -1795,8 +1791,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - id2LessThanOrEqualTo( + QueryBuilder id2LessThanOrEqualTo( String? value, { bool caseSensitive = true, }) { @@ -1811,7 +1806,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder id2Between( + QueryBuilder id2Between( String? lower, String? upper, { bool caseSensitive = true, @@ -1828,7 +1823,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder id2StartsWith( + QueryBuilder id2StartsWith( String value, { bool caseSensitive = true, }) { @@ -1843,7 +1838,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder id2EndsWith( + QueryBuilder id2EndsWith( String value, { bool caseSensitive = true, }) { @@ -1858,7 +1853,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder id2Contains( + QueryBuilder id2Contains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -1872,7 +1867,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder id2Matches( + QueryBuilder id2Matches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -1886,7 +1881,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder id2IsEmpty() { + QueryBuilder id2IsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( @@ -1897,7 +1892,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder id2IsNotEmpty() { + QueryBuilder id2IsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterCondition( @@ -1908,19 +1903,19 @@ extension BaumartenQueryFilter }); } - QueryBuilder nameIsNull() { + QueryBuilder nameIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 4)); }); } - QueryBuilder nameIsNotNull() { + QueryBuilder nameIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 4)); }); } - QueryBuilder nameEqualTo( + QueryBuilder nameEqualTo( String? value, { bool caseSensitive = true, }) { @@ -1935,7 +1930,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder nameGreaterThan( + QueryBuilder nameGreaterThan( String? value, { bool caseSensitive = true, }) { @@ -1950,7 +1945,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder nameGreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -1966,7 +1961,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder nameLessThan( + QueryBuilder nameLessThan( String? value, { bool caseSensitive = true, }) { @@ -1981,8 +1976,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - nameLessThanOrEqualTo( + QueryBuilder nameLessThanOrEqualTo( String? value, { bool caseSensitive = true, }) { @@ -1997,7 +1991,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder nameBetween( + QueryBuilder nameBetween( String? lower, String? upper, { bool caseSensitive = true, @@ -2014,7 +2008,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder nameStartsWith( + QueryBuilder nameStartsWith( String value, { bool caseSensitive = true, }) { @@ -2029,7 +2023,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder nameEndsWith( + QueryBuilder nameEndsWith( String value, { bool caseSensitive = true, }) { @@ -2044,7 +2038,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder nameContains( + QueryBuilder nameContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -2058,7 +2052,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder nameMatches( + QueryBuilder nameMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -2072,7 +2066,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder nameIsEmpty() { + QueryBuilder nameIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( @@ -2083,7 +2077,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder nameIsNotEmpty() { + QueryBuilder nameIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterCondition( @@ -2094,19 +2088,19 @@ extension BaumartenQueryFilter }); } - QueryBuilder minSizeIsNull() { + QueryBuilder minSizeIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 5)); }); } - QueryBuilder minSizeIsNotNull() { + QueryBuilder minSizeIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 5)); }); } - QueryBuilder minSizeEqualTo( + QueryBuilder minSizeEqualTo( String? value, { bool caseSensitive = true, }) { @@ -2121,7 +2115,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder minSizeGreaterThan( + QueryBuilder minSizeGreaterThan( String? value, { bool caseSensitive = true, }) { @@ -2136,7 +2130,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder minSizeGreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -2152,7 +2146,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder minSizeLessThan( + QueryBuilder minSizeLessThan( String? value, { bool caseSensitive = true, }) { @@ -2167,7 +2161,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder minSizeLessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -2183,7 +2177,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder minSizeBetween( + QueryBuilder minSizeBetween( String? lower, String? upper, { bool caseSensitive = true, @@ -2200,7 +2194,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder minSizeStartsWith( + QueryBuilder minSizeStartsWith( String value, { bool caseSensitive = true, }) { @@ -2215,7 +2209,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder minSizeEndsWith( + QueryBuilder minSizeEndsWith( String value, { bool caseSensitive = true, }) { @@ -2230,7 +2224,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder minSizeContains( + QueryBuilder minSizeContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -2244,7 +2238,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder minSizeMatches( + QueryBuilder minSizeMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -2258,7 +2252,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder minSizeIsEmpty() { + QueryBuilder minSizeIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( @@ -2269,8 +2263,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - minSizeIsNotEmpty() { + QueryBuilder minSizeIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterCondition( @@ -2281,19 +2274,19 @@ extension BaumartenQueryFilter }); } - QueryBuilder maxSizeIsNull() { + QueryBuilder maxSizeIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 6)); }); } - QueryBuilder maxSizeIsNotNull() { + QueryBuilder maxSizeIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 6)); }); } - QueryBuilder maxSizeEqualTo( + QueryBuilder maxSizeEqualTo( String? value, { bool caseSensitive = true, }) { @@ -2308,7 +2301,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder maxSizeGreaterThan( + QueryBuilder maxSizeGreaterThan( String? value, { bool caseSensitive = true, }) { @@ -2323,7 +2316,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder maxSizeGreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -2339,7 +2332,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder maxSizeLessThan( + QueryBuilder maxSizeLessThan( String? value, { bool caseSensitive = true, }) { @@ -2354,7 +2347,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder maxSizeLessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -2370,7 +2363,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder maxSizeBetween( + QueryBuilder maxSizeBetween( String? lower, String? upper, { bool caseSensitive = true, @@ -2387,7 +2380,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder maxSizeStartsWith( + QueryBuilder maxSizeStartsWith( String value, { bool caseSensitive = true, }) { @@ -2402,7 +2395,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder maxSizeEndsWith( + QueryBuilder maxSizeEndsWith( String value, { bool caseSensitive = true, }) { @@ -2417,7 +2410,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder maxSizeContains( + QueryBuilder maxSizeContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -2431,7 +2424,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder maxSizeMatches( + QueryBuilder maxSizeMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -2445,7 +2438,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder maxSizeIsEmpty() { + QueryBuilder maxSizeIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( @@ -2456,8 +2449,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - maxSizeIsNotEmpty() { + QueryBuilder maxSizeIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterCondition( @@ -2468,27 +2460,26 @@ extension BaumartenQueryFilter }); } - QueryBuilder lebensformIsNull() { + QueryBuilder lebensformIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 7)); }); } - QueryBuilder + QueryBuilder lebensformIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 7)); }); } - QueryBuilder - lebensformIsEmpty() { + QueryBuilder lebensformIsEmpty() { return not().group( (q) => q.lebensformIsNull().or().lebensformIsNotEmpty(), ); } - QueryBuilder + QueryBuilder lebensformIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -2497,25 +2488,25 @@ extension BaumartenQueryFilter }); } - QueryBuilder growthIsNull() { + QueryBuilder growthIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 8)); }); } - QueryBuilder growthIsNotNull() { + QueryBuilder growthIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 8)); }); } - QueryBuilder growthIsEmpty() { + QueryBuilder growthIsEmpty() { return not().group( (q) => q.growthIsNull().or().growthIsNotEmpty(), ); } - QueryBuilder growthIsNotEmpty() { + QueryBuilder growthIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterOrEqualCondition(property: 8, value: null), @@ -2523,26 +2514,25 @@ extension BaumartenQueryFilter }); } - QueryBuilder climateIsNull() { + QueryBuilder climateIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 9)); }); } - QueryBuilder climateIsNotNull() { + QueryBuilder climateIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 9)); }); } - QueryBuilder climateIsEmpty() { + QueryBuilder climateIsEmpty() { return not().group( (q) => q.climateIsNull().or().climateIsNotEmpty(), ); } - QueryBuilder - climateIsNotEmpty() { + QueryBuilder climateIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterOrEqualCondition(property: 9, value: null), @@ -2550,85 +2540,83 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder riskCherryVinegarFlyIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 10)); }); } - QueryBuilder + QueryBuilder riskCherryVinegarFlyIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 10)); }); } - QueryBuilder - thermophilicIsNull() { + QueryBuilder thermophilicIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 11)); }); } - QueryBuilder + QueryBuilder thermophilicIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 11)); }); } - QueryBuilder frostIsNull() { + QueryBuilder frostIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 12)); }); } - QueryBuilder frostIsNotNull() { + QueryBuilder frostIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 12)); }); } - QueryBuilder latefrostIsNull() { + QueryBuilder latefrostIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 13)); }); } - QueryBuilder - latefrostIsNotNull() { + QueryBuilder latefrostIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 13)); }); } - QueryBuilder droughtIsNull() { + QueryBuilder droughtIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 14)); }); } - QueryBuilder droughtIsNotNull() { + QueryBuilder droughtIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 14)); }); } - QueryBuilder waterlevelIsNull() { + QueryBuilder waterlevelIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 15)); }); } - QueryBuilder + QueryBuilder waterlevelIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 15)); }); } - QueryBuilder waterlevelEqualTo( + QueryBuilder waterlevelEqualTo( String? value, { bool caseSensitive = true, }) { @@ -2643,8 +2631,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - waterlevelGreaterThan( + QueryBuilder waterlevelGreaterThan( String? value, { bool caseSensitive = true, }) { @@ -2659,7 +2646,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder waterlevelGreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -2675,7 +2662,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder waterlevelLessThan( + QueryBuilder waterlevelLessThan( String? value, { bool caseSensitive = true, }) { @@ -2690,7 +2677,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder waterlevelLessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -2706,7 +2693,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder waterlevelBetween( + QueryBuilder waterlevelBetween( String? lower, String? upper, { bool caseSensitive = true, @@ -2723,8 +2710,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - waterlevelStartsWith( + QueryBuilder waterlevelStartsWith( String value, { bool caseSensitive = true, }) { @@ -2739,7 +2725,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder waterlevelEndsWith( + QueryBuilder waterlevelEndsWith( String value, { bool caseSensitive = true, }) { @@ -2754,7 +2740,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder waterlevelContains( + QueryBuilder waterlevelContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -2768,7 +2754,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder waterlevelMatches( + QueryBuilder waterlevelMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -2782,8 +2768,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - waterlevelIsEmpty() { + QueryBuilder waterlevelIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( @@ -2794,7 +2779,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder waterlevelIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -2806,27 +2791,25 @@ extension BaumartenQueryFilter }); } - QueryBuilder humidityIsNull() { + QueryBuilder humidityIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 16)); }); } - QueryBuilder - humidityIsNotNull() { + QueryBuilder humidityIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 16)); }); } - QueryBuilder humidityIsEmpty() { + QueryBuilder humidityIsEmpty() { return not().group( (q) => q.humidityIsNull().or().humidityIsNotEmpty(), ); } - QueryBuilder - humidityIsNotEmpty() { + QueryBuilder humidityIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterOrEqualCondition(property: 16, value: null), @@ -2834,20 +2817,20 @@ extension BaumartenQueryFilter }); } - QueryBuilder valueLightIsNull() { + QueryBuilder valueLightIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 17)); }); } - QueryBuilder + QueryBuilder valueLightIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 17)); }); } - QueryBuilder valueLightEqualTo( + QueryBuilder valueLightEqualTo( String? value, { bool caseSensitive = true, }) { @@ -2862,8 +2845,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueLightGreaterThan( + QueryBuilder valueLightGreaterThan( String? value, { bool caseSensitive = true, }) { @@ -2878,7 +2860,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueLightGreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -2894,7 +2876,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder valueLightLessThan( + QueryBuilder valueLightLessThan( String? value, { bool caseSensitive = true, }) { @@ -2909,7 +2891,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueLightLessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -2925,7 +2907,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder valueLightBetween( + QueryBuilder valueLightBetween( String? lower, String? upper, { bool caseSensitive = true, @@ -2942,8 +2924,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueLightStartsWith( + QueryBuilder valueLightStartsWith( String value, { bool caseSensitive = true, }) { @@ -2958,7 +2939,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder valueLightEndsWith( + QueryBuilder valueLightEndsWith( String value, { bool caseSensitive = true, }) { @@ -2973,7 +2954,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder valueLightContains( + QueryBuilder valueLightContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -2987,7 +2968,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder valueLightMatches( + QueryBuilder valueLightMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -3001,8 +2982,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueLightIsEmpty() { + QueryBuilder valueLightIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( @@ -3013,7 +2993,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueLightIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -3025,21 +3005,21 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueTemperatureIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 18)); }); } - QueryBuilder + QueryBuilder valueTemperatureIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 18)); }); } - QueryBuilder + QueryBuilder valueTemperatureEqualTo( String? value, { bool caseSensitive = true, @@ -3055,7 +3035,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueTemperatureGreaterThan( String? value, { bool caseSensitive = true, @@ -3071,7 +3051,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueTemperatureGreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -3087,7 +3067,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueTemperatureLessThan( String? value, { bool caseSensitive = true, @@ -3103,7 +3083,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueTemperatureLessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -3119,7 +3099,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueTemperatureBetween( String? lower, String? upper, { @@ -3137,7 +3117,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueTemperatureStartsWith( String value, { bool caseSensitive = true, @@ -3153,7 +3133,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueTemperatureEndsWith( String value, { bool caseSensitive = true, @@ -3169,7 +3149,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueTemperatureContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -3182,7 +3162,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueTemperatureMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -3195,7 +3175,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueTemperatureIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -3207,7 +3187,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueTemperatureIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -3219,22 +3199,21 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueHumidityIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 19)); }); } - QueryBuilder + QueryBuilder valueHumidityIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 19)); }); } - QueryBuilder - valueHumidityEqualTo( + QueryBuilder valueHumidityEqualTo( String? value, { bool caseSensitive = true, }) { @@ -3249,7 +3228,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueHumidityGreaterThan( String? value, { bool caseSensitive = true, @@ -3265,7 +3244,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueHumidityGreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -3281,8 +3260,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueHumidityLessThan( + QueryBuilder valueHumidityLessThan( String? value, { bool caseSensitive = true, }) { @@ -3297,7 +3275,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueHumidityLessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -3313,8 +3291,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueHumidityBetween( + QueryBuilder valueHumidityBetween( String? lower, String? upper, { bool caseSensitive = true, @@ -3331,7 +3308,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueHumidityStartsWith( String value, { bool caseSensitive = true, @@ -3347,8 +3324,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueHumidityEndsWith( + QueryBuilder valueHumidityEndsWith( String value, { bool caseSensitive = true, }) { @@ -3363,8 +3339,9 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueHumidityContains(String value, {bool caseSensitive = true}) { + QueryBuilder valueHumidityContains( + String value, + {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( ContainsCondition( @@ -3376,8 +3353,9 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueHumidityMatches(String pattern, {bool caseSensitive = true}) { + QueryBuilder valueHumidityMatches( + String pattern, + {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( MatchesCondition( @@ -3389,7 +3367,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueHumidityIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -3401,7 +3379,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueHumidityIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -3413,22 +3391,21 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueReactionIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 20)); }); } - QueryBuilder + QueryBuilder valueReactionIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 20)); }); } - QueryBuilder - valueReactionEqualTo( + QueryBuilder valueReactionEqualTo( String? value, { bool caseSensitive = true, }) { @@ -3443,7 +3420,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueReactionGreaterThan( String? value, { bool caseSensitive = true, @@ -3459,7 +3436,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueReactionGreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -3475,8 +3452,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueReactionLessThan( + QueryBuilder valueReactionLessThan( String? value, { bool caseSensitive = true, }) { @@ -3491,7 +3467,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueReactionLessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -3507,8 +3483,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueReactionBetween( + QueryBuilder valueReactionBetween( String? lower, String? upper, { bool caseSensitive = true, @@ -3525,7 +3500,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueReactionStartsWith( String value, { bool caseSensitive = true, @@ -3541,8 +3516,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueReactionEndsWith( + QueryBuilder valueReactionEndsWith( String value, { bool caseSensitive = true, }) { @@ -3557,8 +3531,9 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueReactionContains(String value, {bool caseSensitive = true}) { + QueryBuilder valueReactionContains( + String value, + {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( ContainsCondition( @@ -3570,8 +3545,9 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueReactionMatches(String pattern, {bool caseSensitive = true}) { + QueryBuilder valueReactionMatches( + String pattern, + {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( MatchesCondition( @@ -3583,7 +3559,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueReactionIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -3595,7 +3571,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueReactionIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -3607,22 +3583,21 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueNitrogenIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 21)); }); } - QueryBuilder + QueryBuilder valueNitrogenIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 21)); }); } - QueryBuilder - valueNitrogenEqualTo( + QueryBuilder valueNitrogenEqualTo( String? value, { bool caseSensitive = true, }) { @@ -3637,7 +3612,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueNitrogenGreaterThan( String? value, { bool caseSensitive = true, @@ -3653,7 +3628,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueNitrogenGreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -3669,8 +3644,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueNitrogenLessThan( + QueryBuilder valueNitrogenLessThan( String? value, { bool caseSensitive = true, }) { @@ -3685,7 +3659,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueNitrogenLessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -3701,8 +3675,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueNitrogenBetween( + QueryBuilder valueNitrogenBetween( String? lower, String? upper, { bool caseSensitive = true, @@ -3719,7 +3692,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueNitrogenStartsWith( String value, { bool caseSensitive = true, @@ -3735,8 +3708,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueNitrogenEndsWith( + QueryBuilder valueNitrogenEndsWith( String value, { bool caseSensitive = true, }) { @@ -3751,8 +3723,9 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueNitrogenContains(String value, {bool caseSensitive = true}) { + QueryBuilder valueNitrogenContains( + String value, + {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( ContainsCondition( @@ -3764,8 +3737,9 @@ extension BaumartenQueryFilter }); } - QueryBuilder - valueNitrogenMatches(String pattern, {bool caseSensitive = true}) { + QueryBuilder valueNitrogenMatches( + String pattern, + {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( MatchesCondition( @@ -3777,7 +3751,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueNitrogenIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -3789,7 +3763,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder valueNitrogenIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -3801,25 +3775,25 @@ extension BaumartenQueryFilter }); } - QueryBuilder regionIsNull() { + QueryBuilder regionIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 22)); }); } - QueryBuilder regionIsNotNull() { + QueryBuilder regionIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 22)); }); } - QueryBuilder regionIsEmpty() { + QueryBuilder regionIsEmpty() { return not().group( (q) => q.regionIsNull().or().regionIsNotEmpty(), ); } - QueryBuilder regionIsNotEmpty() { + QueryBuilder regionIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterOrEqualCondition(property: 22, value: null), @@ -3827,19 +3801,19 @@ extension BaumartenQueryFilter }); } - QueryBuilder noteIsNull() { + QueryBuilder noteIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 23)); }); } - QueryBuilder noteIsNotNull() { + QueryBuilder noteIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 23)); }); } - QueryBuilder noteEqualTo( + QueryBuilder noteEqualTo( String? value, { bool caseSensitive = true, }) { @@ -3854,7 +3828,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder noteGreaterThan( + QueryBuilder noteGreaterThan( String? value, { bool caseSensitive = true, }) { @@ -3869,7 +3843,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder noteGreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -3885,7 +3859,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder noteLessThan( + QueryBuilder noteLessThan( String? value, { bool caseSensitive = true, }) { @@ -3900,8 +3874,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - noteLessThanOrEqualTo( + QueryBuilder noteLessThanOrEqualTo( String? value, { bool caseSensitive = true, }) { @@ -3916,7 +3889,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder noteBetween( + QueryBuilder noteBetween( String? lower, String? upper, { bool caseSensitive = true, @@ -3933,7 +3906,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder noteStartsWith( + QueryBuilder noteStartsWith( String value, { bool caseSensitive = true, }) { @@ -3948,7 +3921,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder noteEndsWith( + QueryBuilder noteEndsWith( String value, { bool caseSensitive = true, }) { @@ -3963,7 +3936,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder noteContains( + QueryBuilder noteContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -3977,7 +3950,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder noteMatches( + QueryBuilder noteMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -3991,7 +3964,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder noteIsEmpty() { + QueryBuilder noteIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( @@ -4002,7 +3975,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder noteIsNotEmpty() { + QueryBuilder noteIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterCondition( @@ -4013,22 +3986,21 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder typeOfCultureIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 24)); }); } - QueryBuilder + QueryBuilder typeOfCultureIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 24)); }); } - QueryBuilder - typeOfCultureEqualTo( + QueryBuilder typeOfCultureEqualTo( String? value, { bool caseSensitive = true, }) { @@ -4043,7 +4015,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder typeOfCultureGreaterThan( String? value, { bool caseSensitive = true, @@ -4059,7 +4031,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder typeOfCultureGreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -4075,8 +4047,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - typeOfCultureLessThan( + QueryBuilder typeOfCultureLessThan( String? value, { bool caseSensitive = true, }) { @@ -4091,7 +4062,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder typeOfCultureLessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -4107,8 +4078,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - typeOfCultureBetween( + QueryBuilder typeOfCultureBetween( String? lower, String? upper, { bool caseSensitive = true, @@ -4125,7 +4095,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder typeOfCultureStartsWith( String value, { bool caseSensitive = true, @@ -4141,8 +4111,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - typeOfCultureEndsWith( + QueryBuilder typeOfCultureEndsWith( String value, { bool caseSensitive = true, }) { @@ -4157,8 +4126,9 @@ extension BaumartenQueryFilter }); } - QueryBuilder - typeOfCultureContains(String value, {bool caseSensitive = true}) { + QueryBuilder typeOfCultureContains( + String value, + {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( ContainsCondition( @@ -4170,8 +4140,9 @@ extension BaumartenQueryFilter }); } - QueryBuilder - typeOfCultureMatches(String pattern, {bool caseSensitive = true}) { + QueryBuilder typeOfCultureMatches( + String pattern, + {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( MatchesCondition( @@ -4183,7 +4154,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder typeOfCultureIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -4195,7 +4166,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder typeOfCultureIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( @@ -4207,19 +4178,19 @@ extension BaumartenQueryFilter }); } - QueryBuilder region1IsNull() { + QueryBuilder region1IsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 25)); }); } - QueryBuilder region1IsNotNull() { + QueryBuilder region1IsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 25)); }); } - QueryBuilder region1EqualTo( + QueryBuilder region1EqualTo( String? value, { bool caseSensitive = true, }) { @@ -4234,7 +4205,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region1GreaterThan( + QueryBuilder region1GreaterThan( String? value, { bool caseSensitive = true, }) { @@ -4249,7 +4220,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder region1GreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -4265,7 +4236,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region1LessThan( + QueryBuilder region1LessThan( String? value, { bool caseSensitive = true, }) { @@ -4280,7 +4251,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder region1LessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -4296,7 +4267,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region1Between( + QueryBuilder region1Between( String? lower, String? upper, { bool caseSensitive = true, @@ -4313,7 +4284,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region1StartsWith( + QueryBuilder region1StartsWith( String value, { bool caseSensitive = true, }) { @@ -4328,7 +4299,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region1EndsWith( + QueryBuilder region1EndsWith( String value, { bool caseSensitive = true, }) { @@ -4343,7 +4314,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region1Contains( + QueryBuilder region1Contains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -4357,7 +4328,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region1Matches( + QueryBuilder region1Matches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -4371,7 +4342,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region1IsEmpty() { + QueryBuilder region1IsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( @@ -4382,8 +4353,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - region1IsNotEmpty() { + QueryBuilder region1IsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterCondition( @@ -4394,19 +4364,19 @@ extension BaumartenQueryFilter }); } - QueryBuilder region2IsNull() { + QueryBuilder region2IsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 26)); }); } - QueryBuilder region2IsNotNull() { + QueryBuilder region2IsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 26)); }); } - QueryBuilder region2EqualTo( + QueryBuilder region2EqualTo( String? value, { bool caseSensitive = true, }) { @@ -4421,7 +4391,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region2GreaterThan( + QueryBuilder region2GreaterThan( String? value, { bool caseSensitive = true, }) { @@ -4436,7 +4406,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder region2GreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -4452,7 +4422,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region2LessThan( + QueryBuilder region2LessThan( String? value, { bool caseSensitive = true, }) { @@ -4467,7 +4437,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder region2LessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -4483,7 +4453,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region2Between( + QueryBuilder region2Between( String? lower, String? upper, { bool caseSensitive = true, @@ -4500,7 +4470,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region2StartsWith( + QueryBuilder region2StartsWith( String value, { bool caseSensitive = true, }) { @@ -4515,7 +4485,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region2EndsWith( + QueryBuilder region2EndsWith( String value, { bool caseSensitive = true, }) { @@ -4530,7 +4500,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region2Contains( + QueryBuilder region2Contains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -4544,7 +4514,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region2Matches( + QueryBuilder region2Matches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -4558,7 +4528,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region2IsEmpty() { + QueryBuilder region2IsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( @@ -4569,8 +4539,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - region2IsNotEmpty() { + QueryBuilder region2IsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterCondition( @@ -4581,19 +4550,19 @@ extension BaumartenQueryFilter }); } - QueryBuilder region3IsNull() { + QueryBuilder region3IsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 27)); }); } - QueryBuilder region3IsNotNull() { + QueryBuilder region3IsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 27)); }); } - QueryBuilder region3EqualTo( + QueryBuilder region3EqualTo( String? value, { bool caseSensitive = true, }) { @@ -4608,7 +4577,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region3GreaterThan( + QueryBuilder region3GreaterThan( String? value, { bool caseSensitive = true, }) { @@ -4623,7 +4592,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder region3GreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -4639,7 +4608,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region3LessThan( + QueryBuilder region3LessThan( String? value, { bool caseSensitive = true, }) { @@ -4654,7 +4623,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder region3LessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -4670,7 +4639,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region3Between( + QueryBuilder region3Between( String? lower, String? upper, { bool caseSensitive = true, @@ -4687,7 +4656,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region3StartsWith( + QueryBuilder region3StartsWith( String value, { bool caseSensitive = true, }) { @@ -4702,7 +4671,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region3EndsWith( + QueryBuilder region3EndsWith( String value, { bool caseSensitive = true, }) { @@ -4717,7 +4686,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region3Contains( + QueryBuilder region3Contains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -4731,7 +4700,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region3Matches( + QueryBuilder region3Matches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -4745,7 +4714,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region3IsEmpty() { + QueryBuilder region3IsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( @@ -4756,8 +4725,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - region3IsNotEmpty() { + QueryBuilder region3IsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterCondition( @@ -4768,19 +4736,19 @@ extension BaumartenQueryFilter }); } - QueryBuilder region4IsNull() { + QueryBuilder region4IsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 28)); }); } - QueryBuilder region4IsNotNull() { + QueryBuilder region4IsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 28)); }); } - QueryBuilder region4EqualTo( + QueryBuilder region4EqualTo( String? value, { bool caseSensitive = true, }) { @@ -4795,7 +4763,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region4GreaterThan( + QueryBuilder region4GreaterThan( String? value, { bool caseSensitive = true, }) { @@ -4810,7 +4778,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder region4GreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -4826,7 +4794,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region4LessThan( + QueryBuilder region4LessThan( String? value, { bool caseSensitive = true, }) { @@ -4841,7 +4809,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder region4LessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -4857,7 +4825,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region4Between( + QueryBuilder region4Between( String? lower, String? upper, { bool caseSensitive = true, @@ -4874,7 +4842,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region4StartsWith( + QueryBuilder region4StartsWith( String value, { bool caseSensitive = true, }) { @@ -4889,7 +4857,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region4EndsWith( + QueryBuilder region4EndsWith( String value, { bool caseSensitive = true, }) { @@ -4904,7 +4872,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region4Contains( + QueryBuilder region4Contains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -4918,7 +4886,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region4Matches( + QueryBuilder region4Matches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -4932,7 +4900,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region4IsEmpty() { + QueryBuilder region4IsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( @@ -4943,8 +4911,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - region4IsNotEmpty() { + QueryBuilder region4IsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterCondition( @@ -4955,19 +4922,19 @@ extension BaumartenQueryFilter }); } - QueryBuilder region5IsNull() { + QueryBuilder region5IsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 29)); }); } - QueryBuilder region5IsNotNull() { + QueryBuilder region5IsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 29)); }); } - QueryBuilder region5EqualTo( + QueryBuilder region5EqualTo( String? value, { bool caseSensitive = true, }) { @@ -4982,7 +4949,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region5GreaterThan( + QueryBuilder region5GreaterThan( String? value, { bool caseSensitive = true, }) { @@ -4997,7 +4964,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder region5GreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -5013,7 +4980,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region5LessThan( + QueryBuilder region5LessThan( String? value, { bool caseSensitive = true, }) { @@ -5028,7 +4995,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder region5LessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -5044,7 +5011,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region5Between( + QueryBuilder region5Between( String? lower, String? upper, { bool caseSensitive = true, @@ -5061,7 +5028,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region5StartsWith( + QueryBuilder region5StartsWith( String value, { bool caseSensitive = true, }) { @@ -5076,7 +5043,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region5EndsWith( + QueryBuilder region5EndsWith( String value, { bool caseSensitive = true, }) { @@ -5091,7 +5058,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region5Contains( + QueryBuilder region5Contains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -5105,7 +5072,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region5Matches( + QueryBuilder region5Matches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -5119,7 +5086,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region5IsEmpty() { + QueryBuilder region5IsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( @@ -5130,8 +5097,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - region5IsNotEmpty() { + QueryBuilder region5IsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterCondition( @@ -5142,19 +5108,19 @@ extension BaumartenQueryFilter }); } - QueryBuilder region6IsNull() { + QueryBuilder region6IsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 30)); }); } - QueryBuilder region6IsNotNull() { + QueryBuilder region6IsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 30)); }); } - QueryBuilder region6EqualTo( + QueryBuilder region6EqualTo( String? value, { bool caseSensitive = true, }) { @@ -5169,7 +5135,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region6GreaterThan( + QueryBuilder region6GreaterThan( String? value, { bool caseSensitive = true, }) { @@ -5184,7 +5150,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder region6GreaterThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -5200,7 +5166,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region6LessThan( + QueryBuilder region6LessThan( String? value, { bool caseSensitive = true, }) { @@ -5215,7 +5181,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder region6LessThanOrEqualTo( String? value, { bool caseSensitive = true, @@ -5231,7 +5197,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region6Between( + QueryBuilder region6Between( String? lower, String? upper, { bool caseSensitive = true, @@ -5248,7 +5214,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region6StartsWith( + QueryBuilder region6StartsWith( String value, { bool caseSensitive = true, }) { @@ -5263,7 +5229,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region6EndsWith( + QueryBuilder region6EndsWith( String value, { bool caseSensitive = true, }) { @@ -5278,7 +5244,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region6Contains( + QueryBuilder region6Contains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -5292,7 +5258,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region6Matches( + QueryBuilder region6Matches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -5306,7 +5272,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder region6IsEmpty() { + QueryBuilder region6IsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const EqualCondition( @@ -5317,8 +5283,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder - region6IsNotEmpty() { + QueryBuilder region6IsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterCondition( @@ -5329,26 +5294,25 @@ extension BaumartenQueryFilter }); } - QueryBuilder actionsIsNull() { + QueryBuilder actionsIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 31)); }); } - QueryBuilder actionsIsNotNull() { + QueryBuilder actionsIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 31)); }); } - QueryBuilder actionsIsEmpty() { + QueryBuilder actionsIsEmpty() { return not().group( (q) => q.actionsIsNull().or().actionsIsNotEmpty(), ); } - QueryBuilder - actionsIsNotEmpty() { + QueryBuilder actionsIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition( const GreaterOrEqualCondition(property: 31, value: null), @@ -5356,19 +5320,19 @@ extension BaumartenQueryFilter }); } - QueryBuilder localIsNull() { + QueryBuilder localIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const IsNullCondition(property: 32)); }); } - QueryBuilder localIsNotNull() { + QueryBuilder localIsNotNull() { return QueryBuilder.apply(not(), (query) { return query.addFilterCondition(const IsNullCondition(property: 32)); }); } - QueryBuilder localEqualTo( + QueryBuilder localEqualTo( bool? value, ) { return QueryBuilder.apply(this, (query) { @@ -5381,7 +5345,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder idEqualTo( + QueryBuilder idEqualTo( int value, ) { return QueryBuilder.apply(this, (query) { @@ -5394,7 +5358,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder idGreaterThan( + QueryBuilder idGreaterThan( int value, ) { return QueryBuilder.apply(this, (query) { @@ -5407,7 +5371,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder + QueryBuilder idGreaterThanOrEqualTo( int value, ) { @@ -5421,7 +5385,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder idLessThan( + QueryBuilder idLessThan( int value, ) { return QueryBuilder.apply(this, (query) { @@ -5434,7 +5398,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder idLessThanOrEqualTo( + QueryBuilder idLessThanOrEqualTo( int value, ) { return QueryBuilder.apply(this, (query) { @@ -5447,7 +5411,7 @@ extension BaumartenQueryFilter }); } - QueryBuilder idBetween( + QueryBuilder idBetween( int lower, int upper, ) { @@ -5463,37 +5427,37 @@ extension BaumartenQueryFilter } } -extension BaumartenQueryObject - on QueryBuilder { - QueryBuilder - riskCherryVinegarFly(FilterQuery q) { +extension TreeTypeQueryObject + on QueryBuilder { + QueryBuilder riskCherryVinegarFly( + FilterQuery q) { return QueryBuilder.apply(this, (query) { return query.object(q, 10); }); } - QueryBuilder thermophilic( + QueryBuilder thermophilic( FilterQuery q) { return QueryBuilder.apply(this, (query) { return query.object(q, 11); }); } - QueryBuilder frost( + QueryBuilder frost( FilterQuery q) { return QueryBuilder.apply(this, (query) { return query.object(q, 12); }); } - QueryBuilder latefrost( + QueryBuilder latefrost( FilterQuery q) { return QueryBuilder.apply(this, (query) { return query.object(q, 13); }); } - QueryBuilder drought( + QueryBuilder drought( FilterQuery q) { return QueryBuilder.apply(this, (query) { return query.object(q, 14); @@ -5501,8 +5465,8 @@ extension BaumartenQueryObject } } -extension BaumartenQuerySortBy on QueryBuilder { - QueryBuilder sortByOrderString( +extension TreeTypeQuerySortBy on QueryBuilder { + QueryBuilder sortByOrderString( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5512,7 +5476,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByOrderStringDesc( + QueryBuilder sortByOrderStringDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5523,7 +5487,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByArt( + QueryBuilder sortByArt( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5533,7 +5497,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByArtDesc( + QueryBuilder sortByArtDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5544,7 +5508,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortById2( + QueryBuilder sortById2( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5554,7 +5518,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortById2Desc( + QueryBuilder sortById2Desc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5565,7 +5529,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByName( + QueryBuilder sortByName( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5575,7 +5539,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByNameDesc( + QueryBuilder sortByNameDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5586,7 +5550,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByMinSize( + QueryBuilder sortByMinSize( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5596,7 +5560,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByMinSizeDesc( + QueryBuilder sortByMinSizeDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5607,7 +5571,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByMaxSize( + QueryBuilder sortByMaxSize( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5617,7 +5581,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByMaxSizeDesc( + QueryBuilder sortByMaxSizeDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5628,7 +5592,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByWaterlevel( + QueryBuilder sortByWaterlevel( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5638,7 +5602,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByWaterlevelDesc( + QueryBuilder sortByWaterlevelDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5649,7 +5613,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByValueLight( + QueryBuilder sortByValueLight( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5659,7 +5623,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByValueLightDesc( + QueryBuilder sortByValueLightDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5670,7 +5634,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByValueTemperature( + QueryBuilder sortByValueTemperature( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5680,7 +5644,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByValueTemperatureDesc( + QueryBuilder sortByValueTemperatureDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5691,7 +5655,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByValueHumidity( + QueryBuilder sortByValueHumidity( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5701,7 +5665,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByValueHumidityDesc( + QueryBuilder sortByValueHumidityDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5712,7 +5676,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByValueReaction( + QueryBuilder sortByValueReaction( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5722,7 +5686,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByValueReactionDesc( + QueryBuilder sortByValueReactionDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5733,7 +5697,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByValueNitrogen( + QueryBuilder sortByValueNitrogen( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5743,7 +5707,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByValueNitrogenDesc( + QueryBuilder sortByValueNitrogenDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5754,7 +5718,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByNote( + QueryBuilder sortByNote( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5764,7 +5728,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByNoteDesc( + QueryBuilder sortByNoteDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5775,7 +5739,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByTypeOfCulture( + QueryBuilder sortByTypeOfCulture( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5785,7 +5749,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByTypeOfCultureDesc( + QueryBuilder sortByTypeOfCultureDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5796,7 +5760,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByRegion1( + QueryBuilder sortByRegion1( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5806,7 +5770,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByRegion1Desc( + QueryBuilder sortByRegion1Desc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5817,7 +5781,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByRegion2( + QueryBuilder sortByRegion2( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5827,7 +5791,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByRegion2Desc( + QueryBuilder sortByRegion2Desc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5838,7 +5802,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByRegion3( + QueryBuilder sortByRegion3( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5848,7 +5812,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByRegion3Desc( + QueryBuilder sortByRegion3Desc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5859,7 +5823,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByRegion4( + QueryBuilder sortByRegion4( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5869,7 +5833,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByRegion4Desc( + QueryBuilder sortByRegion4Desc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5880,7 +5844,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByRegion5( + QueryBuilder sortByRegion5( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5890,7 +5854,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByRegion5Desc( + QueryBuilder sortByRegion5Desc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5901,7 +5865,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByRegion6( + QueryBuilder sortByRegion6( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5911,7 +5875,7 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByRegion6Desc( + QueryBuilder sortByRegion6Desc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy( @@ -5922,1123 +5886,1113 @@ extension BaumartenQuerySortBy on QueryBuilder { }); } - QueryBuilder sortByLocal() { + QueryBuilder sortByLocal() { return QueryBuilder.apply(this, (query) { return query.addSortBy(32); }); } - QueryBuilder sortByLocalDesc() { + QueryBuilder sortByLocalDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(32, sort: Sort.desc); }); } - QueryBuilder sortById() { + QueryBuilder sortById() { return QueryBuilder.apply(this, (query) { return query.addSortBy(0); }); } - QueryBuilder sortByIdDesc() { + QueryBuilder sortByIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(0, sort: Sort.desc); }); } } -extension BaumartenQuerySortThenBy - on QueryBuilder { - QueryBuilder thenByOrderString( +extension TreeTypeQuerySortThenBy + on QueryBuilder { + QueryBuilder thenByOrderString( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(1, caseSensitive: caseSensitive); }); } - QueryBuilder thenByOrderStringDesc( + QueryBuilder thenByOrderStringDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(1, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByArt( + QueryBuilder thenByArt( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(2, caseSensitive: caseSensitive); }); } - QueryBuilder thenByArtDesc( + QueryBuilder thenByArtDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(2, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenById2( + QueryBuilder thenById2( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(3, caseSensitive: caseSensitive); }); } - QueryBuilder thenById2Desc( + QueryBuilder thenById2Desc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(3, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByName( + QueryBuilder thenByName( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(4, caseSensitive: caseSensitive); }); } - QueryBuilder thenByNameDesc( + QueryBuilder thenByNameDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(4, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByMinSize( + QueryBuilder thenByMinSize( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(5, caseSensitive: caseSensitive); }); } - QueryBuilder thenByMinSizeDesc( + QueryBuilder thenByMinSizeDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(5, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByMaxSize( + QueryBuilder thenByMaxSize( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(6, caseSensitive: caseSensitive); }); } - QueryBuilder thenByMaxSizeDesc( + QueryBuilder thenByMaxSizeDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(6, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByWaterlevel( + QueryBuilder thenByWaterlevel( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(15, caseSensitive: caseSensitive); }); } - QueryBuilder thenByWaterlevelDesc( + QueryBuilder thenByWaterlevelDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(15, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByValueLight( + QueryBuilder thenByValueLight( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(17, caseSensitive: caseSensitive); }); } - QueryBuilder thenByValueLightDesc( + QueryBuilder thenByValueLightDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(17, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByValueTemperature( + QueryBuilder thenByValueTemperature( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(18, caseSensitive: caseSensitive); }); } - QueryBuilder thenByValueTemperatureDesc( + QueryBuilder thenByValueTemperatureDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(18, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByValueHumidity( + QueryBuilder thenByValueHumidity( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(19, caseSensitive: caseSensitive); }); } - QueryBuilder thenByValueHumidityDesc( + QueryBuilder thenByValueHumidityDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(19, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByValueReaction( + QueryBuilder thenByValueReaction( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(20, caseSensitive: caseSensitive); }); } - QueryBuilder thenByValueReactionDesc( + QueryBuilder thenByValueReactionDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(20, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByValueNitrogen( + QueryBuilder thenByValueNitrogen( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(21, caseSensitive: caseSensitive); }); } - QueryBuilder thenByValueNitrogenDesc( + QueryBuilder thenByValueNitrogenDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(21, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByNote( + QueryBuilder thenByNote( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(23, caseSensitive: caseSensitive); }); } - QueryBuilder thenByNoteDesc( + QueryBuilder thenByNoteDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(23, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByTypeOfCulture( + QueryBuilder thenByTypeOfCulture( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(24, caseSensitive: caseSensitive); }); } - QueryBuilder thenByTypeOfCultureDesc( + QueryBuilder thenByTypeOfCultureDesc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(24, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByRegion1( + QueryBuilder thenByRegion1( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(25, caseSensitive: caseSensitive); }); } - QueryBuilder thenByRegion1Desc( + QueryBuilder thenByRegion1Desc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(25, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByRegion2( + QueryBuilder thenByRegion2( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(26, caseSensitive: caseSensitive); }); } - QueryBuilder thenByRegion2Desc( + QueryBuilder thenByRegion2Desc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(26, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByRegion3( + QueryBuilder thenByRegion3( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(27, caseSensitive: caseSensitive); }); } - QueryBuilder thenByRegion3Desc( + QueryBuilder thenByRegion3Desc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(27, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByRegion4( + QueryBuilder thenByRegion4( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(28, caseSensitive: caseSensitive); }); } - QueryBuilder thenByRegion4Desc( + QueryBuilder thenByRegion4Desc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(28, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByRegion5( + QueryBuilder thenByRegion5( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(29, caseSensitive: caseSensitive); }); } - QueryBuilder thenByRegion5Desc( + QueryBuilder thenByRegion5Desc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(29, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByRegion6( + QueryBuilder thenByRegion6( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(30, caseSensitive: caseSensitive); }); } - QueryBuilder thenByRegion6Desc( + QueryBuilder thenByRegion6Desc( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addSortBy(30, sort: Sort.desc, caseSensitive: caseSensitive); }); } - QueryBuilder thenByLocal() { + QueryBuilder thenByLocal() { return QueryBuilder.apply(this, (query) { return query.addSortBy(32); }); } - QueryBuilder thenByLocalDesc() { + QueryBuilder thenByLocalDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(32, sort: Sort.desc); }); } - QueryBuilder thenById() { + QueryBuilder thenById() { return QueryBuilder.apply(this, (query) { return query.addSortBy(0); }); } - QueryBuilder thenByIdDesc() { + QueryBuilder thenByIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(0, sort: Sort.desc); }); } } -extension BaumartenQueryWhereDistinct - on QueryBuilder { - QueryBuilder distinctByOrderString( +extension TreeTypeQueryWhereDistinct + on QueryBuilder { + QueryBuilder distinctByOrderString( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(1, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByArt( + QueryBuilder distinctByArt( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(2, caseSensitive: caseSensitive); }); } - QueryBuilder distinctById2( + QueryBuilder distinctById2( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(3, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByName( + QueryBuilder distinctByName( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(4, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByMinSize( + QueryBuilder distinctByMinSize( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(5, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByMaxSize( + QueryBuilder distinctByMaxSize( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(6, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByWaterlevel( + QueryBuilder distinctByWaterlevel( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(15, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByValueLight( + QueryBuilder distinctByValueLight( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(17, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByValueTemperature( + QueryBuilder distinctByValueTemperature( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(18, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByValueHumidity( + QueryBuilder distinctByValueHumidity( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(19, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByValueReaction( + QueryBuilder distinctByValueReaction( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(20, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByValueNitrogen( + QueryBuilder distinctByValueNitrogen( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(21, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByNote( + QueryBuilder distinctByNote( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(23, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByTypeOfCulture( + QueryBuilder distinctByTypeOfCulture( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(24, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByRegion1( + QueryBuilder distinctByRegion1( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(25, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByRegion2( + QueryBuilder distinctByRegion2( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(26, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByRegion3( + QueryBuilder distinctByRegion3( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(27, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByRegion4( + QueryBuilder distinctByRegion4( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(28, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByRegion5( + QueryBuilder distinctByRegion5( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(29, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByRegion6( + QueryBuilder distinctByRegion6( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(30, caseSensitive: caseSensitive); }); } - QueryBuilder distinctByLocal() { + QueryBuilder distinctByLocal() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(32); }); } } -extension BaumartenQueryProperty1 - on QueryBuilder { - QueryBuilder orderStringProperty() { +extension TreeTypeQueryProperty1 + on QueryBuilder { + QueryBuilder orderStringProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(1); }); } - QueryBuilder artProperty() { + QueryBuilder artProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(2); }); } - QueryBuilder id2Property() { + QueryBuilder id2Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(3); }); } - QueryBuilder nameProperty() { + QueryBuilder nameProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(4); }); } - QueryBuilder minSizeProperty() { + QueryBuilder minSizeProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(5); }); } - QueryBuilder maxSizeProperty() { + QueryBuilder maxSizeProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(6); }); } - QueryBuilder?, QAfterProperty> + QueryBuilder?, QAfterProperty> lebensformProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(7); }); } - QueryBuilder?, QAfterProperty> - growthProperty() { + QueryBuilder?, QAfterProperty> growthProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(8); }); } - QueryBuilder?, QAfterProperty> + QueryBuilder?, QAfterProperty> climateProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(9); }); } - QueryBuilder + QueryBuilder riskCherryVinegarFlyProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(10); }); } - QueryBuilder - thermophilicProperty() { + QueryBuilder thermophilicProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(11); }); } - QueryBuilder frostProperty() { + QueryBuilder frostProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(12); }); } - QueryBuilder latefrostProperty() { + QueryBuilder latefrostProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(13); }); } - QueryBuilder droughtProperty() { + QueryBuilder droughtProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(14); }); } - QueryBuilder waterlevelProperty() { + QueryBuilder waterlevelProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(15); }); } - QueryBuilder?, QAfterProperty> + QueryBuilder?, QAfterProperty> humidityProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(16); }); } - QueryBuilder valueLightProperty() { + QueryBuilder valueLightProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(17); }); } - QueryBuilder valueTemperatureProperty() { + QueryBuilder valueTemperatureProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(18); }); } - QueryBuilder valueHumidityProperty() { + QueryBuilder valueHumidityProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(19); }); } - QueryBuilder valueReactionProperty() { + QueryBuilder valueReactionProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(20); }); } - QueryBuilder valueNitrogenProperty() { + QueryBuilder valueNitrogenProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(21); }); } - QueryBuilder?, QAfterProperty> - regionProperty() { + QueryBuilder?, QAfterProperty> regionProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(22); }); } - QueryBuilder noteProperty() { + QueryBuilder noteProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(23); }); } - QueryBuilder typeOfCultureProperty() { + QueryBuilder typeOfCultureProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(24); }); } - QueryBuilder region1Property() { + QueryBuilder region1Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(25); }); } - QueryBuilder region2Property() { + QueryBuilder region2Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(26); }); } - QueryBuilder region3Property() { + QueryBuilder region3Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(27); }); } - QueryBuilder region4Property() { + QueryBuilder region4Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(28); }); } - QueryBuilder region5Property() { + QueryBuilder region5Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(29); }); } - QueryBuilder region6Property() { + QueryBuilder region6Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(30); }); } - QueryBuilder?, QAfterProperty> actionsProperty() { + QueryBuilder?, QAfterProperty> actionsProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(31); }); } - QueryBuilder localProperty() { + QueryBuilder localProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(32); }); } - QueryBuilder idProperty() { + QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(0); }); } } -extension BaumartenQueryProperty2 - on QueryBuilder { - QueryBuilder orderStringProperty() { +extension TreeTypeQueryProperty2 + on QueryBuilder { + QueryBuilder orderStringProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(1); }); } - QueryBuilder artProperty() { + QueryBuilder artProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(2); }); } - QueryBuilder id2Property() { + QueryBuilder id2Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(3); }); } - QueryBuilder nameProperty() { + QueryBuilder nameProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(4); }); } - QueryBuilder minSizeProperty() { + QueryBuilder minSizeProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(5); }); } - QueryBuilder maxSizeProperty() { + QueryBuilder maxSizeProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(6); }); } - QueryBuilder?), QAfterProperty> + QueryBuilder?), QAfterProperty> lebensformProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(7); }); } - QueryBuilder?), QAfterProperty> + QueryBuilder?), QAfterProperty> growthProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(8); }); } - QueryBuilder?), QAfterProperty> + QueryBuilder?), QAfterProperty> climateProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(9); }); } - QueryBuilder + QueryBuilder riskCherryVinegarFlyProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(10); }); } - QueryBuilder + QueryBuilder thermophilicProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(11); }); } - QueryBuilder frostProperty() { + QueryBuilder frostProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(12); }); } - QueryBuilder + QueryBuilder latefrostProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(13); }); } - QueryBuilder - droughtProperty() { + QueryBuilder droughtProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(14); }); } - QueryBuilder waterlevelProperty() { + QueryBuilder waterlevelProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(15); }); } - QueryBuilder?), QAfterProperty> + QueryBuilder?), QAfterProperty> humidityProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(16); }); } - QueryBuilder valueLightProperty() { + QueryBuilder valueLightProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(17); }); } - QueryBuilder + QueryBuilder valueTemperatureProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(18); }); } - QueryBuilder - valueHumidityProperty() { + QueryBuilder valueHumidityProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(19); }); } - QueryBuilder - valueReactionProperty() { + QueryBuilder valueReactionProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(20); }); } - QueryBuilder - valueNitrogenProperty() { + QueryBuilder valueNitrogenProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(21); }); } - QueryBuilder?), QAfterProperty> + QueryBuilder?), QAfterProperty> regionProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(22); }); } - QueryBuilder noteProperty() { + QueryBuilder noteProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(23); }); } - QueryBuilder - typeOfCultureProperty() { + QueryBuilder typeOfCultureProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(24); }); } - QueryBuilder region1Property() { + QueryBuilder region1Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(25); }); } - QueryBuilder region2Property() { + QueryBuilder region2Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(26); }); } - QueryBuilder region3Property() { + QueryBuilder region3Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(27); }); } - QueryBuilder region4Property() { + QueryBuilder region4Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(28); }); } - QueryBuilder region5Property() { + QueryBuilder region5Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(29); }); } - QueryBuilder region6Property() { + QueryBuilder region6Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(30); }); } - QueryBuilder?), QAfterProperty> + QueryBuilder?), QAfterProperty> actionsProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(31); }); } - QueryBuilder localProperty() { + QueryBuilder localProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(32); }); } - QueryBuilder idProperty() { + QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(0); }); } } -extension BaumartenQueryProperty3 - on QueryBuilder { - QueryBuilder - orderStringProperty() { +extension TreeTypeQueryProperty3 + on QueryBuilder { + QueryBuilder orderStringProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(1); }); } - QueryBuilder artProperty() { + QueryBuilder artProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(2); }); } - QueryBuilder id2Property() { + QueryBuilder id2Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(3); }); } - QueryBuilder nameProperty() { + QueryBuilder nameProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(4); }); } - QueryBuilder minSizeProperty() { + QueryBuilder minSizeProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(5); }); } - QueryBuilder maxSizeProperty() { + QueryBuilder maxSizeProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(6); }); } - QueryBuilder?), QOperations> + QueryBuilder?), QOperations> lebensformProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(7); }); } - QueryBuilder?), QOperations> + QueryBuilder?), QOperations> growthProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(8); }); } - QueryBuilder?), QOperations> + QueryBuilder?), QOperations> climateProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(9); }); } - QueryBuilder + QueryBuilder riskCherryVinegarFlyProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(10); }); } - QueryBuilder + QueryBuilder thermophilicProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(11); }); } - QueryBuilder - frostProperty() { + QueryBuilder frostProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(12); }); } - QueryBuilder + QueryBuilder latefrostProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(13); }); } - QueryBuilder + QueryBuilder droughtProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(14); }); } - QueryBuilder waterlevelProperty() { + QueryBuilder waterlevelProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(15); }); } - QueryBuilder?), QOperations> + QueryBuilder?), QOperations> humidityProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(16); }); } - QueryBuilder valueLightProperty() { + QueryBuilder valueLightProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(17); }); } - QueryBuilder + QueryBuilder valueTemperatureProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(18); }); } - QueryBuilder + QueryBuilder valueHumidityProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(19); }); } - QueryBuilder + QueryBuilder valueReactionProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(20); }); } - QueryBuilder + QueryBuilder valueNitrogenProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(21); }); } - QueryBuilder?), QOperations> + QueryBuilder?), QOperations> regionProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(22); }); } - QueryBuilder noteProperty() { + QueryBuilder noteProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(23); }); } - QueryBuilder + QueryBuilder typeOfCultureProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(24); }); } - QueryBuilder region1Property() { + QueryBuilder region1Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(25); }); } - QueryBuilder region2Property() { + QueryBuilder region2Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(26); }); } - QueryBuilder region3Property() { + QueryBuilder region3Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(27); }); } - QueryBuilder region4Property() { + QueryBuilder region4Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(28); }); } - QueryBuilder region5Property() { + QueryBuilder region5Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(29); }); } - QueryBuilder region6Property() { + QueryBuilder region6Property() { return QueryBuilder.apply(this, (query) { return query.addProperty(30); }); } - QueryBuilder?), QOperations> + QueryBuilder?), QOperations> actionsProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(31); }); } - QueryBuilder localProperty() { + QueryBuilder localProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(32); }); } - QueryBuilder idProperty() { + QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addProperty(0); }); @@ -7049,7 +7003,7 @@ extension BaumartenQueryProperty3 // JsonSerializableGenerator // ************************************************************************** -Baumarten _$BaumartenFromJson(Map json) => Baumarten() +TreeType _$TreeTypeFromJson(Map json) => TreeType() ..id = (json['id'] as num).toInt() ..orderString = json['order'] as String? ..art = json['Art'] as String? @@ -7107,7 +7061,7 @@ Baumarten _$BaumartenFromJson(Map json) => Baumarten() .toList() ..local = json['Heimisch'] as bool?; -Map _$BaumartenToJson(Baumarten instance) => { +Map _$TreeTypeToJson(TreeType instance) => { 'id': instance.id, 'order': instance.orderString, 'Art': instance.art, diff --git a/lib/src/packages/ambito_api/base.dart b/lib/src/packages/ambito_api/base.dart index 23cb9a0..3ad999d 100644 --- a/lib/src/packages/ambito_api/base.dart +++ b/lib/src/packages/ambito_api/base.dart @@ -24,9 +24,9 @@ class BaseApi { if (response.statusCode == 200) { var json = _jsonDecoded(response.body); switch (table) { - case 'baumarten': - for (var baumart in json['results']) { - BaumartenRepository().put(Baumarten.fromJson(baumart)); + case 'tree_type': + for (var treeType in json['results']) { + TreeTypeRepository().put(TreeType.fromJson(treeType)); } break; case 'measure': @@ -35,9 +35,9 @@ class BaseApi { } break; case 'measure_combination': - for (var measure_combination in json['results']) { + for (var measureCombination in json['results']) { MeasureCombinationRepository() - .put(MeasureCombination.fromJson(measure_combination)); + .put(MeasureCombination.fromJson(measureCombination)); } break; case 'organism': diff --git a/lib/src/packages/ambito_db/base_db.dart b/lib/src/packages/ambito_db/base_db.dart index d0972b9..b8661b1 100644 --- a/lib/src/packages/ambito_db/base_db.dart +++ b/lib/src/packages/ambito_db/base_db.dart @@ -3,10 +3,10 @@ import 'package:isar/isar.dart'; import '../../../main.dart'; -export 'repositories/baumarten_repository.dart'; export 'repositories/measure_combination_repository.dart'; export 'repositories/measure_repository.dart'; export 'repositories/organism_repository.dart'; +export 'repositories/tree_type_repository.dart'; abstract class BaseDB { abstract IsarCollection collection; diff --git a/lib/src/packages/ambito_db/repositories/baumarten_repository.dart b/lib/src/packages/ambito_db/repositories/tree_type_repository.dart similarity index 62% rename from lib/src/packages/ambito_db/repositories/baumarten_repository.dart rename to lib/src/packages/ambito_db/repositories/tree_type_repository.dart index 0f75431..942c1de 100644 --- a/lib/src/packages/ambito_db/repositories/baumarten_repository.dart +++ b/lib/src/packages/ambito_db/repositories/tree_type_repository.dart @@ -4,6 +4,6 @@ import 'package:isar/isar.dart'; import '../../../../main.dart'; import '../base_db.dart'; -class BaumartenRepository extends BaseDB { - IsarCollection collection = isar.baumartens; +class TreeTypeRepository extends BaseDB { + IsarCollection collection = isar.treeTypes; }