FireDAC.Comp.Client.TFDRdbmsDataSet.Transaction

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

Delphi

property Transaction: TFDCustomTransaction read GetTransaction write SetTransaction;

C++

__property TFDCustomTransaction* Transaction = {read=GetTransaction, write=SetTransaction};

プロパティ

種類 可視性 ソース ユニット
property public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDRdbmsDataSet

説明

トランザクション オブジェクトの参照を取得/設定します。


Transaction プロパティを使用すると、データセットを明示的なトランザクション オブジェクトに関連付けることができます。これを指定しなければ、データセットはデフォルトの接続トランザクションと関連付けられます。

指定したトランザクション オブジェクトは、PrepareOpenExecSQLExecProcExecute の各メソッドでのみ使われます。データベースに変更を適用するために生成されたコマンドの場合、FireDAC では、UpdateTransaction が指定されていればそれを、指定されていなければ Transaction を使用します。

現在のところ、明示的なトランザクション オブジェクトの割り当てがサポートされているのは InterBase と Firebird だけです。

関連項目