Navigation: ABC Library Reference > TransactionManager > TransactionManager Methods >====== TransactionCommit (commit the transaction) ====== | |
TransactionCommit( ),VIRTUAL
TransactionCommit | Commit (complete) the transaction process. |
TransactionCommit is a virtual method used to complete the TransactionManager's transaction process by issuing a COMMIT statement. In addition, the UseLogout property of each RelationManager used in the transaction is restored to its previous state. It also checks to make sure if the transaction has already been completed.
Implementation:
The TransactionCommit method is called by the Finish method if a Level:Benign error level has been posted.
Example:
TransactionManager.Finish PROCEDURE(BYTE pErrorLevel)
CODE
IF NOT SELF.TransactionRunning THEN RETURN.
IF pErrorLevel = Level:Benign
SELF.TransactionCommit()
ELSE
SELF.TransactionRollBack()
END
See Also: Finish, TransactionRollback, COMMIT