|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.cm.AbstractConnectionWrapper
oracle.jdeveloper.cm.JdbcConnectionWrapper
JdbcConnectionWrapper
is a wrapper object used by
ConnectionManager
and helps manage the use of shared
connections. This class implements the java.sql.Connection
interface, but delegates almost everything to the connection object
which it wraps.
Connection
,
ConnectionManager
,
ConnectionWrapper
Field Summary |
Fields inherited from class oracle.jdeveloper.cm.AbstractConnectionWrapper |
_connTypes, _descriptor, _manager, _prompter |
Constructor Summary | |
protected |
JdbcConnectionWrapper(ConnectionDescriptor descriptor,
ConnectInfoPrompter prompter,
ConnectionManager manager)
package access constructor. Only ConnectionManager should instantiate this class. |
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 |
protected java.sql.Connection |
createConnectionImpl(java.lang.String driverClass,
java.lang.String url,
java.util.Properties jdbcProps)
|
java.sql.Connection |
getJdbcConnection()
returns the wrapped object. |
java.lang.Object |
getPresentation(java.lang.String connType)
returns the wrapped object. |
Methods inherited from class oracle.jdeveloper.cm.AbstractConnectionWrapper |
getDescriptor, getPresentationIterator, testPresentation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected JdbcConnectionWrapper(ConnectionDescriptor descriptor, ConnectInfoPrompter prompter, ConnectionManager manager) throws CMException
ConnectionManager
should instantiate this class.
ConnectionWrapper
relies on the
ConnectionManager
knowing about it.
descriptor
- the ConnectionDescriptor
to use to
instantiate the connection.prompter
- a ConnectInfoPrompter
to use to get
the user connection information.manager
- the ConnectionManager
which is
responsible for managing this connection.
CMException
- occurs if there is a problem registering
and/or finding the JDBC driver specified in the descriptor.ConnectInfoPrompter
Method Detail |
protected java.sql.Connection createConnectionImpl(java.lang.String driverClass, java.lang.String url, java.util.Properties jdbcProps) throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.sql.SQLException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.sql.SQLException
public java.lang.Object getPresentation(java.lang.String connType) throws CMException
getPresentation
in interface ConnectionWrapper
getPresentation
in class AbstractConnectionWrapper
CMException
- occurs if there is a problem creating the
new connection.public java.sql.Connection getJdbcConnection() throws CMException
CMException
public void closeConnection()
ConnectionWrapper
ConnectionWrapper
closeConnection
in interface ConnectionWrapper
closeConnection
in class AbstractConnectionWrapper
public boolean containsPresentation(java.lang.String connType)
ConnectionWrapper
containsPresentation
in interface ConnectionWrapper
containsPresentation
in class AbstractConnectionWrapper
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.