Package org.apache.tomcat.dbcp.dbcp2
Interface ConnectionFactory
- All Known Implementing Classes:
DataSourceConnectionFactory
,DriverConnectionFactory
,DriverManagerConnectionFactory
public interface ConnectionFactory
Abstract factory interface for creating
Connection
s.- Since:
- 2.0
-
Method Summary
-
Method Details
-
createConnection
Create a newConnection
in an implementation specific fashion.- Returns:
- a new
Connection
- Throws:
SQLException
- if a database error occurs creating the connection
-