API:Bde.DBTables.TDBDataSet.PSEndTransaction

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure PSEndTransaction(Commit: Boolean); override;

C++

virtual void __fastcall PSEndTransaction(bool Commit);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TDBDataSet

Description

Ends a transaction that was started by a call to PSStartTransaction.

Bde.DBTables.TDBDataSet.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.


See Also