Data.DBXClient.TDBXClientConnection.CreateAndBeginTransaction
[–] Properties | |
---|---|
Type: function | |
Visibility: protected | |
Source: Data.DBXClient.pas Data.DBXClient.hpp
| |
Unit: Data.DBXClient | |
Parent: TDBXClientConnection |
Delphi
function CreateAndBeginTransaction(const Isolation: TDBXIsolation): TDBXTransaction; override;
C++
virtual Data::Dbxcommon::TDBXTransaction* __fastcall CreateAndBeginTransaction(const Data::Dbxcommon::TDBXIsolation Isolation);
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.