Java tutorial
import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.DriverManager; public class Main { public static void main(String[] a) throws Exception { Connection conn = getConnection(); DatabaseMetaData dbMetaData = conn.getMetaData(); System.out.println(dbMetaData.supportsTransactions()); conn.close(); } private static Connection getConnection() throws Exception { Class.forName("org.hsqldb.jdbcDriver"); String url = "jdbc:hsqldb:mem:data/tutorial"; return DriverManager.getConnection(url, "sa", ""); } }