DBRelationalEntityRepositoryProvider<A extends DBRelationalAdapter<Object> > class
abstract
Base class for EntityRepositoryProvider with DBRelationalAdapters.
- Inheritance
-
- Object
- EntityRepositoryProvider
- DBEntityRepositoryProvider<
DBAdapter< Object> > - DBRelationalEntityRepositoryProvider
- Available extensions
Constructors
Properties
-
adapter
→ FutureOr<
DBAdapter< Object> > -
no setterinherited
-
adapterConfig
→ Map<
String, dynamic> -
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 setterinherited
Methods
-
allRepositories(
{Map< Type, EntityRepository< ? allRepositories, Set<Object> >EntityRepositoryProvider> ? traversedProviders}) → Map<Type, EntityRepository< Object> > -
inherited
-
buildAdapter(
) → FutureOr< A> -
override
-
buildRepositories(
DBAdapter< Object> adapter) → List<EntityRepository< Object> > -
Builds the EntityRepository, called by initialize.
See extraDependencies.
inherited
-
checkInitialized(
) → void -
Checks if this instance is initialized.
inherited
-
checkNotClosed(
) → void -
inherited
-
close(
) → bool -
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
-
executeInitialized<
R> (ExecuteInitializedCallback< R> callback, {Initializable? parent}) → FutureOr<R> -
Executes the
callback
ensuring that this instances was fully initialized.inherited -
extraDependencies(
) → FutureOr< List< Initializable> > -
Some extra Initializable dependencies to be initialized after initialize.
See initializeDependencies.
inherited
-
getEntityByID<
O> (dynamic id, {Type? type, bool sync = false, EntityResolutionRules? resolutionRules}) → FutureOr< O?> -
inherited
-
getEntityRepository<
O extends Object> ({O? obj, Type? type, String? name}) → EntityRepository< O> ? -
inherited
-
getEntityRepositoryByType<
O extends Object> (Type type) → EntityRepository< O> ? -
inherited
-
getEntityRepositoryByTypeInfo<
O extends Object> (TypeInfo typeInfo) → EntityRepository< O> ? -
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyKnownEntityRepositoryProvider(
EntityRepositoryProvider provider) → void -
inherited
-
registerEntityRepository<
O extends Object> (EntityRepository< O> entityRepository) → void -
inherited
-
requiredAdapters(
) → FutureOr< List< DBAdapter< >Object> > -
List of adapters that need to be initialized to buildRepositories.
inherited
-
requiredEntityRepositoryProviders(
) → FutureOr< List< EntityRepositoryProvider> > -
List of EntityRepositoryProvider that need to be initialized to buildRepositories.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited