public class TestConnectionCustomizer extends AbstractConnectionCustomizer
Constructor and Description |
---|
TestConnectionCustomizer() |
Modifier and Type | Method and Description |
---|---|
void |
onAcquire(java.sql.Connection c,
java.lang.String pdsIdt)
Called immediately after a
Connection is acquired from the
underlying database for
incorporation into the pool.
|
void |
onCheckIn(java.sql.Connection c,
java.lang.String pdsIdt)
Called immediately after a
Connection is checked in,
prior to reincorporation
into the pool.
|
void |
onCheckOut(java.sql.Connection c,
java.lang.String pdsIdt)
Called immediately before a
Connection is made available to
a client upon checkout.
|
void |
onDestroy(java.sql.Connection c,
java.lang.String pdsIdt)
Called immediately before a
Connection is destroyed after
being removed from the pool.
|
extensionsForToken
public void onAcquire(java.sql.Connection c, java.lang.String pdsIdt)
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.
onAcquire
in interface ConnectionCustomizer
onAcquire
in class AbstractConnectionCustomizer
public void onDestroy(java.sql.Connection c, java.lang.String pdsIdt)
ConnectionCustomizer
onDestroy
in interface ConnectionCustomizer
onDestroy
in class AbstractConnectionCustomizer
public void onCheckOut(java.sql.Connection c, java.lang.String pdsIdt)
ConnectionCustomizer
onCheckOut
in interface ConnectionCustomizer
onCheckOut
in class AbstractConnectionCustomizer
public void onCheckIn(java.sql.Connection c, java.lang.String pdsIdt)
ConnectionCustomizer
onCheckIn
in interface ConnectionCustomizer
onCheckIn
in class AbstractConnectionCustomizer