Package com.mchange.v2.c3p0.test
Class TestConnectionCustomizer
java.lang.Object
com.mchange.v2.c3p0.AbstractConnectionCustomizer
com.mchange.v2.c3p0.test.TestConnectionCustomizer
- All Implemented Interfaces:
ConnectionCustomizer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onAcquire
(Connection c, String pdsIdt) Called immediately after a Connection is acquired from the underlying database for incorporation into the pool.void
onCheckIn
(Connection c, String pdsIdt) Called immediately after a Connection is checked in, prior to reincorporation into the pool.void
onCheckOut
(Connection c, String pdsIdt) Called immediately before a Connection is made available to a client upon checkout.void
onDestroy
(Connection c, String pdsIdt) Called immediately before a Connection is destroyed after being removed from the pool.Methods inherited from class com.mchange.v2.c3p0.AbstractConnectionCustomizer
extensionsForToken
-
Constructor Details
-
TestConnectionCustomizer
public TestConnectionCustomizer()
-
-
Method Details
-
onAcquire
Description copied from interface:ConnectionCustomizer
Called immediately after a Connection is acquired from the underlying database for incorporation into the pool.
This method is only called once per Connection. If standard JDBC Connection properties are modified — specifically catalog, holdability, transactionIsolation, readOnly, and typeMap — those modifications will override defaults throughout the Connection's tenure in the pool.
- Specified by:
onAcquire
in interfaceConnectionCustomizer
- Overrides:
onAcquire
in classAbstractConnectionCustomizer
-
onDestroy
Description copied from interface:ConnectionCustomizer
Called immediately before a Connection is destroyed after being removed from the pool.- Specified by:
onDestroy
in interfaceConnectionCustomizer
- Overrides:
onDestroy
in classAbstractConnectionCustomizer
-
onCheckOut
Description copied from interface:ConnectionCustomizer
Called immediately before a Connection is made available to a client upon checkout.- Specified by:
onCheckOut
in interfaceConnectionCustomizer
- Overrides:
onCheckOut
in classAbstractConnectionCustomizer
-
onCheckIn
Description copied from interface:ConnectionCustomizer
Called immediately after a Connection is checked in, prior to reincorporation into the pool.- Specified by:
onCheckIn
in interfaceConnectionCustomizer
- Overrides:
onCheckIn
in classAbstractConnectionCustomizer
-