Here you can find the source of setAutoCommit(Boolean b)
public static void setAutoCommit(Boolean b)
//package com.java2s; //License from project: Open Source License import java.sql.Connection; public class Main { private static Connection h2Connection; public static void setAutoCommit(Boolean b) { try {//from w ww . jav a 2 s. c o m h2Connection.setAutoCommit(b); } catch (Exception e) { throw new RuntimeException("DB error: failed to set auto commit: " + e.toString()); } } }