You want to call setConnection /closeConnection