Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.jdeveloper.db.panels
Class DatabaseFinder

java.lang.Object
  extended by oracle.ide.dialogs.ProgressRunnable
      extended by oracle.jdeveloper.db.panels.DatabaseFinder

All Implemented Interfaces:
java.lang.Runnable

public class DatabaseFinder
extends ProgressRunnable

Utility for a wizard or dialog to use to retrieve the Database for a connection. As the connection may not be instantaneous a progress bar is used.


Method Summary
protected  java.lang.Object doWork()
          The actually operation that should be performed by this ProgressRunnable.
static Database findDatabase(java.lang.String connString)
          Returns the Database class for the given connection name.
protected  void finish(java.lang.Object result)
          Called back on the original thread after the operation has completed or was canceled.

 

Methods inherited from class oracle.ide.dialogs.ProgressRunnable
doCancel, getMessage, getProgressShowDelay, getRunnerThread, getTitle, isCancelable, run, setCancelable, setMessage, setTitle, start

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

findDatabase

public static Database findDatabase(java.lang.String connString)
Returns the Database class for the given connection name. Will provide a progress bar as the Database initialisation may take time, and reports any errors to the user.
Parameters:
connString - the connection string - either a connection name or an encoded store and connection name together.

doWork

protected java.lang.Object doWork()
                           throws DBException
Description copied from class: ProgressRunnable
The actually operation that should be performed by this ProgressRunnable.
Specified by:
doWork in class ProgressRunnable
Returns:
the result of the work. This result will be passed into the finish method.
Throws:
DBException

finish

protected void finish(java.lang.Object result)
Description copied from class: ProgressRunnable
Called back on the original thread after the operation has completed or was canceled.
Overrides:
finish in class ProgressRunnable
Parameters:
result - the result of the operation, or null if the operation was cancelled.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


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