Datasnap.Provider.TCustomResolver.InitKeyFields

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Datasnap.Provider.pas
Datasnap.Provider.hpp
Unit: Datasnap.Provider
Parent: TCustomResolver

Delphi

procedure InitKeyFields(Tree: TUpdateTree; ADelta: TPacketDataSet); virtual;

C++

virtual void __fastcall InitKeyFields(TUpdateTree* Tree, TPacketDataSet* ADelta);

Description

Sets the provider flag pfInKey on all key fields in a delta data packet.

InitKeyFields is used internally to mark fields from a delta packet that can be used to uniquely identify records in the underlying dataset.

The Tree parameter is the internal TUpdateTree that the resolver uses to store information about the delta packet. The ADelta parameter is the delta packet of changes to apply. For every field in this delta packet that acts as a key value to uniquely identify records, InitKeyFields adds pfInKey to its ProviderFlags property.

See Also