org.apache.commons.dbcp2

## Interface ConnectionFactory

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

      public interface ConnectionFactory

  Abstract factory interface for creating `Connection`s.
  Since:
    2.0
  Version:
    $Revision: 1572242 $ $Date: 2014-02-26 20:34:39 +0000 (Wed, 26 Feb 2014) $
  Author:
    Rodney Waldhoff

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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–2014 The Apache Software Foundation. All rights reserved.