fitgoodies-db-jdbc/src/main/java/de/cologneintelligence/fitgoodies/database/dynamic/ResultSetWrapper.java
public final Object[] getRows() throws SQLException {
        List<Object> result = new ArrayList<>();

        while (rows.size() > 0) {
            Object[] copy = rows.remove(0);
            Object o = createContainerObject();

            for (int i = 0; i < columnCount; ++i) {
                setObjectValue(o, names.get(i), copy[i]);
            }

            result.add(o);
        }

        while (resultSet.next()) {
            Object o = createContainerObject();
            for (int col = 0; col < columnCount; ++col) {
                setObjectValue(o, names.get(col), resultSet.getObject(col + 1));
            }
            result.add(o);
        }

        return result.toArray();
    }
public final Object[] getRows() throws SQLException {
        List<Object> result = new ArrayList<>();

        while (rows.size() > 0) {
            Object[] copy = rows.remove(0);
            Object o = createContainerObject();

            for (int i = 0; i < columnCount; ++i) {
                setObjectValue(o, names.get(i), copy[i]);
            }

            result.add(o);
        }

        while (resultSet.next()) {
            Object o = createContainerObject();
            for (int col = 0; col < columnCount; ++col) {
                setObjectValue(o, names.get(col), resultSet.getObject(col + 1));
            }
            result.add(o);
        }

        return result.toArray();
    }
Generates an array which represents the whole {@code ResultSet}.
Each element equates to one row in the {@code ResultSet}.
The elements have public fields with the same name as the {@code ResultSet} columns.
The {@link ScientificDouble} class is automatically used.
They can be read them using reflections.

@return array of dynamic objects
@throws SQLException thrown, if the {@code ResultSet} throws an Exception