Navigation: ABC Library Reference > TransactionManager > TransactionManager Methods >====== TransactionRollBack (rollback the transaction) ====== | |
TransactionRollback( ),VIRTUAL
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