com.mchange.v2.c3p0

Class AbstractConnectionCustomizer

Implemented Interfaces:
ConnectionCustomizer

public abstract class AbstractConnectionCustomizer
extends java.lang.Object
implements ConnectionCustomizer

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.

Method Summary

void
onAcquire(Connection c, String parentDataSourceIdentityToken)
void
onCheckIn(Connection c, String parentDataSourceIdentityToken)
void
onCheckOut(Connection c, String parentDataSourceIdentityToken)
void
onDestroy(Connection c, String parentDataSourceIdentityToken)

Method Details

onAcquire

public void onAcquire(Connection c,
                      String parentDataSourceIdentityToken)
            throws Exception
Specified by:
onAcquire in interface ConnectionCustomizer

onCheckIn

public void onCheckIn(Connection c,
                      String parentDataSourceIdentityToken)
            throws Exception
Specified by:
onCheckIn in interface ConnectionCustomizer

onCheckOut

public void onCheckOut(Connection c,
                       String parentDataSourceIdentityToken)
            throws Exception
Specified by:
onCheckOut in interface ConnectionCustomizer

onDestroy

public void onDestroy(Connection c,
                      String parentDataSourceIdentityToken)
            throws Exception
Specified by:
onDestroy in interface ConnectionCustomizer