Connecting Apama Applications to External Components > Using Standard Adapters > Using the Apama Database Connector > The ADBC Event Application Programming Interface > Rolling back transactions
Rolling back transactions
To rollback a database transaction, your application should use the Connection event's rollbackRequest action. If you want to use rollback actions, you need to turn autocommit off.
1. Create a callback action to handle the results of the rollbackRequest action.
2. Call the rollbackRequest action of the Connection event (for the open database) with the name of the callback action.
The definitions for the two forms of the rollbackRequest action are:

action rollbackRequest(
action<Connection, integer, string, string> callback) returns integer

action rollbackRequestFull(
string token,
dictionary<string, string> extraParams, string token,
action<Connection, integer, string, string> callback) returns integer
Copyright © 2013-2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.