Deploying and Managing Apama Applications > 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 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.