public List toBeanList()

in src/main/java/org/apache/commons/dbutils/BeanProcessor.java [499:511]


    public <T> List<T> toBeanList(final ResultSet resultSet, final Class<? extends T> type) throws SQLException {
        final List<T> results = new ArrayList<>();
        if (!resultSet.next()) {
            return results;
        }
        final PropertyDescriptor[] props = propertyDescriptors(type);
        final ResultSetMetaData rsmd = resultSet.getMetaData();
        final int[] columnToProperty = mapColumnsToProperties(rsmd, props);
        do {
            results.add(this.createBean(resultSet, type, props, columnToProperty));
        } while (resultSet.next()); // NOPMD False positive CheckResultSet
        return results;
    }