Extension SDK 10.1.2


oracle.jdeveloper.cm
Class JndiConnectionWrapper

java.lang.Object
  extended byoracle.jdeveloper.cm.AbstractConnectionWrapper
      extended byoracle.jdeveloper.cm.JndiConnectionWrapper

All Implemented Interfaces:
ConnectionWrapper

public class JndiConnectionWrapper
extends AbstractConnectionWrapper

JndiConnectionWrapper implements ConnectionWrapper and provides functionality for connecting to a JNDI Content

See Also:
ConnectionWrapper

Field Summary

Fields inherited from class oracle.jdeveloper.cm.AbstractConnectionWrapper
_connTypes, _descriptor, _manager, _prompter

Method Summary
void closeConnection()
Closes all presentations owned by this ConnectionWrapper
boolean containsPresentation(java.lang.String connType)
Checks to see if a given connection type is contained in this wrapper
javax.naming.Context getContext()
java.lang.Object getPresentation(java.lang.String connType)
Returns the connection object for type connType.
void testPresentation(java.lang.String connType)
Tests the given presentation, throws CMException on failure.

Methods inherited from class oracle.jdeveloper.cm.AbstractConnectionWrapper
getDescriptor, getPresentationIterator

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

Method Detail

getPresentation

public java.lang.Object getPresentation(java.lang.String connType)
                                 throws CMException
Description copied from interface: ConnectionWrapper
Returns the connection object for type connType.

connType is defined by constants in ConnectionDescriptor.

Specified by:
getPresentation in interface ConnectionWrapper
Overrides:
getPresentation in class AbstractConnectionWrapper
Returns:
the SessionCtx object associated with this connection.
Throws:
CMException - occurs if there is a problem creating the new connection.

getContext

public javax.naming.Context getContext()
Returns:
the Context object associated with this JNDI connection.

containsPresentation

public boolean containsPresentation(java.lang.String connType)
Description copied from interface: ConnectionWrapper
Checks to see if a given connection type is contained in this wrapper
Specified by:
containsPresentation in interface ConnectionWrapper
Overrides:
containsPresentation in class AbstractConnectionWrapper

closeConnection

public void closeConnection()
Description copied from interface: ConnectionWrapper
Closes all presentations owned by this ConnectionWrapper
Specified by:
closeConnection in interface ConnectionWrapper
Overrides:
closeConnection in class AbstractConnectionWrapper

testPresentation

public void testPresentation(java.lang.String connType)
                      throws CMException
Description copied from interface: ConnectionWrapper
Tests the given presentation, throws CMException on failure.
Specified by:
testPresentation in interface ConnectionWrapper
Overrides:
testPresentation in class AbstractConnectionWrapper
Throws:
CMException

Extension SDK


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