Class PoolingDriver

java.lang.Object
org.apache.tomcat.dbcp.dbcp2.PoolingDriver
All Implemented Interfaces:
Driver

public class PoolingDriver extends Object implements Driver
A Driver implementation that obtains Connections from a registered ObjectPool.
Since:
2.0
  • Field Details

    • pools

      protected static final HashMap<String,ObjectPool<? extends Connection>> pools
      The map of registered pools.
    • URL_PREFIX

      public static final String URL_PREFIX
      The Apache Commons connection string prefix "jdbc:apache:commons:dbcp:".
      See Also:
    • URL_PREFIX_LEN

      protected static final int URL_PREFIX_LEN
      The String length of URL_PREFIX.
    • MAJOR_VERSION

      protected static final int MAJOR_VERSION
      Major version number.
      See Also:
    • MINOR_VERSION

      protected static final int MINOR_VERSION
      Minor version number.
      See Also:
  • Constructor Details

    • PoolingDriver

      public PoolingDriver()
      Constructs a new driver with accessToUnderlyingConnectionAllowed enabled.
    • PoolingDriver

      protected PoolingDriver(boolean accessToUnderlyingConnectionAllowed)
      For unit testing purposes.
      Parameters:
      accessToUnderlyingConnectionAllowed - Do DelegatingConnections created by this driver permit access to the delegate?
  • Method Details