6.6.3 Querying a Java Object Data Source
Once a data source is defined, the data source can be used to create object queries. The query-building process is identical to the process for XML queries; the output of the Java object is mapped to hierarchical meta-data, which can be selected and filtered using the same mechanism as for other hierarchical data sources.
A query based on the object data source is executed in the following sequence:
1. A Data Loader object is instantiated if none have been created yet.
2. The request method is invoked with the parameter values either from the data source definition or as were input by the user.
3. The collection of object return values is parsed into an object tree based on introspection.
4. Any user defined filtering and selection in the query is applied to produce the final result set.
To define a query on the object data source that you just created, follow the steps below:

1. Click on the 'New Query' button to create a new query.
2. Type in “Employee” as the name of the query. Select 'object' as the data source. Click 'OK'.

3. Add the 'getEmployee' request and click 'Next'.

4. Add 'Manager.Name', 'Manager.Salary', 'Manager.StartDate', 'Address.City', and 'Address.State' to the Report Fields list. Click 'Finish'.


5. Click the 'Save' button to save the query.
See Also
Java Object Data Source, for information on how to configure a Java Object data source.
| << 6.6.2 Querying a Text Data Source | © 1996-2013 InetSoft Technology Corporation (v11.5) | 6.6.4 Advanced Query Concepts >> |