FdcDataAdapter class abstract

Contract between an FdcDataSet and an external data source.

Implementations provide query/open behavior and may optionally support applying changes and calculating server-side aggregates.

Implemented types
Implementers

Constructors

FdcDataAdapter({required bool readOnly, List<FdcDataAdapterFilter> filters = const <FdcDataAdapterFilter>[], List<FdcDataAdapterSort> sorts = const <FdcDataAdapterSort>[], FdcDataAdapterCapabilities capabilities = const FdcDataAdapterCapabilities.none()})
Creates a FdcDataAdapter.
const

Properties

capabilities → FdcDataAdapterCapabilities
Adapter-side operation capabilities.
no setteroverride
filters → List<FdcDataAdapterFilter>
Source-level filters that are always applied by datasets using this adapter.
final
hashCode → int
The hash code for this object.
no setterinherited
readOnly → bool
Whether this adapter exposes a non-committable data source.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sorts → List<FdcDataAdapterSort>
Default source-level ordering used when the dataset/grid has no active user sort.
final

Methods

aggregate(FdcDataAggregateRequest request) → Future<FdcDataAggregateResult>
Calculates adapter-side aggregates over the full effective adapter result set. Subclasses that support aggregate queries override this and expose capabilities.aggregates == true.
override
applyUpdates(FdcChangeSet changes) → Future<FdcDataApplyResult>
Applies a dataset change set to the backend.
inherited
dispose() → void
Releases adapter-owned resources.
load(FdcDataLoadRequest request) → Future<FdcDataLoadResult>
Loads rows for the supplied request.
inherited
mapApplyException(FdcChangeSetEntry entry, Object error, {required FdcDataApplyOperation operation}) → FdcDataApplyError
Converts an adapter/backend exception raised while applying one change entry into a structured row-level apply error.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validateStorageValue(FdcFieldDef field, Object? value) → String?
Validates a value against adapter/storage-level constraints.
override

Operators

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