public class JdbcResultSet extends TraceObject implements ResultSet
{
//...
public boolean next() throws SQLException
{
try
{
debugCodeCall("next");
checkClosed();
return nextRow();
}
catch (Exception e)
{
throw logAndConvert(e);
}
}
private boolean nextRow()
{
boolean next = result.next();
if (!next && !scrollable)
{
result.close();
}
return next;
}
//...
} ?