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: 2013-12-31 23:27:28 +0000 (Tue, 31 Dec 2013) $
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.