Datasnap.Provider.TCustomProvider.DoBeforeApplyUpdates

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

procedure DoBeforeApplyUpdates(var OwnerData: OleVariant); virtual;

C++

virtual void __fastcall DoBeforeApplyUpdates(System::OleVariant &OwnerData);

Description

Generates a BeforeApplyUpdates event.

The ApplyUpdates method calls DoBeforeApplyUpdates to generate the BeforeApplyUpdates event before it applies the updates in Delta.

Delta is the delta packet containing the updates as received from the client.

MaxErrors is the number of errors tolerated before the update operation should aborted.

OwnerData supplies custom information to the BeforeApplyUpdates event handler. The BeforeApplyUpdates event handler can change this value. The returned value is then passed to the AfterApplyUpdates event handler after applying the updates in Delta.

As implemented in TCustomProvider, Delta and MaxErrors are ignored.

See Also