setResult(data) - JDO Query's method

void setResult(
  String data

Specifies what type of data this query should return. If this is unset or set to null, this query returns instances of the query's candidate class. If set, this query will return expressions, including field values (projections) and aggregate function results.
data - a comma-delimited list of expressions (fields, functions on fields, or aggregate functions) to return from this query
JDO 2.0

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.