|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jdeveloper.db.DatabaseConnectionEditor
public final class DatabaseConnectionEditor
Launcher for the database connection editor. Call editConnection() to launch the dialog for editing connections, optionally specifying the name of the connection to initially select in the editor.
For full control over the editor, call createLauncher()
to get a launcher which can then be customised before launching the actual dialog.
Use AppDatabaseConnectionEditor
to create/edit an application's connections
Nested Class Summary | |
---|---|
static interface |
DatabaseConnectionEditor.ConnectionEditor Interface used to delegate the launching of the connection editor to. |
Method Summary | |
---|---|
static DatabaseConnectionEditorLauncher |
createLauncher() Creates a new launcher for the database connection create/edit dialog. |
static ConnectionInfo |
editConnection(ConnectionInfo info, boolean allowAllStores) Launches the connection editor. |
static java.lang.String |
editConnection(java.lang.String connName) Deprecated. use editConnection(String,String) |
static java.lang.String |
editConnection(java.lang.String storeName, java.lang.String connName) Launches the connection editor. |
static java.lang.String |
editConnection(java.lang.String storeName, java.lang.String connName, boolean allowAllStores) Launches the connection editor. |
static void |
setEditor(java.lang.Class<? extends DatabaseConnectionEditor.ConnectionEditor> ed) Deprecated. - use setLauncher(java.lang.Class extends oracle.jdeveloper.db.DatabaseConnectionEditorLauncher>
) , the new launcher class is more powerful as it can return the chosen store and connection name together, and is also more flexible for change (abstract class rather than an interface). |
static void |
setLauncher(java.lang.Class<? extends DatabaseConnectionEditorLauncher> clz) Deprecated. use extension.xml hook (see above). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
@Deprecated
public static void setEditor(java.lang.Class<? extends DatabaseConnectionEditor.ConnectionEditor> ed)
setLauncher(java.lang.Class extends oracle.jdeveloper.db.DatabaseConnectionEditorLauncher>
)
, the new launcher class is more powerful as it can return the chosen store and connection name together, and is also more flexible for change (abstract class rather than an interface).
@Deprecated
public static void setLauncher(java.lang.Class<? extends DatabaseConnectionEditorLauncher> clz)
This method has been deprecated in favour of the following extension.xml hook:
<database-connection-hook xmlns="http://xmlns.oracle.com/ide/db/extension"> <connection-editor-launcher>com.example.MyEditLauncher</connection-editor-launcher> </database-connection-hook>
clz
-public static DatabaseConnectionEditorLauncher createLauncher()
@Deprecated
public static java.lang.String editConnection(java.lang.String connName)
editConnection(String,String)
connName
- name of the connection to edit, or null to prompt the user to create a new connection.public static java.lang.String editConnection(java.lang.String storeName, java.lang.String connName)
AppDatabaseConnectionEditor
to create/edit an application's connectionsstoreName
- the store of connections the connection will be edited in. If null, the store will be worked out from the context, but then there is the potential for the store to be unknown for a created connection as only the name is returned.connName
- name of the connection to edit, or null to prompt the user to create a new connection.public static java.lang.String editConnection(java.lang.String storeName, java.lang.String connName, boolean allowAllStores)
storeName
- the store of connections the connection will be edited in.connName
- name of the connection to edit, or null to prompt the user to create a new connection.allowAllStores
- used for features that are centric to the database navigator and not application based. if true the user gets a choice of all available connection stores.public static ConnectionInfo editConnection(ConnectionInfo info, boolean allowAllStores)
info
- store/conection name of the connection to edit, or null to prompt the user to create a new connection. The info can have a store but no name to default the creation to a specific store.allowAllStores
- used for features that are centric to the database navigator and not application based. if true the user gets a choice of all available connection stores.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |