public class DriverConnectionFactory extends Object implements ConnectionFactory
Driver-based implementation of ConnectionFactory.| Constructor and Description |
|---|
DriverConnectionFactory(Driver driver,
String connectString,
Properties properties)
Constructs a connection factory for a given Driver.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
createConnection()
Create a new
Connection in an implementation specific fashion. |
String |
getConnectionString() |
Driver |
getDriver() |
Properties |
getProperties() |
String |
toString() |
public DriverConnectionFactory(Driver driver, String connectString, Properties properties)
driver - The Driver.connectString - The connection string.properties - The connection properties.public Connection createConnection() throws SQLException
ConnectionFactoryConnection in an implementation specific fashion.createConnection in interface ConnectionFactoryConnectionSQLException - if a database error occurs creating the connectionpublic String getConnectionString()
public Driver getDriver()
public Properties getProperties()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.