Package org.datanucleus.store.rdbms.datasource.dbcp2
package org.datanucleus.store.rdbms.datasource.dbcp2
This is a repackaged Apache Commons DBCP v2.7.0 and Apache Commons Pool v2.8.0.
We have omitted the packages "org/apache/commons/dbcp2/managed" and "org/apache/commons/pool2/proxy" since they are not needed and pull in other dependencies.
We have changed the Apache Commons logging to use NucleusLogger.CONNECTION instead.
Note that there is a file under "src/main/resources/org/datanucleus/store/rdbms/datasource/dbcp2" also.
-
ClassDescriptionTracks db connection usage for recovering and reporting abandoned db connections.Basic implementation of
javax.sql.DataSourcethat is configured via JavaBeans properties.JNDI object factory that creates an instance ofBasicDataSourcethat has been configured based on theRefAddrvalues of the specifiedReference, which must match the names and data types of theBasicDataSourcebean properties with the following exceptions:Defines the methods that will be made available via JMX.Abstract factory interface for creatingConnections.Constants for use with JMX.ADataSource-based implementation ofConnectionFactory.A base delegating implementation ofCallableStatement.DelegatingConnection<C extends Connection>A base delegating implementation ofConnection.A base delegating implementation ofDatabaseMetaData.A base delegating implementation ofPreparedStatement.A base delegating implementation ofResultSet.A base delegating implementation ofStatement.ADriver-based implementation ofConnectionFactory.ADriverManager-based implementation ofConnectionFactory.Defines bridge methods to JDBC 4.1 (Java 7) methods to allow call sites to operate safely (withoutAbstractMethodError) when using a JDBC driver written for JDBC 4.0 (Java 6).Exception thrown when a connection's maximum lifetime has been exceeded.An exception wrapping a list of exceptions.Internal wrapper class that allows JMX to be a noop if absent or disabled.ADelegatingCallableStatementthat cooperates withPoolingConnectionto implement a pool ofCallableStatements.A delegating connection that, rather than closing the underlying connection, returns itself to anObjectPoolwhen closed.APooledObjectFactorythat createsPoolableConnections.Defines the attributes and methods that will be exposed via JMX forPoolableConnectioninstances.ADelegatingPreparedStatementthat cooperates withPoolingConnectionto implement a pool ofPreparedStatements.ADelegatingConnectionthat poolsPreparedStatements.Statement types.PoolingDataSource<C extends Connection>A key uniquely identifyingPreparedStatements.Interface for Prepared or Callable Statement.A SQLException based on a list of Throwable causes.Class for logging swallowed exceptions.Utility methods.