Connection conn = getConnection();
Connection conn = getConnectionViaDriverManager();
        public void run(){            try {                Connection conn = getConnection();                PreparedStatement stmt = conn.prepareStatement(                    "INSERT INTO TEST VALUES (?)");                try {                    for (int i = 0; i < count; i++){                        stmt.setInt(1, i);                        stmt.execute();                    }                } finally {                    conn.close();                }            } catch (Exception e){                throw new RuntimeException(e.getMessage());            }        }