org.eclipse.datatools.enablement.ibm.db2.internal.luw
Class JDBCLUWConnectionFactory

java.lang.Object
  extended by org.eclipse.datatools.enablement.ibm.db2.internal.luw.JDBCLUWConnectionFactory
All Implemented Interfaces:
IConnectionFactory

public class JDBCLUWConnectionFactory
extends java.lang.Object
implements IConnectionFactory


Constructor Summary
JDBCLUWConnectionFactory()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCLUWConnectionFactory

public JDBCLUWConnectionFactory()
Method Detail

createConnection

public IConnection createConnection(IConnectionProfile profile)
Description copied from interface: IConnectionFactory
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.

Specified by:
createConnection in interface IConnectionFactory
Parameters:
profile - the profile to connect to.
Returns:
a connection if successful

createConnection

public IConnection createConnection(IConnectionProfile profile,
                                    java.lang.String uid,
                                    java.lang.String pwd)
Description copied from interface: IConnectionFactory
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.

Specified by:
createConnection in interface IConnectionFactory
Parameters:
profile - the profile to connect to.
uid - the user id to use
pwd - the password to use
Returns:
a connection if successful