Apama Documentation : 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 roll back 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.
To roll back a transaction
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
and:

action rollbackRequestFull(
string token,
dictionary<string, string> extraParams, string token,
action<Connection, integer, string, string> callback) returns integer
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback