DataAccess class abstract

Constructors

DataAccess(DataAccessImplementation implementation, {List<DbCollection>? collections, Map<DbOperationType, bool>? defaultPermissionsByType, bool defaultPermission = true, bool streamSupport = false})
factory

Properties

context BuildContext
The context in which the service attached
getter/setter pairinherited-setter
hashCode int
The hash code for this object.
no setterinherited
identifierMapping Map<String, String>?
final
implementation DataAccessImplementation
getter/setter pair
initialized bool
Service is initialized
getter/setter pairinherited
permissionHandler PermissionHandlerService?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
triggerService TriggerService?
getter/setter pair

Methods

aggregation(AccessEvent access) FutureOr<ReadListResult>
any(AccessEvent access) FutureOr<DbResult>
count(AccessEvent access) FutureOr<DbResult<int>>
create(AccessEvent access) FutureOr<CreateDbResult>
delete(AccessEvent access) FutureOr<DeleteDbResult>
ensureInitialize() Future<bool>
Wait service is initialized.
inherited
exists(AccessEvent access) FutureOr<DbResult<bool>>
init([bool inInterface = true]) FutureOr<bool>
Init Service
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(AccessEvent access) FutureOr<ReadDbResult>
readList(AccessEvent access) FutureOr<ReadListResult>
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
update(AccessEvent access) FutureOr<UpdateDbResult>

Operators

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

Static Methods

of(BuildContext context) DataAccess