/** * Go to the first result * * @return <tt>true</tt> if there are any results */ public boolean first() throws HibernateException { beforeFirst(); boolean more = next(); afterScrollOperation(); return more; }
/** * Go to a location just after the last result */ public void afterLast() throws HibernateException { // TODO : not sure the best way to handle this. // The non-performant way : last(); next(); afterScrollOperation(); }
more = next(); if ( !more ) { break;