Here you can find the source of setAutoCommitMode(Connection conn, boolean autoCommit)
public static void setAutoCommitMode(Connection conn, boolean autoCommit)
//package com.java2s; import java.sql.Connection; import java.sql.SQLException; public class Main { public static void setAutoCommitMode(Connection conn, boolean autoCommit) { try {// w w w .j a v a 2 s . com conn.setAutoCommit(autoCommit); } catch (SQLException e) { } } }