Top Description Fields Methods
com.mchange.v2.c3p0

public Interface ConnectionTester

extends Serializable
Known Direct Subinterfaces
com.mchange.v2.c3p0.QueryConnectionTester
Imports
java.io.Serializable, java.sql.Connection

Define your own Connection tester if you want to override c3p0's default behavior for testing the validity of Connections and responding to Connection errors encountered.

Recommended: If you'd like your ConnectionTester to support the user-configured preferredTestQuery parameter, please implement com.mchange.v2.c3p0.UnifiedConnectionTester.

ConnectionTesters should be Serializable, immutable, and must have public, no-arg constructors.

See Also
com.mchange.v2.c3p0.UnifiedConnectionTester, com.mchange.v2.c3p0.AbstractConnectionTester

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int

Method Summary

Modifier and TypeMethod and Description
public int
public int

Field Detail

CONNECTION_IS_INVALIDback to summary
public static final int CONNECTION_IS_INVALID
CONNECTION_IS_OKAYback to summary
public static final int CONNECTION_IS_OKAY
DATABASE_IS_INVALIDback to summary
public static final int DATABASE_IS_INVALID

Method Detail

activeCheckConnectionback to summary
public int activeCheckConnection(Connection c)
statusOnExceptionback to summary
public int statusOnException(Connection c, Throwable t)