<code>
protected
void resetAutoCommit() {
try
{
if
(!connection.getAutoCommit()) {
if
(log.isDebugEnabled()) {
log.debug(
"Resetting autocommit to true on JDBC Connection ["
+ connection +
"]"
);
}
connection.setAutoCommit(true);
}
}
catch
(SQLException e) {
log.debug(
"Error resetting autocommit to true "
+
"before closing the connection. Cause: "
+ e);
}
}
</code>