public abstract class AbstractConnectionCustomizer extends java.lang.Object implements ConnectionCustomizer
| Constructor and Description |
|---|
AbstractConnectionCustomizer() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map |
extensionsForToken(java.lang.String parentDataSourceIdentityToken) |
void |
onAcquire(java.sql.Connection c,
java.lang.String parentDataSourceIdentityToken)
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 parentDataSourceIdentityToken)
Called immediately after a
Connection is checked in,
prior to reincorporation
into the pool.
|
void |
onCheckOut(java.sql.Connection c,
java.lang.String parentDataSourceIdentityToken)
Called immediately before a
Connection is made available to
a client upon checkout.
|
void |
onDestroy(java.sql.Connection c,
java.lang.String parentDataSourceIdentityToken)
Called immediately before a
Connection is destroyed after
being removed from the pool.
|
protected java.util.Map extensionsForToken(java.lang.String parentDataSourceIdentityToken)
public void onAcquire(java.sql.Connection c,
java.lang.String parentDataSourceIdentityToken)
throws java.lang.Exception
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.
onAcquire in interface ConnectionCustomizerjava.lang.Exceptionpublic void onDestroy(java.sql.Connection c,
java.lang.String parentDataSourceIdentityToken)
throws java.lang.Exception
ConnectionCustomizeronDestroy in interface ConnectionCustomizerjava.lang.Exceptionpublic void onCheckOut(java.sql.Connection c,
java.lang.String parentDataSourceIdentityToken)
throws java.lang.Exception
ConnectionCustomizeronCheckOut in interface ConnectionCustomizerjava.lang.Exceptionpublic void onCheckIn(java.sql.Connection c,
java.lang.String parentDataSourceIdentityToken)
throws java.lang.Exception
ConnectionCustomizeronCheckIn in interface ConnectionCustomizerjava.lang.Exception