Here you can find the source of releaseAutoCommit(Connection conn, boolean changedAutoCommit)
public static void releaseAutoCommit(Connection conn, boolean changedAutoCommit)
//package com.java2s; /****************************************************************************** * Copyright (c) 2015 IBM Corporation.//from w w w . java 2 s . c om * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *****************************************************************************/ import java.sql.Connection; import java.sql.SQLException; public class Main { public static void releaseAutoCommit(Connection conn, boolean changedAutoCommit) { if (changedAutoCommit) { try { conn.commit(); conn.setAutoCommit(true); } catch (SQLException e) { } } } }