Skip Headers
Oracle® Application Server TopLink Application Developer's Guide
10g Release 2 (10.1.2)
Part No. B15901-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
 

Query Results

Queries can return different types of data, including:

Queries can also return EJBs in systems that use EJB finders.

For more information, see "EJB Finders".

Objects

OracleAS TopLink queries generally return Java objects as their result set. OracleAS TopLink queries can return:

Collections

A collection is a group of Java objects related by a collection class that implements a Collection or Map interface. By default, ReadAll queries return results in a vector, but you can acquire the results in any collection class that implements the Collection or Map interface.

For more information on implementing Collection or Map interfaces, see the Oracle Application Server TopLink Mapping Workbench User's Guide.

Java Streams

A stream is a view of a collection, which can be a file, a device, or aVector. A stream provides access to the collection, one element at a time in sequence. This makes it possible to implement stream classes in which the stream does not contain all the objects of a collection at the same time.

When a query is likely to generate a large result set, you can implement streams to improve performance.

For more information about streams, including advanced usage, see "Cursors and Streams".

Report Query Results

Report query provides you with a way to access information or data from a set of objects and their related objects. Report query supports database reporting functions and features. Although the report query returns data (not objects), it does enable you to query the returned data and specify it at the object level.

For more information, see "ReportQuery".