Data.SqlExpr.TCustomSQLDataSet.PSEndTransaction
Delphi
procedure PSEndTransaction(Commit: Boolean); override;
C++
virtual void __fastcall PSEndTransaction(bool Commit);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Data.SqlExpr.pas Data.SqlExpr.hpp |
Data.SqlExpr | TCustomSQLDataSet |
Description
Ends a transaction that was started by a call to PSStartTransaction.
Data.SqlExpr.TCustomSQLDataSet.PSEndTransaction inherits from Data.DB.TDataSet.PSEndTransaction. All content below this line refers to Data.DB.TDataSet.PSEndTransaction.
Ends a transaction that was started by a call to PSStartTransaction.
The provider component applies updates within a transaction, if possible. To do so, it uses PSEndTransaction in conjunction with the PSStartTransaction method.
The Commit
parameter indicates whether the dataset should commit the current transaction (Commit
is True), or roll it back (Commit
is False).
This method is an implementation of the IProviderSupport.PSEndTransaction method and, by default, is blank. To use it, every TDataSet descendant must override it in its specific way.