@Test public void testResultSetAdapter() throws SQLException { List<Map<String, Object>> actual; try (ResultSetAdapter adapter = new ResultSetAdapter(new TestResultSet())) { actual = adapter.stream().collect(Collectors.toList()); } assertEquals(expected, actual); }
public ResultSetAdapter(ResultSet resultSet) { if (resultSet == null) { throw new IllegalArgumentException(); } this.resultSet = resultSet; }
ResultSetAdapter implements Iterable<Map<String, Object>>, AutoCloseable { public ResultSetAdapter(ResultSet resultSet) { if (resultSet == null) { throw new IllegalArgumentException(); } this.resultSet = resultSet; } }
ResultSetAdapter implements Iterable<Map<String, Object>>, AutoCloseable { public ResultSetAdapter(ResultSet resultSet) { if (resultSet == null) { throw new IllegalArgumentException(); } this.resultSet = resultSet; } ResultSetAdapter(ResultSet resultSet); }
ResultSetAdapter implements Iterable<Map<String, Object>>, AutoCloseable { public ResultSetAdapter(ResultSet resultSet) { if (resultSet == null) { throw new IllegalArgumentException(); } this.resultSet = resultSet; } ResultSetAdapter(ResultSet resultSet); int getFetchSize(); void setFetchSize(int fetchSize); Map<String, Object> next(); @Override Iterator<Map<String, Object>> iterator(); @Override void close(); Stream<Map<String, Object>> stream(); }
ResultSetAdapter implements Iterable<Map<String, Object>>, AutoCloseable { public ResultSetAdapter(ResultSet resultSet) { if (resultSet == null) { throw new IllegalArgumentException(); } this.resultSet = resultSet; } ResultSetAdapter(ResultSet resultSet); int getFetchSize(); void setFetchSize(int fetchSize); Map<String, Object> next(); @Override Iterator<Map<String, Object>> iterator(); @Override void close(); Stream<Map<String, Object>> stream();  }