DBEntityRepositoryProvider<A extends DBAdapter<Object>> class abstract

Base class for EntityRepositoryProvider with DBAdapters.

Inheritance
Implementers
Available extensions

Properties

adapter → FutureOr<A>
no setter
adapterConfig → Map<String, dynamic>
no setter
cyclicDependencies → List<Initializable>
The dependencies of the current (or last) initialization attempt that were not waited for: they were (transitively) waiting for this instance (a cycle), so they may still be initializing when initialize runs or when this instance is initialized.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
initializationStatus → InitializationStatus
Returns the current InitializationStatus.
no setterinherited
instanceID → int
finalinherited
isAsyncInitialization → bool
Returns true if this instance initialization was asynchronous.
no setterinherited
isClosed → bool
no setterinherited
isInitialized → bool
Returns true if this instance is already initialized.
no setterinherited
isInitializing → bool
Returns true if this instance is in the middle of the initialization process.
no setterinherited
registeredEntityRepositories → List<EntityRepository<Object>>
no setterinherited
registeredEntityRepositoriesInformation → Map<EntityRepository<Object>, Object>
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
workingPath → String?
no setter

Methods

allRepositories({Map<Type, EntityRepository<Object>>? allRepositories, Set<EntityRepositoryProvider>? traversedProviders}) → Map<Type, EntityRepository<Object>>
inherited
buildAdapter() → FutureOr<A>
buildRepositories(A adapter) → List<EntityRepository<Object>>
Builds the EntityRepository, called by initialize. See extraDependencies.
checkInitialized({bool allowInProgress = true}) → void
Checks if this instance is initialized, initializing it if possible.
inherited
checkNotClosed() → void
inherited
close() → bool
override
doInitialization({Initializable? parent}) → FutureOr<InitializationResult>
Initialize this instance if is not initialized yet. Same as ensureInitialized.
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
executeInitialized<R>(ExecuteInitializedCallback<R> callback, {Initializable? parent}) → FutureOr<R>
Executes the callback ensuring that this instance was initialized.
inherited
extraDependencies() → FutureOr<List<Initializable>>
Some extra Initializable dependencies to be initialized after initialize. See initializeDependencies.
getEntityByID<O>(dynamic id, {Type? type, bool sync = false, EntityResolutionRules? resolutionRules}) → FutureOr<O?>
inherited
getEntityRepository<O extends Object>({O? obj, Type? type, String? name, Set<EntityRepositoryProvider>? traversed}) → EntityRepository<O>?
  • traversed: internal, the providers already asked in the current lookup (see lookupEntityRepository).
  • inherited
    getEntityRepositoryByType<O extends Object>(Type type, {Set<EntityRepositoryProvider>? traversed}) → EntityRepository<O>?
  • traversed: internal, the providers already asked in the current lookup (see lookupEntityRepository).
  • inherited
    getEntityRepositoryByTypeInfo<O extends Object>(TypeInfo typeInfo) → EntityRepository<O>?
    inherited
    initialize() → FutureOr<InitializationResult>
    Initialization implementation. Do not call it directly, use doInitialization.
    override
    initializeDependencies() → FutureOr<List<Initializable>>
    Return a List of Initializable instances that need to be initialized BEFORE initialize this instance.
    override
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    notifyKnownEntityRepositoryProvider(EntityRepositoryProvider provider) → void
    inherited
    populateFromSource(Object? source, {String? workingPath, EntityResolutionRules? resolutionRules, Object? variables}) → FutureOr<Map<String, List<Object>>>

    Available on EntityRepositoryProvider, provided by the EntityRepositoryProviderExtension extension

    registerEntityRepository<O extends Object>(EntityRepository<O> entityRepository) → void
    inherited
    requiredAdapters() → FutureOr<List<DBAdapter<Object>>>
    List of adapters that need to be initialized to buildRepositories.
    requiredEntityRepositoryProviders() → FutureOr<List<EntityRepositoryProvider>>
    List of EntityRepositoryProvider that need to be initialized to buildRepositories.
    resolveEntitiesSource(Object? source, {String? workingPath}) → FutureOr<Map<String, Iterable<Map<String, dynamic>>>>

    Available on EntityRepositoryProvider, provided by the EntityRepositoryProviderExtension extension

    resolveEntitiesSourceVariables(Map<String, Iterable<Map<String, dynamic>>> source, Map<String, dynamic> variables) → Map<String, Iterable<Map<String, dynamic>>>

    Available on EntityRepositoryProvider, provided by the EntityRepositoryProviderExtension extension

    resolveEntitySourceValueVariables(String key, Object? value, Map<String, dynamic> variables) → Object?

    Available on EntityRepositoryProvider, provided by the EntityRepositoryProviderExtension extension

    resolveEntitySourceVariables(Map<String, dynamic> entity, Map<String, dynamic> variables) → Map<String, dynamic>

    Available on EntityRepositoryProvider, provided by the EntityRepositoryProviderExtension extension

    resolveSource(Object? source, {String? workingPath}) → FutureOr<Map<String, dynamic>>

    Available on EntityRepositoryProvider, provided by the EntityRepositoryProviderExtension extension

    storeAllFromJson(Map<String, Iterable<Map<String, dynamic>>> entries, {Transaction? transaction, EntityResolutionRules? resolutionRules, Map<String, dynamic>? variables}) → FutureOr<Map<String, List<Object>>>

    Available on EntityRepositoryProvider, provided by the EntityRepositoryProviderExtension extension

    storeAllFromJsonEncoded(String jsonEncoded, {Transaction? transaction, EntityResolutionRules? resolutionRules, Map<String, dynamic>? variables}) → FutureOr<Map<String, List<Object>>>

    Available on EntityRepositoryProvider, provided by the EntityRepositoryProviderExtension extension

    toString() → String
    A string representation of this object.
    inherited

    Operators

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