EntitySource<O extends Object> class abstract

Inheritance
Implementers

Constructors

EntitySource(String name)

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
finalinherited
nameSimplified → String
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

count({EntityMatcher<O>? matcher, Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction}) → FutureOr<int>
countByQuery(String query, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction}) → FutureOr<int>
existIDs<I extends Object>(List<I?> ids, {Transaction? transaction}) → FutureOr<Iterable<I>>
existsID(dynamic id, {Transaction? transaction}) → FutureOr<bool>
getEntityID(O o) → Object?
inherited
hasReferencedEntities() → bool
length({Transaction? transaction}) → FutureOr<int>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paginate(EntityMatcher<O> matcher, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, required int limit, bool? orderByID, OrderDirection? orderDirection, Transaction? transaction, EntityPaginationListener<O>? onEvent}) → EntityPagination<O>
Returns an EntityPagination over this select, loading nothing yet: pages are fetched only when asked for. See EntityPagination.
paginateAll({required int limit, bool? orderByID, OrderDirection? orderDirection, Transaction? transaction, EntityPaginationListener<O>? onEvent}) → EntityPagination<O>
Returns an EntityPagination over this select, loading nothing yet: pages are fetched only when asked for. See EntityPagination.
paginateByQuery(String query, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, required int limit, bool? orderByID, OrderDirection? orderDirection, Transaction? transaction, EntityPaginationListener<O>? onEvent}) → EntityPagination<O>
Returns an EntityPagination over this select, loading nothing yet: pages are fetched only when asked for. See EntityPagination.
select(EntityMatcher<O> matcher, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction, int? limit, int? offset, int? page, bool? orderByID, OrderDirection? orderDirection, EntityResolutionRules? resolutionRules}) → FutureOr<Iterable<O>>
Ordering and pagination:
selectAll({Transaction? transaction, int? limit, int? offset, int? page, bool? orderByID, OrderDirection? orderDirection, EntityResolutionRules? resolutionRules}) → FutureOr<Iterable<O>>
Ordering and pagination:
selectByID(dynamic id, {Transaction? transaction}) → FutureOr<O?>
selectByIDs(List ids, {Transaction? transaction}) → FutureOr<List<O?>>
selectByQuery(String query, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction, int? limit, int? offset, int? page, bool? orderByID, OrderDirection? orderDirection}) → FutureOr<Iterable<O>>
Ordering and pagination:
selectFirstByQuery(String query, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction, int? offset, int? page, bool? orderByID, OrderDirection? orderDirection}) → FutureOr<O?>
Ordering and pagination:
selectIDsBy<I extends Object>(EntityMatcher<O> matcher, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction, int? limit, int? offset, int? page, bool? orderByID, OrderDirection? orderDirection}) → FutureOr<Iterable<I>>
Ordering and pagination:
selectIDsByQuery<I extends Object>(String query, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction, int? limit, int? offset, int? page, bool? orderByID, OrderDirection? orderDirection}) → FutureOr<Iterable<I>>
Ordering and pagination:
selectRelationship<E>(O? o, String field, {Object? oId, TypeInfo? fieldType, Transaction? transaction}) → FutureOr<Iterable>
selectRelationships<E>(List<O>? os, String field, {List? oIds, TypeInfo? fieldType, Transaction? transaction}) → FutureOr<Map<dynamic, Iterable>>
toString() → String
A string representation of this object.
inherited

Operators

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