@Override
    public boolean hasNext() {
        if (next == null) {
            try {
                next = rs.next();
            } catch (SQLException e) {
                close();
                throw configuration.translate(e);
            }
        }
        return next;
    }
{@code SQLResultIterator} is an Iterator adapter for JDBC result sets with customizable projections

@author tiwe

@param <T>
querydsl-sql/src/main/java/com/querydsl/sql/SQLResultIterator.java