DevPortal

How do I use Query Tables?


Table of Contents


How do I use Query Tables?

The query name is used to map the finder methods when entity beans are defined or deployed. To add tables from the Available tables list, click the >> button. To delete tables from the Selected tables list, click the << button.

How do I specify Output Fields?

When you click Next after selecting the tables, a screen is displayed for specifying the output fields.

Select the mode as either Distinct or All, and modify the Variable Name using the editable field. Click Next.

How do I use Search Criteria?

The Specify search criteria panel is used to create a search criterion for a query.

Note: This is the first screen in the Query Wizard when it is invoked using Bean Wizard. The table and resource to be used is already selected.

Click Prev to modify the following settings:

Specify an operator and add the defined search criterion to the WHERE clause table by clicking Add. When you add more than one clause, the first column in the displays an and/or toggle text. Click this text to join all the clauses.

To delete a search criterion, click Delete.

If the query contains a parameter that is provided at run time, the Query Results tab will not display the results.

How do I use Output Fields and Sorted Query Results?

This panel displays the options for selecting the output fields and the sorting order for the query results.

This screen provides the following options:

How do I view generated Queries?

Click Finish to generate the query.

How do I modify SQL Queries?

Return to the screen where you defined the query by clicking Prev and modify the query as required.


Related Topics:

© Pramati Technologies 2007 Runs on Pramati Server | Feedback | Legal