question: protected Connection openH2Connection ( boolean autocommit ) throws SQLException { System . setProperty ( "h2.serializeJavaObject" , "false" ) ; String dbName = "test" ; Connection conn = DriverManager . getConnection ( "jdbc:h2:mem:" + dbName + ";DB_CLOSE_DELAY=-1" ) ; conn . setAutoCommit ( autocommit ) ; return conn ; }
target:  Gets connection from a pool.