Data.SqlExpr.TSQLConnection.RollbackFreeAndNil

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RollbackFreeAndNil(var Transaction: TDBXTransaction);

C++

void __fastcall RollbackFreeAndNil(Data::Dbxcommon::TDBXTransaction* &Transaction);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.SqlExpr.pas
Data.SqlExpr.hpp
Data.SqlExpr TSQLConnection

Description

Cancels all updates, insertions, and deletions for a specified transaction and ends the transaction.

Call RollbackFreeAndNil to cancel any changes made during the transaction described by Transaction and to end it. Transaction is the TDBXTransaction returned by the BeginTransaction method when starting the transaction.

If the specified transaction is the only current transaction, RollbackFreeAndNil sets the InTransaction property to false after canceling the transaction.

Any active transactions that were begun after this transaction are effectively rolled back and freed as well.

The var Transaction instance is set to nil.

Note: This method raises an exception if Transaction is not an active transaction.

See Also