Performing rollback operations
For rolling back uncommitted changes to database, use the following DBUtil actions. If you want to use rollback actions, you need to turn autocommit off.
action doSQLRollback()
For rolling back uncommitted changes to database in situations where the previous SQLCmd, SQLQuery, or SQLCommit operation failed, use:
action doSQLRollbackOnError()
When you want to rollback uncommitted changes to the database and receive a DBAcknowledge event to indicate success or failure, use:
action doSQLRollbackAck( integer ackNum, boolean onError )
The ackNum parameter is the identifier for the DBAcknowledge event; setting it to -1 will disable sending the DBAcknowledge event and instead use the default error handler if an error occurs. For the onError parameter, setting its value to true will cause the operation to run only if the previous SQLCmd, SQLQuery, or SQLCommit failed.
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.