Extension SDK 10.1.2


oracle.jdeveloper.cm
Class AbstractConnectionWrapper

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

All Implemented Interfaces:
ConnectionWrapper
Direct Known Subclasses:
JdbcConnectionWrapper, JndiConnectionWrapper

public abstract class AbstractConnectionWrapper
extends java.lang.Object
implements ConnectionWrapper

AbstractConnectionWrapper is a generic object which implements part of the ConnectionWrapper. interface Classes implementing ConnectionWrapper may wish to extend this base instead of implementing ConnectionWrapper directly.

See Also:
ConnectionWrapper

Field Summary
protected java.util.ArrayList _connTypes
protected ConnectionDescriptor _descriptor
protected ConnectionManager _manager
protected ConnectInfoPrompter _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
ConnectionDescriptor getDescriptor()
java.lang.Object getPresentation(java.lang.String connType)
Returns the connection object for type connType.
java.util.Iterator getPresentationIterator()
Enumerates the types of connections supported by this wrapper Note: this method will return null if there are no supported connection types
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

Field Detail

_manager

protected ConnectionManager _manager

_descriptor

protected ConnectionDescriptor _descriptor

_prompter

protected ConnectInfoPrompter _prompter

_connTypes

protected java.util.ArrayList _connTypes

Method Detail

getDescriptor

public ConnectionDescriptor getDescriptor()
Specified by:
getDescriptor in interface ConnectionWrapper

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
Throws:
CMException - occurs if there is a problem creating the new 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

closeConnection

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

getPresentationIterator

public java.util.Iterator getPresentationIterator()
Enumerates the types of connections supported by this wrapper Note: this method will return null if there are no supported connection types
Specified by:
getPresentationIterator in interface ConnectionWrapper

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
Parameters:
connType - The connection type constants as defined in the ConnectionDescriptor class.
Throws:
CMException

Extension SDK


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