Extension SDK

oracle.jdeveloper.cm.dt
Class CmUtil

java.lang.Object
  extended byoracle.jdeveloper.cm.dt.CmUtil

public final class CmUtil
extends java.lang.Object

Connection Manager DT Utilities

Since:
5.0.0.1.35

Field Summary
static java.lang.String CM_PROTOCOL
           
 
Method Summary
static java.net.URL argusStringToUrl(java.lang.String argusString, java.lang.String connName)
           
static java.lang.String getCatalog(java.net.URL url)
           
static java.lang.String getCatAndUser(java.lang.String catalog, java.lang.String userName)
          Retuns the string for username and catalog to be used in the URL if the catalog us null, it's just the username, otherwise it is catalog / username
static ConnectionNode getConnectionNode(Context ctx)
           
static ConnectionNode getConnectionNode(java.net.URL url)
          Gets the of the connection this URL references, or null if no ConnectionNode exists.
static java.lang.String getConnectionTypeForConnName(java.lang.String connName)
           
static java.lang.String getConnName(java.net.URL url)
          returns the name of the connection this URL references
static int getDbObjectType(java.net.URL url)
          returns the type of the database object this URL references
static java.net.URL getFolderURL(java.lang.String connName, java.lang.String catalog, java.lang.String userName, int dbFolderType)
          creates a URL for a given folder
static java.lang.String getName(java.net.URL url)
          returns the name of the database object this URL references
static java.net.URL getNodeURL(java.lang.String connName, java.lang.String catalog, java.lang.String userName, int dbFolderType, java.lang.String name)
          creates a URL for a given database object node
static java.lang.String getSchema(java.net.URL url)
           
static java.net.URL getSchemaURL(java.lang.String connName, java.lang.String catalog, java.lang.String userName)
          creates a URL for a given folder
static java.lang.String getUserName(java.net.URL url)
           
static boolean isCMUrl(java.net.URL url)
           
static boolean isFolder(java.net.URL url)
           
static void main(java.lang.String[] args)
           
static java.net.URL newCmURL(java.lang.String filePath)
           
static java.lang.String urlToArgusString(java.net.URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CM_PROTOCOL

public static final java.lang.String CM_PROTOCOL
See Also:
Constant Field Values
Method Detail

getCatAndUser

public static final java.lang.String getCatAndUser(java.lang.String catalog,
                                                   java.lang.String userName)
Retuns the string for username and catalog to be used in the URL if the catalog us null, it's just the username, otherwise it is catalog / username


getSchemaURL

public static final java.net.URL getSchemaURL(java.lang.String connName,
                                              java.lang.String catalog,
                                              java.lang.String userName)
creates a URL for a given folder


getFolderURL

public static final java.net.URL getFolderURL(java.lang.String connName,
                                              java.lang.String catalog,
                                              java.lang.String userName,
                                              int dbFolderType)
creates a URL for a given folder


getNodeURL

public static final java.net.URL getNodeURL(java.lang.String connName,
                                            java.lang.String catalog,
                                            java.lang.String userName,
                                            int dbFolderType,
                                            java.lang.String name)
creates a URL for a given database object node


getCatalog

public static final java.lang.String getCatalog(java.net.URL url)

getUserName

public static final java.lang.String getUserName(java.net.URL url)

getSchema

public static final java.lang.String getSchema(java.net.URL url)

getName

public static final java.lang.String getName(java.net.URL url)
returns the name of the database object this URL references


getConnName

public static final java.lang.String getConnName(java.net.URL url)
returns the name of the connection this URL references


getConnectionNode

public static final ConnectionNode getConnectionNode(java.net.URL url)
Gets the of the connection this URL references, or null if no ConnectionNode exists.


getConnectionNode

public static final ConnectionNode getConnectionNode(Context ctx)

getDbObjectType

public static final int getDbObjectType(java.net.URL url)
returns the type of the database object this URL references


isFolder

public static final boolean isFolder(java.net.URL url)

isCMUrl

public static final boolean isCMUrl(java.net.URL url)

newCmURL

public static final java.net.URL newCmURL(java.lang.String filePath)

argusStringToUrl

public static final java.net.URL argusStringToUrl(java.lang.String argusString,
                                                  java.lang.String connName)

urlToArgusString

public static final java.lang.String urlToArgusString(java.net.URL url)

getConnectionTypeForConnName

public static final java.lang.String getConnectionTypeForConnName(java.lang.String connName)

main

public static void main(java.lang.String[] args)

Extension SDK

 

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