Data.Win.ADODB.TCustomADODataSet.PSEndTransaction

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: protected
Source:
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Unit: Data.Win.ADODB
Parent: TCustomADODataSet

Delphi

procedure PSEndTransaction(Commit: Boolean); override;

C++

virtual void __fastcall PSEndTransaction(bool Commit);

Description

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

Data.Win.ADODB.TCustomADODataSet.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