DBEntityRepository<O extends Object> class
- Inheritance
-
- Object
- EntityAccessor<
O> - EntityRepository<
O> - DBEntityRepository
- Mixed-in types
- Implementers
- Available extensions
Constructors
-
DBEntityRepository(DBAdapter<
Object> adapter, String name, EntityHandler<O> entityHandler, {DBRepositoryAdapter<O> ? repositoryAdapter, Type? type})
Properties
- dialect → DBDialect
-
no setter
- dialectName → String
-
no setter
-
entityHandler
→ EntityHandler<
O> -
finalinherited
- entityManager → Object
-
Available on EntityRepository<
Object> , provided by the EntityRepositoryDBExtension extensionno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- initializationStatus → InitializationStatus
-
Returns the current InitializationStatus.
no setterinherited
- 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 - name → String
-
finalinherited
- nameSimplified → String
-
no setterinherited
-
onDelete
→ EventStream<
O> -
finalinherited
-
onStore
→ EventStream<
O> -
finalinherited
-
operationExecutor
→ DBAdapter<
Object> -
no setter
- provider → EntityRepositoryProvider
-
finalinherited
-
repositoryAdapter
→ DBRepositoryAdapter<
O> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tableName → String
-
no setter
- type → Type
-
finalinherited
Methods
-
checkEntityFields(
O o) → void -
override
-
checkInitialized(
) → void -
Checks if this instance is initialized.
inherited
-
checkNotClosed(
) → void -
inherited
-
close(
) → bool -
inherited
-
count(
{EntityMatcher? 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?> -
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> -
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? -
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
-
hasReferencedEntities(
[EntityResolutionRulesResolved? resolutionRules]) → bool -
override
-
information(
{bool extended = false}) → Map< String, dynamic> -
override
-
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.
inherited
-
isOfEntityType(
Object? o) → bool -
inherited
-
isSameEntityManager(
EntityRepository< Object> other) → bool -
Available on EntityRepository<
Object> , provided by the EntityRepositoryDBExtension extension -
isStored(
O o, {Transaction? transaction}) → bool -
override
-
isTrackingEntity(
O o) → bool -
inherited
-
length(
{Transaction? transaction}) → FutureOr< 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
-
resolveEntities(
Transaction transaction, Iterable< Map< ? results, {EntityResolutionRules? resolutionRules}) → FutureOr<String, dynamic> ?>List< O> > -
resolveEntityResolutionRules(
EntityResolutionRules? resolutionRules) → EntityResolutionRulesResolved -
Resolves the
resolutionRules
to apply. Merges with the current EntityResolutionRules context if needed.inherited -
select(
EntityMatcher matcher, {Object? parameters, List? positionalParameters, Map< String, Object?> ? namedParameters, Transaction? transaction, int? limit, EntityResolutionRules? resolutionRules}) → FutureOr<Iterable< O> > -
override
-
selectAll(
{Transaction? transaction, int? limit, EntityResolutionRules? resolutionRules}) → FutureOr< Iterable< O> > -
override
-
selectByID(
dynamic id, {Transaction? transaction, EntityResolutionRules? resolutionRules}) → FutureOr< 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 matcher, {Object? parameters, List? positionalParameters, Map< String, Object?> ? namedParameters, Transaction? transaction, int? limit}) → FutureOr<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< entitiesJson, {Transaction? transaction, EntityResolutionRules? resolutionRules}) → FutureOr<String, dynamic> >List< O> > -
inherited
-
storeFromJson(
Map< String, dynamic> json, {Transaction? transaction, EntityResolutionRules? resolutionRules}) → FutureOr<O> -
inherited
-
toString(
) → String -
A string representation of this object.
override
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited