Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.ide.db.panels.sql.tester
Class SQLQueryTester

java.lang.Object
  extended by oracle.ide.db.panels.sql.tester.SQLQueryTester

public class SQLQueryTester
extends java.lang.Object

Utility that pops up a dialog for testing a sql query. The query checked against a chosen database connection, and optional components are registered for offering "Explain Plan" and "Results" tabs as well.

Since:
11.1.1.2.0

Constructor Summary
SQLQueryTester(Database db)
           
 
Method Summary
static void registerComponent(java.lang.Class<? extends TesterComponent> clz)
          Registers a TestComponent to appear in its own tab in the SQLQueryTester's dialog.
 void setSQLText(java.lang.String txt)
          Changes the query that is being tested in the current dialog
 void showDialog(java.awt.Component owner, java.lang.String sqlText)
          Shows the tester dialog with the given owner component, to test the given query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLQueryTester

public SQLQueryTester(Database db)
Method Detail

showDialog

public void showDialog(java.awt.Component owner,
                       java.lang.String sqlText)
Shows the tester dialog with the given owner component, to test the given query.

Parameters:
owner - the component (e.g. Button) that is firing the tester
sqlText - the query to test

setSQLText

public void setSQLText(java.lang.String txt)
Changes the query that is being tested in the current dialog

Parameters:
txt - the new query text

registerComponent

public static void registerComponent(java.lang.Class<? extends TesterComponent> clz)
Registers a TestComponent to appear in its own tab in the SQLQueryTester's dialog.

Parameters:
clz - the TesterComponent subclass to add to the tester dialog

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.