|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mchange.v2.c3p0.AbstractConnectionCustomizer
public abstract class AbstractConnectionCustomizer
An abstract implementation of the ConnectionCustomizer interface in which all methods are no-ops. Just a convenience class since most clients will only need to implement a single method.
| Constructor Summary | |
|---|---|
AbstractConnectionCustomizer()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractConnectionCustomizer()
| Method Detail |
|---|
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 [holdability, transactionIsolation, readOnly], those modifications will override defaults throughout the Connection's tenure in the pool.
onAcquire in interface ConnectionCustomizerjava.lang.Exception
public void onDestroy(java.sql.Connection c,
java.lang.String parentDataSourceIdentityToken)
throws java.lang.Exception
ConnectionCustomizer
onDestroy in interface ConnectionCustomizerjava.lang.Exception
public void onCheckOut(java.sql.Connection c,
java.lang.String parentDataSourceIdentityToken)
throws java.lang.Exception
ConnectionCustomizer
onCheckOut in interface ConnectionCustomizerjava.lang.Exception
public void onCheckIn(java.sql.Connection c,
java.lang.String parentDataSourceIdentityToken)
throws java.lang.Exception
ConnectionCustomizer
onCheckIn in interface ConnectionCustomizerjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||