ConnectionFactory (Apache Tomcat 7.0.104 API Documentation)

org.apache.tomcat.dbcp.dbcp

## Interface ConnectionFactory

- All Known Implementing Classes:
    DataSourceConnectionFactory, DriverConnectionFactory, DriverManagerConnectionFactory

      public interface ConnectionFactory

  Abstract factory interface for creating `Connection`s.
  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 © 2000-2020 Apache Software Foundation. All Rights Reserved.