Data.SqlExpr.TCustomSQLDataSet.PSStartTransaction

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: protected
Source:
Data.SqlExpr.pas
Data.SqlExpr.hpp
Unit: Data.SqlExpr
Parent: TCustomSQLDataSet

Delphi

procedure PSStartTransaction; override;

C++

virtual void __fastcall PSStartTransaction();

Description

Starts a transaction that encapsulates all activity until a call to PSEndTransaction.

Data.SqlExpr.TCustomSQLDataSet.PSStartTransaction inherits from Data.DB.TDataSet.PSStartTransaction. All content below this line refers to Data.DB.TDataSet.PSStartTransaction.

Starts a transaction that encapsulates all activity until a call to PSEndTransaction.

The provider component applies updates within a transaction, if possible. To do so, it calls PSStartTransaction to start a transaction before applying updates, and calls PSEndTransaction when all updates are applied or too many errors are encountered.

This method is an implementation of the IProviderSupport.PSStartTransaction method and, by default, is blank. To use it, every TDataSet descendant must override it in its specific way.

See Also