public class DriverConnectionFactory extends Object implements ConnectionFactory
Driver-based implementation of ConnectionFactory.| Modifier and Type | Field and Description | 
|---|---|
| protected String | _connectUri | 
| protected Driver | _driver | 
| protected Properties | _props | 
| Constructor and Description | 
|---|
| DriverConnectionFactory(Driver driver,
                       String connectUri,
                       Properties props) | 
| Modifier and Type | Method and Description | 
|---|---|
| Connection | createConnection()Create a new  Connectionin an
 implementation specific fashion. | 
| String | toString() | 
protected Driver _driver
protected String _connectUri
protected Properties _props
public DriverConnectionFactory(Driver driver, String connectUri, Properties props)
public Connection createConnection() throws SQLException
ConnectionFactoryConnection in an
 implementation specific fashion.createConnection in interface ConnectionFactoryConnectionSQLException - if a database error occurs creating the connectionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.