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