Oracle® Application Server TopLink Application Developer's Guide
10g Release 2 (10.1.2) Part No. B15901-01 |
|
Previous |
Next |
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".
OracleAS TopLink queries generally return Java objects as their result set. OracleAS TopLink queries can return:
Entire objects, with data and methods intact
Partial objects (see "Partial Attribute Reading")
Vectors of objects
Collections of objects (see "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.
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 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".