org.eclipse.datatools.enablement.ingres.internal.connectivity
Class IngresConnectionFactory

java.lang.Object
  extended by org.eclipse.datatools.enablement.ingres.internal.connectivity.IngresConnectionFactory
All Implemented Interfaces:
IConnectionFactory

public class IngresConnectionFactory
extends java.lang.Object
implements IConnectionFactory

Ingres connection factory implementation.

Author:
enrico.schenk@ingres.com

Field Summary
static java.lang.String INGRES_TRACE_DRV
           
static java.lang.String INGRES_TRACE_LOG
           
 
Constructor Summary
IngresConnectionFactory()
           
 
Method Summary
 IConnection createConnection(IConnectionProfile profile)
          This method creates a connection to an Ingres DBMS.
 IConnection createConnection(IConnectionProfile profile, java.lang.String uid, java.lang.String pwd)
          This method creates a connection to an Ingres DBMS.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INGRES_TRACE_LOG

public static final java.lang.String INGRES_TRACE_LOG
See Also:
Constant Field Values

INGRES_TRACE_DRV

public static final java.lang.String INGRES_TRACE_DRV
See Also:
Constant Field Values
Constructor Detail

IngresConnectionFactory

public IngresConnectionFactory()
Method Detail

createConnection

public IConnection createConnection(IConnectionProfile profile)
This method creates a connection to an Ingres DBMS. Driver logging is activated. The log file is retrieved from the system property "ingres.jdbc.trace.log". If no filename is found, a new temporary log file is used. The following logging parameter is set: ingres.jdbc.trace.drv = 1 (if not passed as system property)

Specified by:
createConnection in interface IConnectionFactory
Parameters:
profile - the profile to connect to.
Returns:
a connection if successful
See Also:
IConnectionFactory.createConnection(org.eclipse.datatools.connectivity.IConnectionProfile)

createConnection

public IConnection createConnection(IConnectionProfile profile,
                                    java.lang.String uid,
                                    java.lang.String pwd)
This method creates a connection to an Ingres DBMS. Driver logging is activated. The log file is retrieved from the system property "ingres.jdbc.trace.log". If no filename is found, a new temporary log file is used. The following logging parameter is set: ingres.jdbc.trace.drv = 1 (if not passed as system property)

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
See Also:
IConnectionFactory.createConnection(org.eclipse.datatools.connectivity.IConnectionProfile, java.lang.String, java.lang.String)