Data.DB.IProviderSupport.PSEndTransaction

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure PSEndTransaction(Commit: Boolean);

C++

virtual void __fastcall PSEndTransaction _DEPRECATED_ATTRIBUTE0 (bool Commit) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.DB.pas
Data.DB.hpp
Data.DB IProviderSupport

Description

Warning: PSEndTransaction is deprecated. Please use IProviderSupportNG.

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).

Note: TDataSetProvider only starts a transaction (Using PSStartTransaction) if the PSInTransaction method indicates that there is no transaction already established. That is, it does not assume nested transaction support is available. Thus, there is no need to ensure that PSEndTransaction does not terminate a transaction that was not started by the provider.

See Also