com.mchange.v2.c3p0 |
|
Java Source File Name | Type | Comment |
AbstractConnectionCustomizer.java | Class | An abstract implementation of the
ConnectionCustomizer interface
in which all methods are no-ops. |
AbstractConnectionTester.java | Class | Having expanded the once-simple ConnectionTester interface to support both
user-specified queries and return of root cause Exceptions (via an out-param),
this interface has grown unnecessarily complex.
If you wish to implement a custom Connection tester, here is the simple
way to do it
- Extend
com.mchange.v2.c3p0.AbstractConnectionTester
- Override only the two abstract methods
- public int activeCheckConnection(Connection c, String preferredTestQuery, Throwable[] rootCauseOutParamHolder)
- public int statusOnException(Connection c, Throwable t, String preferredTestQuery, Throwable[] rootCauseOutParamHolder)
- Take care to ensure that your methods are defined to allow preferredTestQuery and
rootCauseOutParamHolder to be null.
Parameter rootCauseOutParamHolder is an optional parameter, which if supplied, will be a Throwable array whose size
it at least one. |
C3P0ProxyConnection.java | Interface | Most clients need never use or know about this interface -- c3p0-provided Connections
can be treated like any other Connection.
An interface implemented by proxy Connections returned
by c3p0 PooledDataSources. |
C3P0ProxyStatement.java | Interface | Most clients need never use or know about this interface -- c3p0-provided Statements
can be treated like any other Statement.
An interface implemented by proxy Connections returned
by c3p0 PooledDataSources. |
C3P0Registry.java | Class | |
ComboPooledDataSource.java | Class | |
ConnectionCustomizer.java | Interface | |
ConnectionTester.java | Interface | Define your own Connection tester if you want to
override c3p0's default behavior for testing the validity
of Connections and responding to Connection errors encountered.
Recommended: If you'd like your ConnectionTester
to support the user-configured preferredTestQuery
parameter, please implement
com.mchange.v2.c3p0.UnifiedConnectionTester . |
DataSources.java | Class | A simple factory class for creating DataSources. |
DriverManagerDataSource.java | Class | |
DriverManagerDataSourceFactory.java | Class | |
FullQueryConnectionTester.java | Interface | |
JndiRefConnectionPoolDataSource.java | Class | |
JndiRefForwardingDataSource.java | Class | |
PoolBackedDataSource.java | Class | |
PoolBackedDataSourceFactory.java | Class | A class offering Factory methods for creating DataSources backed
by Connection and Statement Pools. |
PoolConfig.java | Class | Encapsulates all the configuration information required by a c3p0 pooled DataSource.
Newly constructed PoolConfig objects are preset with default values,
which you can define yourself (see below),
or you can rely on c3p0's built-in defaults. |
PooledDataSource.java | Interface | Most clients need never use or know about this interface -- c3p0 pooled DataSources
can be treated like any other DataSource.
The functionality in this interface will be only be of interest if 1) for administrative
reasons you like to keep close track of the number and status of all Connections your application
is using; 2) to work around problems encountered while managing a DataSource whose clients are
poorly coded applications that leak Connections, but which you are not permitted to fix;
or 3) to work around problems that may occur if an underlying jdbc driver / DBMS system is
unreliable. |
QueryConnectionTester.java | Interface | |
SQLWarnings.java | Class | |
UnifiedConnectionTester.java | Interface | Having expanded the once-simple ConnectionTester interface to support both
user-specified queries and return of root cause Exceptions (via an out-param),
this interface has grown unnecessarily complex.
If you wish to implement a custom Connection tester, here is the simple
way to do it
- Extend
com.mchange.v2.c3p0.AbstractConnectionTester
- Override only the two abstract methods
- public int activeCheckConnection(Connection c, String preferredTestQuery, Throwable[] rootCauseOutParamHolder)
- public int statusOnException(Connection c, Throwable t, String preferredTestQuery, Throwable[] rootCauseOutParamHolder)
- Take care to ensure that your methods are defined to allow preferredTestQuery and
rootCauseOutParamHolder to be null.
Parameter rootCauseOutParamHolder is an optional parameter, which if supplied, will be a Throwable array whose size
it at least one. |
WrapperConnectionPoolDataSource.java | Class | |