|
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.AppDatabaseConnectionEditor
public class AppDatabaseConnectionEditor
Launcher for the database connection editor on an application's connections. Call the editConnection methods to launch the dialog for editing connections, optionally specifying the name of the connection to initially select in the editor. This is different to DatabaseConnectionEditor
because it includes the Context and understands Applications.
To create a custom launcher on which defaults can be changed, use DatabaseConnectionEditor.createLauncher()
Method Summary | |
---|---|
static DatabaseConnectionEditorLauncher |
createLauncher(Context context) Creates a new launcher for creating/editing connections that, by default, will only create connections in the current application. |
static java.lang.String |
editConnection(java.lang.String connName) Launches the connection editor to create or edit a connection in the current application. |
static java.lang.String |
editConnection(java.lang.String connName, Context context) Launches the connection editor to create or edit a connection in the current application |
static java.lang.String |
editConnection(java.lang.String connName, Context context, boolean forceStore) Launches the connection editor to create/edit a connection in the current application. |
static java.lang.String |
editConnection(java.lang.String connName, Context context, Connections conns) Deprecated. - use DatabaseConnectionEditor#createLauncher and customise |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DatabaseConnectionEditorLauncher createLauncher(Context context)
context
- the IDE context containing the applicationjava.lang.IllegalStateException
- if the given context contains no application.public static java.lang.String editConnection(java.lang.String connName)
connName
- the name of the connection to edit, or null to create a new connection.public static java.lang.String editConnection(java.lang.String connName, Context context)
connName
- the name of the connection to edit, or null to create a new connection.context
- the IDE Context to use to determine the application (Workspace)public static java.lang.String editConnection(java.lang.String connName, Context context, boolean forceStore)
context
- the IDE Context to use to determine the application (Workspace)forceStore
- whether to force the user to create a new connection in the current connection store only (e.g. restrict to only create in app resources. If this is false care should be taken interpreting the returned new connection name.
@Deprecated
public static java.lang.String editConnection(java.lang.String connName,
Context context,
Connections conns)
#launchEditor(String,Context,Connections)
on an editor instance.editConnection(String,Context)
|
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 |