Java JDBC Collection Transaction setAutoCommitMode(Connection conn, boolean autoCommit)

Here you can find the source of setAutoCommitMode(Connection conn, boolean autoCommit)

Description

set Auto Commit Mode

License

Open Source License

Declaration

public static void setAutoCommitMode(Connection conn, boolean autoCommit) 

Method Source Code


//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) {

        }
    }
}

Related

  1. rollbackQuietly(Connection connection)
  2. safeCommit(Connection conn)
  3. setAutoCommit(Connection conn, boolean autoCommit)
  4. setAutoCommit(final Connection connection, final boolean value)
  5. setAutoCommitEL(Connection conn, boolean b)