org.apache.commons.dbcp
Interface ConnectionFactory

All Known Subinterfaces:
XAConnectionFactory
All Known Implementing Classes:
DataSourceConnectionFactory, DataSourceXAConnectionFactory, DriverConnectionFactory, DriverManagerConnectionFactory, LocalXAConnectionFactory

public interface ConnectionFactory

Abstract factory interface for creating Connections.

Version:
$Revision: 892307 $ $Date: 2014-01-01 00:27:28 +0100 (Wed, 01 Jan 2014) $
Author:
Rodney Waldhoff

Method Summary
 Connection createConnection()
          Create a new Connection in an implementation specific fashion.
 

Method Detail

createConnection

Connection createConnection()
                            throws SQLException
Create a new Connection in an implementation specific fashion.

Returns:
a new Connection
Throws:
SQLException - if a database error occurs creating the connection


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.