IterableEntityRepository<O extends Object> class
abstract
- Inheritance
-
- Mixed-in types
-
- Implementers
- Available extensions
Methods
-
all({int? limit})
→ List<O>
-
-
checkEntityFields(O o)
→ void
-
override
-
checkInitialized()
→ void
-
Checks if this instance is initialized.
inherited
-
checkNotClosed()
→ void
-
inherited
-
close()
→ bool
-
inherited
-
count({EntityMatcher<O>? matcher, Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction})
→ FutureOr<int>
-
override
-
countByQuery(String query, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction})
→ FutureOr<int>
-
inherited
-
createFromMap(Map<String, dynamic> fields, {EntityProvider? entityProvider, EntityCache? entityCache, EntityResolutionRules? resolutionRules})
→ FutureOr<O>
-
inherited
-
delete(EntityMatcher<O> matcher, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction})
→ FutureOr<Iterable<O>>
-
override
-
deleteByID(dynamic id, {Transaction? transaction})
→ FutureOr<O?>
-
override
-
deleteByQuery(String query, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction})
→ FutureOr<Iterable<O>>
-
inherited
-
deleteEntity(O o, {Transaction? transaction})
→ FutureOr<O?>
-
override
-
deleteEntityCascade(O o, {Transaction? transaction})
→ FutureOr<Iterable>
-
inherited
-
doInitialization({Initializable? parent})
→ FutureOr<InitializationResult>
-
Initialize this instance if is not initialized yet.
inherited
-
ensureInitialized({Initializable? parent})
→ FutureOr<InitializationResult>
-
Ensures that this instance is initialized.
inherited
-
ensureInitializedAsync({Initializable? parent})
→ FutureOr<InitializationResult>
-
Ensures that this instance is initialized. If is not
initialized yet it will force an asynchronous initialization
and return a Future.
inherited
-
ensureReferencesStored(O o, {Transaction? transaction, TransactionOperation? operation})
→ FutureOr<bool>
-
override
-
ensureStored(O o, {Transaction? transaction, TransactionOperation? operation})
→ FutureOr
-
override
-
entityHasChangedFields(O o)
→ bool
-
inherited
-
executeInitialized<R>(ExecuteInitializedCallback<R> callback, {Initializable? parent})
→ FutureOr<R>
-
Executes the
callback
ensuring that this instances was fully initialized.
inherited
-
existIDs<I extends Object>(List<I?> ids, {Transaction? transaction})
→ FutureOr<Iterable<I>>
-
override
-
existsID(dynamic id, {Transaction? transaction})
→ FutureOr<bool>
-
override
-
fromMap(Map<String, dynamic> fields, {EntityProvider? entityProvider, EntityCache? entityCache, EntityResolutionRules? resolutionRules})
→ FutureOr<O>
-
inherited
-
getContextEntityResolutionRules()
→ EntityResolutionRules?
-
The current EntityResolutionRules of the current context.
inherited
-
getEntityChangedFields(O o)
→ List<String>?
-
inherited
-
getEntityFields(O o)
→ Map<String, Object?>
-
inherited
-
getEntityID(O o)
→ Object?
-
override
-
getEntityMapID(Map<String, dynamic>? o)
→ Object?
-
inherited
-
getField(O o, String key, {EntityHandler<O>? entityHandler})
→ dynamic
-
inherited
-
getID(O o, {EntityHandler<O>? entityHandler})
→ dynamic
-
inherited
-
getRelationship(Object oId, Type valuesType)
→ List<Object>
-
-
hasReferencedEntities()
→ bool
-
override
-
information({bool extended = false})
→ Map<String, dynamic>
-
override
-
initialize()
→ FutureOr<InitializationResult>
-
Initialization implementation. Do not call it directly, use doInitialization.
inherited
-
initializeDependencies()
→ FutureOr<List<Initializable>>
-
Return a List of Initializable instances that need to be initialized
BEFORE initialize this instance.
inherited
-
isOfEntityType(Object? o)
→ bool
-
inherited
-
isStored(O o, {Transaction? transaction})
→ bool
-
override
-
isTrackingEntity(O o)
→ bool
-
inherited
-
iterable()
→ Iterable<O>
-
-
length({Transaction? transaction})
→ FutureOr<int>
-
inherited
-
matches(EntityMatcher matcher, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, int? limit})
→ List<O>
-
-
nextID()
→ dynamic
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyDeletedEntities(Iterable<O> entities)
→ void
-
inherited
-
notifyStoredEntities(Iterable<O> entities)
→ void
-
inherited
-
put(O o)
→ void
-
-
putRelationship(Object oId, Type valuesType, Iterable<Object> valuesIds)
→ FutureOr<bool>
-
-
remove(O o)
→ void
-
-
resolveEntityResolutionRules(EntityResolutionRules? resolutionRules)
→ EntityResolutionRulesResolved
-
Resolves the
resolutionRules
to apply. Merges with the current
EntityResolutionRules context if needed.
inherited
-
select(EntityMatcher<O> matcher, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction, int? limit, EntityResolutionRules? resolutionRules})
→ Iterable<O>
-
override
-
selectAll({Transaction? transaction, int? limit, EntityResolutionRules? resolutionRules})
→ FutureOr<Iterable<O>>
-
override
-
selectByID(dynamic id, {Transaction? transaction, EntityResolutionRules? resolutionRules})
→ O?
-
override
-
selectByIDs(List ids, {Transaction? transaction, EntityResolutionRules? resolutionRules})
→ FutureOr<List<O?>>
-
inherited
-
selectByQuery(String query, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction, int? limit, EntityResolutionRules? resolutionRules})
→ FutureOr<Iterable<O>>
-
inherited
-
selectFirstByQuery(String query, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction, EntityResolutionRules? resolutionRules})
→ FutureOr<O?>
-
inherited
-
selectIDsBy<I extends Object>(EntityMatcher<O> matcher, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction, int? limit})
→ Iterable<I>
-
override
-
selectIDsByQuery<I extends Object>(String query, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction, int? limit})
→ FutureOr<Iterable<I>>
-
inherited
-
selectRelationship<E>(O? o, String field, {Object? oId, TypeInfo? fieldType, Transaction? transaction})
→ FutureOr<Iterable>
-
override
-
selectRelationships<E>(List<O>? os, String field, {List? oIds, TypeInfo? fieldType, Transaction? transaction})
→ FutureOr<Map<dynamic, Iterable>>
-
override
-
setField(O o, String key, Object? value, {EntityHandler<O>? entityHandler, EntityCache? entityCache})
→ void
-
inherited
-
setID(O o, Object id, {EntityHandler<O>? entityHandler})
→ void
-
inherited
-
setRelationship<E extends Object>(O o, String field, List<E> values, {TypeInfo? fieldType, Transaction? transaction})
→ FutureOr<bool>
-
override
-
store(O o, {Transaction? transaction})
→ FutureOr
-
override
-
storeAll(Iterable<O> os, {Transaction? transaction})
→ FutureOr<List>
-
override
-
storeAllFromJson(Iterable<Map<String, dynamic>> entitiesJson, {Transaction? transaction, EntityResolutionRules? resolutionRules})
→ FutureOr<List<O>>
-
inherited
-
storeFromJson(Map<String, dynamic> json, {Transaction? transaction, EntityResolutionRules? resolutionRules})
→ FutureOr<O>
-
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
trackEntities(Iterable<O> os, {bool stored = false})
→ List<O>
-
inherited
-
trackEntitiesNullable(Iterable<O?> os, {bool stored = false})
→ List<O?>
-
inherited
-
trackEntity(O o, {bool stored = false})
→ O
-
inherited
-
trackEntityNullable(O? o)
→ O?
-
inherited
-
tryDeleteByID(dynamic id, {Transaction? transaction})
→ FutureOr<O?>
-
override
-
tryDeleteEntity(O o, {Transaction? transaction})
→ FutureOr<O?>
-
override
-
untrackEntities(Iterable<O?> os, {bool deleted = false})
→ void
-
inherited
-
untrackEntity(O? o, {bool deleted = false})
→ void
-
inherited