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 |
getConnectionString() |
java.sql.Driver |
getDriver() |
java.util.Properties |
getProperties() |
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
ConnectionFactoryConnection in an implementation specific fashion.createConnection in interface ConnectionFactoryConnectionjava.sql.SQLException - if a database error occurs creating the connectionpublic java.lang.String getConnectionString()
public java.sql.Driver getDriver()
public java.util.Properties getProperties()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.