Transaction class

From m204wiki
Revision as of 03:47, 14 January 2020 by Alex (talk | contribs) (Created page with "The <var>Transaction</var> class is a collection of shared methods that allow control of transactions, specifically global...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Transaction class is a collection of shared methods that allow control of transactions, specifically global transactions.

There are no System or Transaction objects, per se. That is, you cannot instantiate an instance of a Transaction object, nor assign references from one variable to another, nor are there any instance-specific methods in this class. You can, however, declare objects of the Transaction class. The main use of such objects is to provide a short-hand way of referencing the class:

%sys is object system %tran is object transaction ... %tran:setGlobal(%xid, $view("JOBNM"))

All Transaction class methods are shared methods, so they are invokable via their class names:

%(transaction):setGlobal(%xid, $view("JOBNM"))

List of Transaction methods

The individual Transaction methods are summarized in List of Transaction methods.