Data.DBXClient.TDBXClientConnection.CreateAndBeginTransaction

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function  CreateAndBeginTransaction(const Isolation: TDBXIsolation): TDBXTransaction; override;

C++

virtual Data::Dbxcommon::TDBXTransaction* __fastcall CreateAndBeginTransaction(const int Isolation);

Properties

Type Visibility Source Unit Parent
function protected
Data.DBXClient.pas
Data.DBXClient.hpp
Data.DBXClient TDBXClientConnection

Description

Creates a transaction and returns it.

CreateAndBeginTransaction creates a new transaction for a DataSnap connection and begins it. The method returns the transaction.

The Isolation parameter represents the isolation supported by the transaction.

Note: When the work for the transaction is complete, call CommitFreeAndNil, RollbackFreeAndNil, or RollbackIncompleteFreeAndNil.

See Also