Extension SDK

oracle.jdeveloper.cm
Class JdbcConnectionFactory

java.lang.Object
  extended byoracle.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

Constructor Summary
JdbcConnectionFactory()
          no-arg construction which does nothing.
 
Method Summary
 ConnectionWrapper createConnection(ConnectionDescriptor descriptor, ConnectInfoPrompter prompter, ConnectionManager manager)
          returns a newly created JdbcConnectionWrapper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcConnectionFactory

public JdbcConnectionFactory()
no-arg construction which does nothing.

Method Detail

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

Extension SDK

 

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