public class DriverConnectionFactory extends Object implements ConnectionFactory
Driver
-based implementation of ConnectionFactory
.Constructor and Description |
---|
DriverConnectionFactory(Driver driver,
String connectUri,
Properties props) |
Modifier and Type | Method and Description |
---|---|
Connection |
createConnection()
Create a new
Connection in an
implementation specific fashion. |
String |
toString() |
public DriverConnectionFactory(Driver driver, String connectUri, Properties props)
public Connection createConnection() throws SQLException
ConnectionFactory
Connection
in an
implementation specific fashion.createConnection
in interface ConnectionFactory
Connection
SQLException
- if a database error occurs creating the connectionCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.