Interface ConnectionFactory
- All Known Subinterfaces:
XAConnectionFactory
- All Known Implementing Classes:
DataSourceConnectionFactory, DataSourceXAConnectionFactory, DriverConnectionFactory, DriverManagerConnectionFactory, LocalXAConnectionFactory
public interface ConnectionFactory
Abstract factory interface for creating
Connections.- Since:
- 2.0
- Version:
- $Id: ConnectionFactory.java 1649430 2015-01-04 21:29:32Z tn $
- Author:
- Rodney Waldhoff
-
Method Summary
-
Method Details
-
createConnection
Create a newConnectionin an implementation specific fashion.- Returns:
- a new
Connection - Throws:
SQLException- if a database error occurs creating the connection
-