Java JDBC H2 Connection rollback(Savepoint sp)

Here you can find the source of rollback(Savepoint sp)

Description

rollback

License

Open Source License

Declaration

public static void rollback(Savepoint sp) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.sql.Connection;

import java.sql.Savepoint;

public class Main {
    private static Connection h2Connection;

    public static void rollback(Savepoint sp) {
        try {/*  w  w w.ja  v a 2s.c  o m*/
            h2Connection.rollback(sp);
        } catch (Exception e) {
            throw new RuntimeException("DB error on rollback: " + e.toString());
        }
    }
}

Related

  1. deleteDatabaseH2()
  2. getConnection()
  3. getH2Connection(String dbname)
  4. getH2Connection(String filename)
  5. isH2DbAlreadyRunning()
  6. setAutoCommit(Boolean b)