API:FireDAC.Comp.Client.TFDQuery.Transaction

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

Delphi

property Transaction: TFDCustomTransaction read GetTransaction write SetTransaction;

C++

__property Transaction;

プロパティ

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

説明

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

FireDAC.Comp.Client.TFDQuery.Transaction は FireDAC.Comp.Client.TFDRdbmsDataSet.Transaction を継承しています。以下の内容はすべて FireDAC.Comp.Client.TFDRdbmsDataSet.Transaction を参照しています。


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


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

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

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

関連項目