Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


oracle.jdeveloper.db.adapter
Class DatabaseContextManager

java.lang.Object
  extended by oracle.jdeveloper.db.adapter.DatabaseContextManager


public class DatabaseContextManager
extends java.lang.Object

Central point that controls the JNDI Context used for database connections. Calling getDatabaseContext() will return null if the context wrapper hasn't been set yet - usually needs all addins to load.


Nested Class Summary
static interface DatabaseContextManager.ContextWrapper
           

 

Method Summary
static DatabaseContextManager.ContextWrapper getContextWrapper()
          Returns the current context wrapper.
static javax.naming.Context getDatabaseContext()
          Returns the JNDI Context that contains the database connections in the current session.
static void setContextWrapper(DatabaseContextManager.ContextWrapper cw)
          Sets which naming Context we should be using to look for database connections in.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getDatabaseContext

public static javax.naming.Context getDatabaseContext()
Returns the JNDI Context that contains the database connections in the current session. Can return null if the context hasn't been set yet. Let all Addins load before calling this method.

setContextWrapper

public static void setContextWrapper(DatabaseContextManager.ContextWrapper cw)
Sets which naming Context we should be using to look for database connections in.

getContextWrapper

public static DatabaseContextManager.ContextWrapper getContextWrapper()
Returns the current context wrapper. Can return null if the context hasn't been set yet. Let all Addins load before calling this method.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


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