DBSQLEntityRepository<O extends Object> class

Inheritance
Available extensions

Constructors

DBSQLEntityRepository(DBSQLAdapter<Object> adapter, String name, EntityHandler<O> entityHandler, {DBSQLRepositoryAdapter<O>? repositoryAdapter, Type? type})

Properties

dialect SQLDialect
no setteroverride
dialectName String
no setterinherited
entityHandler EntityHandler<O>
finalinherited
entityManager Object

Available on EntityRepository<Object>, provided by the EntityRepositoryDBExtension extension

no 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 setterinherited
provider EntityRepositoryProvider
finalinherited
repositoryAdapter DBSQLRepositoryAdapter<O>
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String
no setterinherited
type Type
finalinherited

Methods

checkEntityFields(O o) → void
inherited
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>
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
hasReferencedEntities([EntityResolutionRulesResolved? resolutionRules]) bool
inherited
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
inherited
isTrackingEntity(O o) bool
inherited
length({Transaction? transaction}) FutureOr<int>
inherited
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<String, dynamic>?>? results, {EntityResolutionRules? resolutionRules}) FutureOr<List<O>>
inherited
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<List<O>>
inherited
selectAll({Transaction? transaction, int? limit, EntityResolutionRules? resolutionRules}) FutureOr<Iterable<O>>
inherited
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>>
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.
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