Skip Headers

Oracle TopLink Developer's Guide 10g Release 3 (10.1.3) B13593-01 |
| Home | Solution Area | Contents | Index

Previous | Next |

# Handling Report Query Results

Table 98-2 lists the `ReportQuery` methods you can use to configure how a `ReportQuery` returns its results.

Table 98-2 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"