SetEntityRepository<O extends Object> class
- Inheritance
-
- Available extensions
Methods
-
all({int? limit})
→ List<O>
-
inherited
-
checkEntityFields(O o)
→ void
-
inherited
-
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>
-
inherited
-
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>>
-
inherited
-
deleteByID(dynamic id, {Transaction? transaction})
→ FutureOr<O?>
-
inherited
-
deleteByQuery(String query, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, Transaction? transaction})
→ FutureOr<Iterable<O>>
-
inherited
-
deleteEntity(O o, {Transaction? transaction})
→ FutureOr<O?>
-
inherited
-
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>
-
inherited
-
ensureStored(O o, {Transaction? transaction, TransactionOperation? operation})
→ FutureOr
-
inherited
-
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>>
-
inherited
-
existsID(dynamic id, {Transaction? transaction})
→ FutureOr<bool>
-
inherited
-
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?
-
inherited
-
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>
-
override
-
hasReferencedEntities()
→ bool
-
inherited
-
information({bool extended = false})
→ Map<String, dynamic>
-
inherited
-
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
-
inherited
-
isTrackingEntity(O o)
→ bool
-
inherited
-
iterable()
→ Iterable<O>
-
override
-
length({Transaction? transaction})
→ int
-
override
-
matches(EntityMatcher matcher, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, int? limit})
→ List<O>
-
inherited
-
nextID()
→ int
-
override
-
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
-
override
-
putRelationship(Object oId, Type valuesType, Iterable<Object> valuesIds)
→ FutureOr<bool>
-
override
-
remove(O o)
→ void
-
override
-
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>
-
inherited
-
selectAll({Transaction? transaction, int? limit, EntityResolutionRules? resolutionRules})
→ FutureOr<Iterable<O>>
-
inherited
-
selectByID(dynamic id, {Transaction? transaction, EntityResolutionRules? resolutionRules})
→ O?
-
inherited
-
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>
-
inherited
-
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>
-
inherited
-
selectRelationships<E>(List<O>? os, String field, {List? oIds, TypeInfo? fieldType, Transaction? transaction})
→ FutureOr<Map<dynamic, Iterable>>
-
inherited
-
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>
-
inherited
-
store(O o, {Transaction? transaction})
→ FutureOr
-
inherited
-
storeAll(Iterable<O> os, {Transaction? transaction})
→ FutureOr<List>
-
inherited
-
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?>
-
inherited
-
tryDeleteEntity(O o, {Transaction? transaction})
→ FutureOr<O?>
-
inherited
-
untrackEntities(Iterable<O?> os, {bool deleted = false})
→ void
-
inherited
-
untrackEntity(O? o, {bool deleted = false})
→ void
-
inherited