## Uses of Interface
org.apache.commons.dbcp2.ConnectionFactory

- Packages that use ConnectionFactory
  Package | Description
  --- | ---
  org.apache.commons.dbcp2 | Database Connection Pool API.
  org.apache.commons.dbcp2.managed | This package provides support for pooling of ManagedConnections.

- - ### Uses of ConnectionFactory in org.apache.commons.dbcp2

    Classes in org.apache.commons.dbcp2 that implement ConnectionFactory
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DataSourceConnectionFactory` A `DataSource`-based implementation of `ConnectionFactory`.
    `class` | `DriverConnectionFactory` A `Driver`-based implementation of `ConnectionFactory`.
    `class` | `DriverManagerConnectionFactory` A `DriverManager`-based implementation of `ConnectionFactory`.

    Methods in org.apache.commons.dbcp2 that return ConnectionFactory
    Modifier and Type | Method and Description
    --- | ---
    `protected ConnectionFactory` | BasicDataSource.`createConnectionFactory()` Creates a JDBC connection factory for this datasource.
    `protected ConnectionFactory` | PoolableConnectionFactory.`getConnectionFactory()`

    Methods in org.apache.commons.dbcp2 with parameters of type ConnectionFactory
    Modifier and Type | Method and Description
    --- | ---
    `protected PoolableConnectionFactory` | BasicDataSource.`createPoolableConnectionFactory(ConnectionFactory driverConnectionFactory)` Creates the PoolableConnectionFactory and attaches it to the connection pool.

    Constructors in org.apache.commons.dbcp2 with parameters of type ConnectionFactory
    Constructor and Description
    `PoolableConnectionFactory(ConnectionFactory connFactory, ObjectName dataSourceJmxName)` Create a new `PoolableConnectionFactory`.

  - ### Uses of ConnectionFactory in org.apache.commons.dbcp2.managed

    Subinterfaces of ConnectionFactory in org.apache.commons.dbcp2.managed
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `XAConnectionFactory` XAConnectionFactory is an extension of ConnectionFactory used to create connections in a transaction managed environment.

    Classes in org.apache.commons.dbcp2.managed that implement ConnectionFactory
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DataSourceXAConnectionFactory` An implementation of XAConnectionFactory which uses a real XADataSource to obtain connections and XAResources.
    `class` | `LocalXAConnectionFactory` An implementation of XAConnectionFactory which manages non-XA connections in XA transactions.

    Methods in org.apache.commons.dbcp2.managed that return ConnectionFactory
    Modifier and Type | Method and Description
    --- | ---
    `protected ConnectionFactory` | BasicManagedDataSource.`createConnectionFactory()`

    Methods in org.apache.commons.dbcp2.managed with parameters of type ConnectionFactory
    Modifier and Type | Method and Description
    --- | ---
    `protected PoolableConnectionFactory` | BasicManagedDataSource.`createPoolableConnectionFactory(ConnectionFactory driverConnectionFactory)` Creates the PoolableConnectionFactory and attaches it to the connection pool.

    Constructors in org.apache.commons.dbcp2.managed with parameters of type ConnectionFactory
    Constructor and Description
    `LocalXAConnectionFactory(TransactionManager transactionManager, ConnectionFactory connectionFactory)` Creates an LocalXAConnectionFactory which uses the specified connection factory to create database connections.

Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.