Package org.apache.commons.dbcp2
Class DriverConnectionFactory
java.lang.Object
org.apache.commons.dbcp2.DriverConnectionFactory
- All Implemented Interfaces:
ConnectionFactory
A
Driver
-based implementation of ConnectionFactory
.- Since:
- 2.0
- Version:
- $Id: DriverConnectionFactory.java 1649430 2015-01-04 21:29:32Z tn $
- Author:
- Rodney Waldhoff
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a newConnection
in an implementation specific fashion.toString()
-
Constructor Details
-
DriverConnectionFactory
-
-
Method Details
-
createConnection
Description copied from interface:ConnectionFactory
Create a newConnection
in an implementation specific fashion.- Specified by:
createConnection
in interfaceConnectionFactory
- Returns:
- a new
Connection
- Throws:
SQLException
- if a database error occurs creating the connection
-
toString
-