Show / Hide Table of Contents

RollbackTransaction

Object and Type

Object  : FCSession

Type     : Method

Prototype

Public Function RollbackTransaction()

Description

If StartTransaction() has previously been called. This method needs to be called if for some reason the transaction cannot be committed.

A rollback is necessary when an exception occurs during the lifetime of the transaction or some condition such that it is desired to return the database back to its pre-transaction state.

Care should be made when using database transactions to make sure all possible paths of code protect for thrown exceptions to avoid leaving an uncompleted transactions hanging around.

Example

Please see Developer Walkthrough - Transaction support

Back to top © 2022 Dovetail Software, Inc. - All rights reserved.
Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
.NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.