Cursors are enabled by default. To turn them off, set the FetchSize to zero. Assuming a statement st and a ResultSet rs, you would do this as shown here:
st.setFetchSize(0); rs = st.executeQuery("SELECT * FROM mytable"); while (rs.next()) { System.out.print("many rows were returned."); }