org.eclipse.datatools.enablement.ingres.internal.connectivity
Class IngresConnectionFactory
java.lang.Object
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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
IngresConnectionFactory
public IngresConnectionFactory()
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 usepwd - the password to use
- Returns:
- a connection if successful
- See Also:
IConnectionFactory.createConnection(org.eclipse.datatools.connectivity.IConnectionProfile,
java.lang.String, java.lang.String)