oracle.jdeveloper.cm
Class JndiConnectionWrapper
java.lang.Object
|
+--oracle.jdeveloper.cm.AbstractConnectionWrapper
|
+--oracle.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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
.
- Overrides:
getPresentation
in class AbstractConnectionWrapper
- Returns:
- the
SessionCtx
object associated with this
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
- Overrides:
containsPresentation
in class AbstractConnectionWrapper
closeConnection
public void closeConnection()
- Description copied from interface:
ConnectionWrapper
- Closes all presentations owned by this
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.
- Overrides:
testPresentation
in class AbstractConnectionWrapper
- Following copied from interface:
oracle.jdeveloper.cm.ConnectionWrapper
- Parameters:
connType
- The connection type constants as defined in the
ConnectionDescriptor
class.- Throws:
CMException
-