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
public class TestConnectionCustomizer extends AbstractConnectionCustomizer
-
-
Constructor Summary
Constructors Constructor Description TestConnectionCustomizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAcquire(java.sql.Connection c, java.lang.String pdsIdt)Called immediately after a Connection is acquired from the underlying database for incorporation into the pool.voidonCheckIn(java.sql.Connection c, java.lang.String pdsIdt)Called immediately after a Connection is checked in, prior to reincorporation into the pool.voidonCheckOut(java.sql.Connection c, java.lang.String pdsIdt)Called immediately before a Connection is made available to a client upon checkout.voidonDestroy(java.sql.Connection c, java.lang.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
-
-
-
-
Method Detail
-
onAcquire
public void onAcquire(java.sql.Connection c, java.lang.String pdsIdt)Description copied from interface:ConnectionCustomizerCalled 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:
onAcquirein interfaceConnectionCustomizer- Overrides:
onAcquirein classAbstractConnectionCustomizer
-
onDestroy
public void onDestroy(java.sql.Connection c, java.lang.String pdsIdt)Description copied from interface:ConnectionCustomizerCalled immediately before a Connection is destroyed after being removed from the pool.- Specified by:
onDestroyin interfaceConnectionCustomizer- Overrides:
onDestroyin classAbstractConnectionCustomizer
-
onCheckOut
public void onCheckOut(java.sql.Connection c, java.lang.String pdsIdt)Description copied from interface:ConnectionCustomizerCalled immediately before a Connection is made available to a client upon checkout.- Specified by:
onCheckOutin interfaceConnectionCustomizer- Overrides:
onCheckOutin classAbstractConnectionCustomizer
-
onCheckIn
public void onCheckIn(java.sql.Connection c, java.lang.String pdsIdt)Description copied from interface:ConnectionCustomizerCalled immediately after a Connection is checked in, prior to reincorporation into the pool.- Specified by:
onCheckInin interfaceConnectionCustomizer- Overrides:
onCheckInin classAbstractConnectionCustomizer
-
-