I am trying to use rs.first(), but for that to work we have to add ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY in preparedStatement, I just wanted to know whether it is advisable to use and it has any performance issues
PreparedStatement ps = conn.prepareStatement ("SELECT * FROM TABLE WHERE
FIELD1 = ?" ,
ResultSet.TYPE_SCROLL_INSENSITIVE ,
ResultSet.CONCUR_UPDATABLE ,
ResultSet.HOLD_CURSOR_OVER_COMMIT) ;