Datasnap.Provider.TDataSetProvider.GetDataSetFromDelta
Delphi
function GetDataSetFromDelta(ATree: TUpdateTree; Source, Delta: TDataSet; Mode: TUpdateMode): TDataSet; virtual;
C++
virtual Data::Db::TDataSet* __fastcall GetDataSetFromDelta(TUpdateTree* ATree, Data::Db::TDataSet* Source, Data::Db::TDataSet* Delta, Data::Db::TUpdateMode Mode);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Datasnap.Provider.pas Datasnap.Provider.hpp |
Datasnap.Provider | TDataSetProvider |
Description
Returns a dataset positioned on the record of the source dataset that is currently being fetched or updated.
GetDataSetFromDelta is used internally to fetch a specific record when the source dataset is unidirectional.
ATree is a TUpdateTree object that represents the update or data fetch operation.
Source is a source dataset. Because it is unidirectional, however, it is not necessarily positioned on the correct record.
Delta is a delta dataset that indicates the desired record.
Mode indicates the criteria to use for locating a record on the server from the dataset that Source uses. The values that follow these criteria come from Delta.
GetDataSetFromDelta returns a unidirectional dataset that corresponds to Source but that contains a single record based on the criteria in Delta and Mode.