public class ExecuteQuery extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
ExecuteQuery.Viewer
A simple interface for an object that will display a Record resource.
|
Modifier and Type | Field and Description |
---|---|
(package private) static CqRowData[] |
g_cell
The result set made accessible to the GUI components for display
|
(package private) static String[] |
g_columns
The column headings made accessible to the GUI components for display
|
Constructor and Description |
---|
ExecuteQuery() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
The main program for the ExecuteQuery example.
|
(package private) static void |
run(String title,
CqProvider provider,
ExecuteQuery.Viewer viewer)
Asks the user to select a database and a query in that database and then
executes the query, displaying the results in a table.
|
(package private) static <U extends com.ibm.rational.wvcm.stp.StpResource> |
setUserFriendlyLocation(javax.wvcm.ResourceList<U> list) |
(package private) static void |
showResults(String title,
ExecuteQuery.Viewer viewer)
Displays the result set (in g_cell) in a table.
|
static CqRowData[] g_cell
static String[] g_columns
public ExecuteQuery()
static void run(String title, CqProvider provider, ExecuteQuery.Viewer viewer) throws javax.wvcm.WvcmException
title
- The title string used in the initial dialogprovider
- A javax.wvcm provider for accessing ClearQuestviewer
- A Viewer instance for displaying an individual row of the
results set. May be null.javax.wvcm.WvcmException
static void showResults(String title, ExecuteQuery.Viewer viewer)
title
- The title string for the result set windowviewer
- A Viewer instance to be used for a detailed display of a
single resource of the result set. May be null, in which case
the option to display a single resource is not presented.static <U extends com.ibm.rational.wvcm.stp.StpResource> javax.wvcm.ResourceList<U> setUserFriendlyLocation(javax.wvcm.ResourceList<U> list) throws javax.wvcm.WvcmException
javax.wvcm.WvcmException
public static void main(String[] args) throws Exception
args
- Not used.Exception
- If a provider cannot be instantiated.Copyright © IBM 2017. All rights reserved.