Required Parameters
- driver: The JDBC driver class name in the cross-platform edition or the ADO.NET provider name in the .NET edition.
- conn: The connection string or database URL.
- transactionid: The Id of the transaction created by dbBeginTransaction.
- transactionaction: Whether to commit or roll back the transaction. The allowed values are
commitandrollback.
Example
In this example, database queries are executed between dbBeginTransaction and dbEndTransaction, creating a SQL transaction. To determine the status of the transaction, the status of each query is checked. If all queries are successful, commit the transaction; otherwise roll back the transaction.driver and conn inputs as follows: