import java.sql.*;
・・・
Class.forName("org.h2.Driver");
String url = "jdbc:h2:~/db";
Connection conn = DriverManager.getConnection(url); // DB接続
conn.close(); // DB切断
==== SQL実行 ====
import java.sql.*;
・・・
Connection conn = DriverManager.getConnection(url);
String sql = "INERT INTO XXXX(name) VALUES('hoge')";
conn.createStatement().executeUpdate(sql); // SQL実行