execute
Executes the transaction on the given connection. It is not necessary to implement commit or rollback logic yourself.
The transaction may be called multiple times if a deadlock occurs, so care needs to be taken if the transaction has any application-level side effects.
Return
the result.
Parameters
connection
the database connection, which is only valid for the duration of the transaction.