FireDAC.Comp.Client.TFDCustomSchemaAdapter.Reconcile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Reconcile: Boolean;

C++

bool __fastcall Reconcile();

Properties

Type Visibility Source Unit Parent
function public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomSchemaAdapter

Description

Successfully clears updated records from the centralized cache of changes.

Reconcile is called by the ApplyUpdates method to update the change log so that it reflects the result of an update. Reconcile is called after the schema adapter has attempted to apply all updates in the centralized change log. 

Results of updates applying are recorded in the internal data storage, including error information for each record that could not be applied. Reconcile generates an OnReconcileRow event for every record that was not successfully applied. Finally, Reconcile adjusts the change log so that it includes only those records that were not successfully applied. Any changes made in the OnReconcileRow event are reflected in the new log state. 

Reconcile returns a value that indicates whether reconciling is successful. If True, Reconcile succeeded without error. If False, one or more errors could not be reconciled. 

Alternatively, an application can review erroneous records using the FilterChanges and RowError properties. For more details, read "Reviewing errors" at Caching Updates.

See Also