Java JDBC H2 Connection setAutoCommit(Boolean b)

Here you can find the source of setAutoCommit(Boolean b)

Description

set Auto Commit

License

Open Source License

Declaration

public static void setAutoCommit(Boolean b) 

Method Source Code

//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());
        }
    }
}

Related

  1. getConnection()
  2. getH2Connection(String dbname)
  3. getH2Connection(String filename)
  4. isH2DbAlreadyRunning()
  5. rollback(Savepoint sp)