Extension SDK

oracle.jdeveloper.cm.dt
Class ConnectionCacheManager

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

public final class ConnectionCacheManager
extends java.lang.Object

The ConnectionCacheManager class is responsible for maintaining a designtime cache of connections obtained from the ConnectionManager


Method Summary
 void closeConnection(java.lang.String connectionName)
          Closes a ConnectionWrapper and removes it from the cache
 ConnectionWrapper getConnection(java.lang.String connectionName)
          Returns a Cached ConnectionWrapper for connectionName
static ConnectionCacheManager getInstance()
          Gets an instance of this Singleton class.
 int releaseConnection(java.lang.String connectionName)
          Releases a ConnectionWrapper
 void shutdown()
          Shuts down the Cached Connection Manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConnectionCacheManager getInstance()
Gets an instance of this Singleton class.


getConnection

public ConnectionWrapper getConnection(java.lang.String connectionName)
                                throws java.io.IOException,
                                       CMException
Returns a Cached ConnectionWrapper for connectionName

Throws:
java.io.IOException
CMException

releaseConnection

public int releaseConnection(java.lang.String connectionName)
Releases a ConnectionWrapper


closeConnection

public void closeConnection(java.lang.String connectionName)
Closes a ConnectionWrapper and removes it from the cache


shutdown

public void shutdown()
Shuts down the Cached Connection Manager. This method will close all currently open ConnectionWrappers


Extension SDK

 

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