RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetProvider.InternalApplyUpdates Method

Provides the underlying implementation of the ApplyUpdates method.

Pascal
function InternalApplyUpdates(const Delta: OleVariant; MaxErrors: Integer; out ErrorCount: Integer): OleVariant; override;
C++
virtual __fastcall OleVariant InternalApplyUpdates(const OleVariant Delta, int MaxErrors, int ErrorCount);

The ApplyUpdates method calls InternalApplyUpdates to apply the updates contained in a delta packet after generating the BeforeApplyUpdates event and before generating the AfterApplyUpdates event.  

If the Options property includes poReadOnly, InternalApplyUpdates raises an exception. Otherwise, it tells the dataset to start a transaction, calls the ApplyUpdates method of its Resolver component to handle the actual update and resolving process, and tells the dataset to complete the transaction. 

Delta is the delta packet containing insertions, deletions, and modifications to be applied.  

MaxErrors indicates the maximum number of errors that can be applied before stopping the update operation. If MaxErrors is –1, the provider tries to apply all updates.  

ErrorCount returns the number of errors encountered during the update operation.  

InternalApplyUpdates returns a data packet of updates that could not be applied to the database as an OleVariant

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!