Top Description Fields Constructors Methods
com.mysql.cj.jdbc.integration.c3p0

public final Class MysqlConnectionTester

extends Object
implements QueryConnectionTester
Class Inheritance
All Implemented Interfaces
com.mchange.v2.c3p0.QueryConnectionTester, com.mchange.v2.c3p0.ConnectionTester, java.io.Serializable
Imports
java.lang.reflect.Method, java.sql.Connection, .SQLException, .Statement, com.mchange.v2.c3p0.C3P0ProxyConnection, .QueryConnectionTester, com.mysql.cj.exceptions.CJCommunicationsException, com.mysql.cj.jdbc.JdbcConnection, com.mysql.cj.jdbc.exceptions.CommunicationsException

ConnectionTester for C3P0 connection pool that uses the more efficient COM_PING method of testing connection 'liveness' for MySQL, and 'sorts' exceptions based on SQLState or class of 'CommunicationsException' for handling exceptions.

Field Summary

Modifier and TypeField and Description
private static final Object[]
private transient Method
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
public int
public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

NO_ARGS_ARRAYback to summary
private static final Object[] NO_ARGS_ARRAY
pingMethodback to summary
private transient Method pingMethod
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

MysqlConnectionTesterback to summary
public MysqlConnectionTester()

Method Detail

activeCheckConnectionback to summary
public int activeCheckConnection(Connection con)

Implements com.mchange.v2.c3p0.ConnectionTester.activeCheckConnection.

Annotations
@Override
activeCheckConnectionback to summary
public int activeCheckConnection(Connection arg0, String arg1)

Implements com.mchange.v2.c3p0.QueryConnectionTester.activeCheckConnection.

Annotations
@Override
statusOnExceptionback to summary
public int statusOnException(Connection arg0, Throwable throwable)

Implements com.mchange.v2.c3p0.ConnectionTester.statusOnException.

Annotations
@Override