if (_isAtEnd) { return false; } else { try { if (_resultSet.next()) { return true; } else { _isAtEnd = true; cleanUp(); return false; } } catch (SQLException ex) { cleanUp(); throw new DynaSqlException("Exception while advancing the resultset cursor", ex); } }
advanceIfNecessary(); return !_isAtEnd;
    public boolean hasNext() throws DynaSqlException    {        if (_isAtEnd)        {            return false;        }        else        {            try            {                if (_resultSet.next())                {                    return true;                }                else                {                    _isAtEnd = true;                    cleanUp();                    return false;                }            }            catch (SQLException ex)            {                cleanUp();                throw new DynaSqlException("Exception while advancing the resultset cursor", ex);            }        }    }