oracle.jdeveloper.cm
Class JdbcConnectionFactory
java.lang.Object
oracle.jdeveloper.cm.JdbcConnectionFactory
- All Implemented Interfaces:
- ConnectionFactory
- public class JdbcConnectionFactory
- extends java.lang.Object
- implements ConnectionFactory
JdbcConnectionFactory
is a simple class which implements the ConnectionFactory
interface. The implementation of createConnection
simply returns a new JdbcConnectionWrapper
.
- See Also:
ConnectionFactory
, JdbcConnectionWrapper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbcConnectionFactory
public JdbcConnectionFactory()
- no-arg construction which does nothing.
createConnection
public ConnectionWrapper createConnection(ConnectionDescriptor descriptor,
ConnectInfoPrompter prompter,
ConnectionManager manager)
throws CMException
- returns a newly created
JdbcConnectionWrapper
.
-
- Specified by:
createConnection
in interface ConnectionFactory
-
- Parameters:
descriptor
- the ConnectionDescriptor
which defines the connection properties.
prompter
- a ConnectInfoPrompter
to use to get the user connection information.
manager
- the ConnectionManager
responsible for managing the lifecycle of the returned ConnectionWrapper
.
- Returns:
- a
JdbcConnectionWrapper
based on the passed-in ConnectionDescriptor
.
- Throws:
CMException
- is thrown if something goes wrong during the connection creation process.
- See Also:
ConnectInfoPrompter
Copyright © 1997, 2004, Oracle. All rights reserved.