Datasnap.Provider.TBaseProvider.InternalApplyUpdates

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function InternalApplyUpdates(const Delta: OleVariant; MaxErrors: Integer;  out ErrorCount: Integer): OleVariant; override;

C++

virtual System::OleVariant __fastcall InternalApplyUpdates(const System::OleVariant &Delta, int MaxErrors, /* out */ int &ErrorCount);

プロパティ

種類 可視性 ソース ユニット
function protected
Datasnap.Provider.pas
Datasnap.Provider.hpp
Datasnap.Provider TBaseProvider

説明

ApplyUpdates メソッドの基底の実装を提供します。

ApplyUpdates メソッドは,InternalApplyUpdates メソッドを呼び出して,BeforeApplyUpdates イベントを生成した後,および AfterApplyUpdates イベントを生成する前にデルタパケットに含まれる更新を適用します。

Options プロパティに poReadOnly が含まれる場合,InternalApplyUpdates は例外を生成します。それ以外の場合は,Resolver コンポーネントの ApplyUpdates メソッドを呼び出して実際の更新と解決を処理します。Resolver プロパティが nil(Delphi)または NULL(C++)の場合,ApplyUpdates は CreateResolver メソッドを呼び出し,作成されたリゾルバを Resolver プロパティに割り当てます。

Delta パラメータは,適用される挿入,削除,修正を含むデルタパケットです。

MaxErrors パラメータは,エラーがいくつ発生したら更新処理を中止するかを示します。MaxErrors が -1 の場合,プロバイダはすべての更新を適用します。

ErrorCount パラメータは,更新処理中に発生したエラーの数を返します。

InternalApplyUpdates は,OleVariant としてデータベースに適用できなかった更新のデータパケットを返します。

関連項目