org.eclipse.datatools.connectivity
Interface IConnectionFactory

All Known Subinterfaces:
IConnectionFactoryProvider, IOfflineConnectionFactory
All Known Implementing Classes:
org.eclipse.datatools.connectivity.sqm.internal.core.connection.ConnectionFactory, HSQLDBJDBCConnectionFactory, JDBCConnectionFactory, JDBCConnectionFactory, SQLITEJDBCConnectionFactory, SQMConnectionFactory

public interface IConnectionFactory

This interface is used for creating connections to connection profiles. This interface must be implemented by connection factory extensions.

Author:
rcernich Created on Jan 16, 2004

Method Summary
 IConnection createConnection(IConnectionProfile profile)
          This method creates a connection to a server based on the properties specified by the connection profile.
 IConnection createConnection(IConnectionProfile profile, java.lang.String uid, java.lang.String pwd)
          This method creates a connection to a server based on the properties specified by the connection profile.
 

Method Detail

createConnection

IConnection createConnection(IConnectionProfile profile)
This method creates a connection to a server based on the properties specified by the connection profile. This method uses the user id and password specified in the profile.

Parameters:
profile - the profile to connect to.
Returns:
a connection if successful

createConnection

IConnection createConnection(IConnectionProfile profile,
                             java.lang.String uid,
                             java.lang.String pwd)
This method creates a connection to a server based on the properties specified by the connection profile. This method uses the user id and password specified in the method call.

Parameters:
profile - the profile to connect to.
uid - the user id to use
pwd - the password to use
Returns:
a connection if successful