Apama 10.15.0 | Connecting Apama Applications to External Components | Standard IAF Plug-ins | The Database Connector IAF Adapter (ADBC) | 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