JDBC Programmer Reference › Distributed Transactions › Using SQL Transaction and Session Commands
JDBC provides an explicit API to control sessions and transactions. Using the equivalent SQL statements directly is not recommended and has implementation defined results.