Progress
Language Reference


Transaction Object Handle

Interfaces
OS
SpeedScript
All
All
Yes

Provides access to the current transaction object. This object allows you to control the current transaction context.

SYNTAX

transaction-handle [ :attribute | :method ] 

transaction-handle

A handle variable whose value you return from the TRANSACTION attribute on a procedure handle.

attribute

An attribute of the transaction handle. The attributes are listed in the table that follows:

Attribute
Type
Description
LOGICAL
(AppServer only) Specifies how the transaction object is to complete the transaction if an automatic transaction terminates with no prior SET-COMMIT( ) or SET-ROLLBACK( ) being invoked.
LOGICAL
Returns TRUE if a transaction is active. This is identical to the 4GL TRANSACTION function.
HANDLE
(AppServer only) If an automatic transaction is active, returns the procedure handle to the transaction initiating procedure that started the transaction.

method

A method of the transaction handle. The methods are listed in the table that follows:

Method
Return Type
Description
LOGICAL
(AppServer only) Indicates that the transaction object is to commit any automatic transaction when the current request completes and returns execution to the client.
LOGICAL
(AppServer only) Indicates that the transaction object is to roll back any automatic transaction when the current request completes and returns execution to the client.

NOTES

SEE ALSO

TRANSACTION-MODE AUTOMATIC Statement (AppServer only)


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095