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 connectUri,
java.util.Properties props) |
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 connectUri, java.util.Properties props)
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 © 2001-2004 Apache Software Foundation. Documenation generated July 18 2016.