public class AppDatabaseConnections
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
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 | 
copyConnectionBetweenStores(java.lang.String sourceStore,
                           java.lang.String targetStore,
                           java.lang.String connName,
                           java.lang.String newName)
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)
Deprecated. 
 
 | 
static void | 
copyToApplicationResources(java.lang.String storeName,
                          java.lang.String connName,
                          java.lang.String newName,
                          Context ideContext)
Utility method to copy the given named connection  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)
Deprecated. 
 
 | 
static boolean | 
ensureInApplicationResources(java.lang.String storeName,
                            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)
Deprecated. 
 
 | 
static java.lang.String | 
getConnectionStoreName(Workspace w)
Gets the connection store name for the given Application (Workspace). 
 | 
static DatabaseConnections | 
getCurrentDatabaseConnections(Context ideContext)
Deprecated. 
 
 | 
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. 
 | 
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 storeName,
                              java.lang.String connName,
                              java.lang.String newName,
                              Context ideContext)
                                       throws ConnectionException
storeName - the name of the connection store the connection is to
 be copied fromconnName - 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,String,Context)@Deprecated
public static void copyToApplicationResources(java.lang.String connName,
                                         java.lang.String newName,
                                         Context ideContext)
                                       throws ConnectionException
copyToApplicationResources(String,String,String,Context)ConnectionExceptionpublic 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 storeConnectionExceptionpublic static void copyConnectionBetweenStores(java.lang.String sourceStore,
                               java.lang.String targetStore,
                               java.lang.String connName,
                               java.lang.String newName)
                                        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 storenewName - the name to give the connection in the target store
 (can be null to keep the same name).ConnectionExceptionpublic static boolean ensureInApplicationResources(java.lang.String connName,
                                   Context ideContext)
connName - the connection nameideContext - the current Ide ConextcopyToApplicationResources(String,Context)@Deprecated
public static boolean ensureInApplicationResources(java.lang.String connName,
                                              java.lang.String newName,
                                              Context ideContext)
ensureInApplicationResources(String,String,String,Context)public static boolean ensureInApplicationResources(java.lang.String storeName,
                                   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
 DatabaseConnectionStorespublic static java.lang.String getConnectionStoreName(Workspace w)
DatabaseConnections from the
 DatabaseConnectionStores@Deprecated public static java.lang.String getConnectionStoreName(java.net.URL appURL)
getConnectionStoreName(Workspace)public static Workspace getWorkspace(java.lang.String storeName)