Skip Headers
Oracle TopLink Developer's Guide
10g Release 3 (10.1.3)
B13593-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
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: