FireDAC.Comp.Client.TFDAdaptedDataSet.PSInTransaction
Delphi
function PSInTransaction: Boolean; override;
C++
virtual bool __fastcall PSInTransaction(void);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | protected | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDAdaptedDataSet |
Description
Indicates whether actions against the dataset occur in the context of a transaction. {{#multireplace:FireDAC.Comp.Client.TFDAdaptedDataSet.PSInTransaction|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Data.DB.TDataSet.PSInTransaction|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Data.DB.TDataSet.PSInTransaction|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
Indicates whether actions against the dataset occur in the context of a transaction.
The provider component applies updates within a transaction, if possible. To do so, it first checks whether a transaction is already underway, and if not, generates one using PSStartTransaction. To determine whether a transaction is already underway, the provider calls PSInTransaction.
PSInTransaction returns True if there is a transaction underway, and False otherwise.
This method is an implementation of the IProviderSupport.PSInTransaction 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.