DBSQLRepositoryAdapter<O> class

An adapter for EntityRepository and DBSQLAdapter.

Inheritance

Constructors

DBSQLRepositoryAdapter(DBSQLAdapter<Object> databaseAdapter, String name, {String? tableName, Type? type})

Properties

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
databaseAdapter → DBSQLAdapter<Object>
no setteroverride
dialect → SQLDialect
no setteroverride
dialectName → String
no setterinherited
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
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
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schemeProvider → SchemeProvider
no setterinherited
tableName → String
finalinherited
type → Type
finalinherited

Methods

checkEntityFields(O o, EntityHandler<O> entityHandler) → void
inherited
checkInitialized({bool allowInProgress = true}) → void
Checks if this instance is initialized, initializing it if possible.
inherited
countSQL(TransactionOperation op, SQL sql) → FutureOr<int>
deleteSQL(TransactionOperation op, SQL sql) → FutureOr<Iterable<Map<String, dynamic>>>
doCount(TransactionOperation op, {EntityMatcher? matcher, Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, PreFinishDBOperation<int, int>? preFinish}) → FutureOr<int>
inherited
doDelete<R>(TransactionOperation op, EntityMatcher matcher, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, PreFinishDBOperation<Iterable<Map<String, dynamic>>, R>? preFinish}) → FutureOr<R>
inherited
doExistIDs<I extends Object>(TransactionOperation op, List<I> ids) → FutureOr<List<I>>
inherited
doInitialization({Initializable? parent}) → FutureOr<InitializationResult>
Initialize this instance if is not initialized yet. Same as ensureInitialized.
inherited
doInsert(TransactionOperation op, O o, Map<String, dynamic> fields, {String? idFieldName, PreFinishDBOperation? preFinish}) → FutureOr
inherited
doInsertRelationship(TransactionOperation op, String field, dynamic id, String otherTableName, List otherIds, [PreFinishDBOperation<bool, bool>? preFinish]) → FutureOr<bool>
inherited
doSelect<R>(TransactionOperation op, EntityMatcher matcher, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, int? limit, int? offset, bool? orderByID, OrderDirection? orderDirection, PreFinishDBOperation<Iterable<Map<String, dynamic>>, R>? preFinish}) → FutureOr<R>
inherited
doSelectAll<R>(TransactionOperation op, {int? limit, int? offset, bool? orderByID, OrderDirection? orderDirection, PreFinishDBOperation<Iterable<Map<String, dynamic>>, List<R>>? preFinish}) → FutureOr<List<R>>
Ordering and pagination:
inherited
doSelectByID<R>(TransactionOperation op, Object id, {PreFinishDBOperation<Map<String, dynamic>?, R?>? preFinish}) → FutureOr<R?>
inherited
doSelectByIDs<R>(TransactionOperation op, List<Object> ids, {int? limit, int? offset, bool? orderByID, OrderDirection? orderDirection, PreFinishDBOperation<Iterable<Map<String, dynamic>>, List<R>>? preFinish}) → FutureOr<List<R>>
Ordering and pagination:
inherited
doSelectIDsBy<I extends Object>(TransactionOperation op, EntityMatcher matcher, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, int? limit, int? offset, bool? orderByID, OrderDirection? orderDirection}) → FutureOr<List<I>>
inherited
doSelectRelationship<R>(TransactionOperation op, String field, dynamic id, String otherTableName, [PreFinishDBOperation<Iterable<Map<String, dynamic>>, R>? preFinish]) → FutureOr<R>
inherited
doSelectRelationships<R>(TransactionOperation op, String field, List ids, String otherTableName, [PreFinishDBOperation<Iterable<Map<String, dynamic>>, R>? preFinish]) → FutureOr<R>
inherited
doUpdate(TransactionOperation op, O o, Object id, Map<String, dynamic> fields, {String? idFieldName, PreFinishDBOperation? preFinish, bool allowAutoInsert = false}) → FutureOr
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
generateCountSQL(Transaction transaction, {EntityMatcher? matcher, Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters}) → FutureOr<SQL>
generateDeleteSQL(Transaction transaction, EntityMatcher matcher, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters}) → FutureOr<SQL>
generateInsertRelationshipSQLs(Transaction transaction, String field, dynamic id, String otherTableName, List otherIds) → FutureOr<List<SQL>>
generateInsertSQL(Transaction transaction, O o, Map<String, dynamic> fields) → FutureOr<SQL>
generateSelectRelationshipSQL(Transaction transaction, String field, dynamic id, String otherTableName) → FutureOr<SQL>
generateSelectRelationshipsSQL(Transaction transaction, String field, List ids, String otherTableName) → FutureOr<SQL>
generateSelectSQL(Transaction transaction, EntityMatcher matcher, {Object? parameters, List? positionalParameters, Map<String, Object?>? namedParameters, int? limit, int? offset, bool? orderByID, OrderDirection? orderDirection}) → FutureOr<SQL>
generateUpdateSQL(Transaction transaction, O o, Object id, Map<String, dynamic> fields) → FutureOr<SQL>
getTableScheme() → FutureOr<TableScheme>
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
insertRelationshipSQLs(TransactionOperation op, List<SQL> sqls, dynamic id, String otherTableName, List otherIds) → FutureOr<bool>
insertSQL(TransactionOperation op, SQL sql, Map<String, dynamic> fields, {String? idFieldName}) → FutureOr
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
selectRelationshipSQL(TransactionOperation op, SQL sql, dynamic id, String otherTableName) → FutureOr<Iterable<Map<String, dynamic>>>
selectRelationshipsSQL(TransactionOperation op, SQL sql, List ids, String otherTableName) → FutureOr<Iterable<Map<String, dynamic>>>
selectSQL(TransactionOperation op, SQL sql) → FutureOr<Iterable<Map<String, dynamic>>>
toString() → String
A string representation of this object.
override
updateSQL(TransactionOperation op, SQL sql, Object id, Map<String, dynamic> fields, {String? idFieldName, bool allowAutoInsert = false}) → FutureOr

Operators

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