@Override
	public Tuple mapRow(ResultSet rs, int rowNum) throws SQLException {
		int columnCount = rs.getMetaData().getColumnCount();

		TupleBuilder builder = TupleBuilder.tuple();

		for (int i = 1; i <= columnCount; i++) {
			builder.put(rs.getMetaData().getColumnName(i), JdbcUtils.getResultSetValue(rs, i));
		}

		return builder.build();
	}
A {@link RowMapper} implementation to be used with the {@link Tuple} data structure. The resulting Tuple consists of
the column names as the field names and the result of the {@link ResultSet#getObject(int)} as the value. The order of
the data will be the order they are returned in the ResultSet (column order).

@author Michael Minella
spring-xd-tuple/src/main/java/org/springframework/xd/tuple/batch/TupleRowMapper.java