About this task
A
query specifies criteria for fetching data from the database. You
can create and run a query to fetch data from the Rational® ClearQuest® database according to the search
criteria that you provide in the query.
Procedure
To build a query, follow these steps:
- Build a query (QueryDef) to specify what data you want.
The QueryDef object contains the definition of a query for a Rational ClearQuest database.
After a QueryDef is created, you can use it to get information from
the database.
- Create a result set (ResultSet object) to hold the data.
- Execute the query, which populates a result set with the
data it fetches from the database.
- Move through the ResultSet object.
Results
Note: If you write a hook that operates only on the current
Entity object, you do not need to use a query.