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: 491655 $ $Date: 2007-01-01 17:05:30 -0500 (Mon, 01 Jan 2007) $
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.