use of org.springframework.jdbc.core.ColumnMapRowMapper in project camel by apache.
the class DrillEndpoint method queryForList.
public List<?> queryForList(ResultSet rs) throws SQLException {
ColumnMapRowMapper rowMapper = new ColumnMapRowMapper();
RowMapperResultSetExtractor<Map<String, Object>> mapper = new RowMapperResultSetExtractor<Map<String, Object>>(rowMapper);
List<Map<String, Object>> data = mapper.extractData(rs);
return data;
}
Aggregations