User Tools

Site Tools


transactioncommit_commit_the_transaction_.htm
Navigation:  ABC Library Reference > TransactionManager > TransactionManager Methods >====== TransactionCommit (commit the transaction) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

TransactionCommit( ),VIRTUAL

blk2blue.jpg

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

transactioncommit_commit_the_transaction_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1