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

E13403-05

oracle.jdeveloper.db
Class DatabaseConnectionEditorLauncher

java.lang.Object
  extended by oracle.jdeveloper.db.DatabaseConnectionEditorLauncher
All Implemented Interfaces:
DatabaseConnectionEditor.ConnectionEditor

public abstract class DatabaseConnectionEditorLauncher
extends java.lang.Object
implements DatabaseConnectionEditor.ConnectionEditor

Class for launching a Database Connection Editor. Used as a delegate by the DatabaseConnectionEditor. If used directly, various defaults can be set by the caller such a default values for connection properties, and the IDE context for determining the connection store.

Since:
11

Nested Class Summary
static class DatabaseConnectionEditorLauncher.StoreChoice
          This governs what choice the user has over where new connections are created from the create connection dialog.
 
Constructor Summary
DatabaseConnectionEditorLauncher()
           
 
Method Summary
protected  java.lang.String getConnectionBaseName()
          Gets the base name for any connection created by this editor.
protected  Context getContext()
           
protected  java.util.Properties getDefaultProperties()
          Gets the default Properties for any connection created by this editor.
protected  DatabaseConnectionEditorLauncher.StoreChoice getStoreChoice()
           
abstract  ConnectionInfo launchEditor(DatabaseConnections conns, java.lang.String connName)
          Launches the connection editor.
 java.lang.String launchEditor(java.lang.String connName)
          Launch the connection editor.
 java.lang.String launchEditor(java.lang.String storeName, java.lang.String connName)
          Launch the connection editor on a particular connection store.
 void setConnectionBaseName(java.lang.String baseName)
          Sets the base name for any connection created by this editor.
 void setContext(Context context)
           
 void setDefautProperties(java.util.Properties props)
          Sets the default Properties for any connection created by this editor.
 void setStoreChoice(DatabaseConnectionEditorLauncher.StoreChoice choice)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseConnectionEditorLauncher

public DatabaseConnectionEditorLauncher()
Method Detail

setStoreChoice

public final void setStoreChoice(DatabaseConnectionEditorLauncher.StoreChoice choice)

getStoreChoice

protected final DatabaseConnectionEditorLauncher.StoreChoice getStoreChoice()

setContext

public final void setContext(Context context)

getContext

protected Context getContext()

setDefautProperties

public final void setDefautProperties(java.util.Properties props)
Sets the default Properties for any connection created by this editor.


getDefaultProperties

protected final java.util.Properties getDefaultProperties()
Gets the default Properties for any connection created by this editor.


setConnectionBaseName

public final void setConnectionBaseName(java.lang.String baseName)
Sets the base name for any connection created by this editor.


getConnectionBaseName

protected java.lang.String getConnectionBaseName()
Gets the base name for any connection created by this editor.


launchEditor

public final java.lang.String launchEditor(java.lang.String connName)
Description copied from interface: DatabaseConnectionEditor.ConnectionEditor
Launch the connection editor. The store will be worked out from the Context, or an option given to the user for create.

Specified by:
launchEditor in interface DatabaseConnectionEditor.ConnectionEditor

launchEditor

public final java.lang.String launchEditor(java.lang.String storeName,
                                           java.lang.String connName)
Description copied from interface: DatabaseConnectionEditor.ConnectionEditor
Launch the connection editor on a particular connection store.

Specified by:
launchEditor in interface DatabaseConnectionEditor.ConnectionEditor

launchEditor

public abstract ConnectionInfo launchEditor(DatabaseConnections conns,
                                            java.lang.String connName)
Launches the connection editor. A ConnectionInfo is returned to contain both the connection name and the store name for the created or edited connection.

Parameters:
connName - the name of the connection to edit (or null to create a new connection).
conns - the connection store that the connection is in, or that is the default for the new connection. If null the IDE context will be used to determine the default store.
Returns:
the information about the edited, or newly created connection, or null if the dialog was cancelled.

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

E13403-05

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