Extension SDK 9.0.5

oracle.jdeveloper.cm.dt
Class ConnectionsProvider

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

public final class ConnectionsProvider
extends java.lang.Object

The Connections class is the folder responsible maintaining the database connections. This is a singleton class.


Constructor Summary
ConnectionsProvider()
          Constructor.
 
Method Summary
 void addConnection(ConnectionDescriptor connDesc)
          Added a named connection to the Navigator
 void addConnection(java.lang.String connName)
          Added a named connection to the Navigator
 void addConnection(java.lang.String connName, boolean notifyObs)
          Added a named connection to the Navigator
 ConnectionNode getConnectionNode(java.lang.String connName)
          Gets the ConnectionNode for a given connection name
static ConnectionsProvider getInstance()
          The Connections folder is a singleton class.
 void loadConnections()
          Addin authors should not call this method.
 void registerConnectionClass(java.lang.String cClass, BaseConnections node)
           
 void removeConnection(ConnectionDescriptor connDesc)
          Removes a named connection to the Navigator
 void removeConnection(java.lang.String connName)
          Removes a named connection to the Navigator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionsProvider

public ConnectionsProvider()
                    throws SingletonClassException
Constructor.

Throws:
SingletonClassException - thrown when this class is instantiated more than once.
Method Detail

getInstance

public static ConnectionsProvider getInstance()
The Connections folder is a singleton class. This method gets this folder's single instance.

Returns:
the Connections folder single instance.

addConnection

public void addConnection(java.lang.String connName)
Added a named connection to the Navigator


addConnection

public void addConnection(java.lang.String connName,
                          boolean notifyObs)
Added a named connection to the Navigator


addConnection

public void addConnection(ConnectionDescriptor connDesc)
Added a named connection to the Navigator


removeConnection

public void removeConnection(java.lang.String connName)
Removes a named connection to the Navigator


removeConnection

public void removeConnection(ConnectionDescriptor connDesc)
Removes a named connection to the Navigator


loadConnections

public void loadConnections()
Addin authors should not call this method. It is for internal use only.


getConnectionNode

public ConnectionNode getConnectionNode(java.lang.String connName)
Gets the ConnectionNode for a given connection name

Note: this will open the connection node if it is not already opened.


registerConnectionClass

public void registerConnectionClass(java.lang.String cClass,
                                    BaseConnections node)

Extension SDK

 

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