|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jdeveloper.db.AppDatabaseConnections
public class AppDatabaseConnections
Extension to the DatabaseConnections API that gets the database connections defined for an Application (Workspace).
Method Summary | |
---|---|
static boolean |
canCopyToApplicationResources(java.lang.String connName, Context ideContext) Checks to see whether a copyToApplicationResources operation will succeed or not. |
static void |
copyConnectionBetweenStores(java.lang.String sourceStore, java.lang.String targetStore, java.lang.String connName) Copies the given connection between two different connection stores. |
static void |
copyToApplicationResources(java.lang.String connName, Context ideContext) Utility method to copy the given named connection from the Resource Palette's connections to the Application Resources for the Application (Workspace) in the given IDE context. |
static void |
copyToApplicationResources(java.lang.String connName, java.lang.String newName, Context ideContext) Utility method to copy the given named connection from the Resource Palette's connections to the Application Resources for the Application (Workspace) in the given IDE context. |
static boolean |
ensureInApplicationResources(java.lang.String connName, Context ideContext) Ensures that the connection is in Application Resources. |
static boolean |
ensureInApplicationResources(java.lang.String connName, java.lang.String newName, Context ideContext) Ensures that the connection is in Application Resources. |
static DatabaseConnections |
getAppDatabaseConnections() Creates a DatabaseConnections wrapper for the Application Connections in the Application (Workspace) found in the current IDE Context, which is retrieved using Context.newIdeContext() . |
static DatabaseConnections |
getAppDatabaseConnections(Context ideContext) Creates a DatabaseConnections wrapper for the Application Connections in the Application (Workspace) found in the given IDE Context. |
static DatabaseConnections |
getAppDatabaseConnections(Workspace ws) Creates a DatabaseConnections wrapper for the Application Connections in the Application (Workspace). |
static java.lang.String |
getConnectionStoreName(Context context) Gets the connection store name for the Application in the given Context. |
static java.lang.String |
getConnectionStoreName(java.net.URL appURL) Gets the connection store name for the given Application's URL. |
static java.lang.String |
getConnectionStoreName(Workspace w) Gets the connection store name for the given Application (Workspace). |
static DatabaseConnections |
getCurrentDatabaseConnections(Context ideContext) Deprecated. use DatabaseConnectionStores.getCurrentStore(oracle.ide.Context) |
static Workspace |
getWorkspace(Context context) Gets the current workspace/application for the given Context. |
static Workspace |
getWorkspace(java.lang.String storeName) Returns the Workspace for the given store name, if the store name is that of an Application resources store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Workspace getWorkspace(Context context)
public static DatabaseConnections getAppDatabaseConnections()
Context.newIdeContext()
.getAppDatabaseConnections(oracle.ide.Context)
public static DatabaseConnections getAppDatabaseConnections(Context ideContext)
ideContext
- contains the Application (Workspace) that's home to the connectionspublic static DatabaseConnections getAppDatabaseConnections(Workspace ws)
ws
- the Application (Workspace) that's home to the connections
@Deprecated
public static DatabaseConnections getCurrentDatabaseConnections(Context ideContext)
DatabaseConnectionStores.getCurrentStore(oracle.ide.Context)
ideContext
- the current IDE contextgetAppDatabaseConnections(oracle.ide.Context)
, DatabaseConnections.getInstance()
public static void copyToApplicationResources(java.lang.String connName, Context ideContext) throws ConnectionException
connName
- the name of the connection to copyideContext
- the context containing the application to copy the connection to.ConnectionException
- if the connection exists in both places, but has different properties, of if the connection cannot be found.ensureInApplicationResources(String,Context)
public static void copyToApplicationResources(java.lang.String connName, java.lang.String newName, Context ideContext) throws ConnectionException
connName
- the name of the connection to copynewName
- the name the connection is to have in the application resources (if null the connection isn't renamed).ideContext
- the context containing the application to copy the connection to.ConnectionException
- if the connection exists in both places, but has different properties, of if the connection cannot be found.ensureInApplicationResources(String,String,Context)
public static boolean canCopyToApplicationResources(java.lang.String connName, Context ideContext)
copyToApplicationResources
operation will succeed or not. Succeed means one of two things:
connName
- the connection to be testedideContext
- the context containing the ApplicationcopyToApplicationResources(String,Context)
public static void copyConnectionBetweenStores(java.lang.String sourceStore, java.lang.String targetStore, java.lang.String connName) throws ConnectionException
sourceStore
- the name of the source connection storetargetStore
- the name of the target connection storeconnName
- the connection to copy from source store to target storeConnectionException
public static boolean ensureInApplicationResources(java.lang.String connName, Context ideContext)
connName
- the connection nameideContext
- the current Ide ConextcopyToApplicationResources(String,Context)
public static boolean ensureInApplicationResources(java.lang.String connName, java.lang.String newName, Context ideContext)
connName
- the connection namenewName
- the connection's new name for the application resources.ideContext
- the current Ide Conext#copyToApplicationResources(String.String,Context)
public static java.lang.String getConnectionStoreName(Context context)
DatabaseConnections
from the DatabaseConnectionStores
public static java.lang.String getConnectionStoreName(Workspace w)
DatabaseConnections
from the DatabaseConnectionStores
public static java.lang.String getConnectionStoreName(java.net.URL appURL)
DatabaseConnections
from the DatabaseConnectionStores
public static Workspace getWorkspace(java.lang.String storeName)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |