User Tools

Site Tools


transactionrollback_rollback_the_transaction_.htm
Navigation:  ABC Library Reference > TransactionManager > TransactionManager Methods >====== TransactionRollBack (rollback the transaction) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

TransactionRollback( ),VIRTUAL

blk2blue.jpg

TransactionRollback Rollback (abort) the transaction process.

TransactionRollback is a virtual method used to abort the TransactionManager's transaction process by issuing a ROLLBACK 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 TransactionRollback method is called by the Finish method if a Level:Fatal 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, TransactionCommit, ROLLBACK

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