Data.Win.ADODB.TXactAttribute

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TXactAttribute = (xaCommitRetaining, xaAbortRetaining);

C++

enum DECLSPEC_DENUM TXactAttribute : unsigned char { xaCommitRetaining, xaAbortRetaining };

Properties

Type Visibility Source Unit Parent
enum public
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Data.Win.ADODB Data.Win.ADODB

Description

TXactAttribute values specify automated transaction behavior.

Use TXactAttribute to specify how the committing and aborting of a connection component's transactions is handled. A property of type TXactAttribute may contain one TXactAttribute constant, both, or none.

An xaCommitRetaining value specifies that the connection performs retaining commits. Committing a transaction automatically starts a new transaction.

An xaAbortRetaining value specifies that the connection performs retaining aborts. Rolling back a transaction automatically starts a new transaction.

The constants that make up the TXactAttributes type correspond directly to the ADO XactAttributeEnum constants adXactCommitRetaining and adXactAbortRetaining. These ADO constants are in the Attributes property of the ADO Connection object. For additional information on these ADO constants and their effects, see the Microsoft Data Access SDK help in the topic for the Attributes property of the ADO Connection object.

See Also