FireDAC.Comp.DataSet.TFDDataSet.PSUpdateRecord
Delphi
function PSUpdateRecord(AUpdateKind: TUpdateKind; ADelta: TDataSet): Boolean; override;
C++
virtual bool __fastcall PSUpdateRecord(Data::Db::TUpdateKind AUpdateKind, Data::Db::TDataSet* ADelta);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | FireDAC.Comp.DataSet.pas FireDAC.Comp.DataSet.hpp |
FireDAC.Comp.DataSet | TFDDataSet |
Description
Applies a single update to the underlying database table or tables.
FireDAC.Comp.DataSet.TFDDataSet.PSUpdateRecord inherits from Data.DB.TDataSet.PSUpdateRecord. All content below this line refers to Data.DB.TDataSet.PSUpdateRecord.
Applies a single update to the underlying database table or tables.
Before the provider generates SQL statements to apply an update, it calls PSUpdateRecord to let the dataset apply the update in some other fashion.
UpdateKind
indicates whether the update is an insertion (ukInsert
), deletion (ukDelete
), or modification (ukModify
).
Delta is the delta datapacket. The current record represents the record to be updated.
PSUpdateRecord returns True if it updates the record, False otherwise. If PSUpdateRecord returns False, the provider generates dynamic SQL to perform the update and calls PSExecuteStatement.
This method is an implementation of the IProviderSupport.PSUpdateRecord method and, by default, returns False, because TDataSet does not implement a provider by default. To use it, every TDataSet descendant must override it in its specific way.