Skip Headers

# Handling Report Query Results

Previous

Next

Table: Report Query Result Options lists the `ReportQuery` methods you can use to configure how a `ReportQuery` returns its results.

Report Query Result Options

Method | Query Returns | Description
--- | --- | ---
`setShouldReturnSingleAttribute` | `DatabaseRow` | Returns a single attribute (not wrapped in a `ReportQueryResult`). Use this option if you know that the `ReportQuery` returns only one attribute.
`setShouldReturnSingleResult` | `ReportQueryResult` | Returns only the first `ReportQueryResult` object (not wrapped in a `Collection` or `Map`). Use this option if you know that the `ReportQuery` returns only one row.
`setShouldReturnSingleValue` | Object | Returns only a single value. Use this option if you know that the `ReportQuery` returns only one row that contains only one attribute.

For more information, see the following:

- "Report Query"

- "Report Query Results"

- "Reading Objects Using Report Queries"

- "Configuring Named Query Attributes"