Is it possible to tell if a java ResultSet is empty without affecting the record?
<p>I do not want to use next() since if the ResultSet is not empty, I do not want the cursor to be advanced. Is there some sort of peek() method or equivalent that will return false if the ResultSet is empty and true otherwise without affecting the record?</p>

<p>Edit:</p>

<p>I cannot call <code>beforeFirst</code> because I get the following</p>

<blockquote>
  <p>Operation requires a scrollable ResultSet, but this ResultSet is
  FORWARD_ONLY</p>
</blockquote>

<p>I need <code>FORWARD_ONLY</code> because I'm using postgreSQL cursors</p>
