MySQL Connector/J size='-1'>5.0.8

com.mysql.jdbc.integration.c3p0
Class MysqlConnectionTester

java.lang.Object
  extended by com.mysql.jdbc.integration.c3p0.MysqlConnectionTester

public final class MysqlConnectionTester
extends java.lang.Object

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.

Version:
$Id: MysqlConnectionTester.java,v 1.1.2.1 2005/05/13 18:58:39 mmatthews Exp $

Constructor Summary
MysqlConnectionTester()
           
 
Method Summary
 int activeCheckConnection(java.sql.Connection con)
           
 int activeCheckConnection(java.sql.Connection arg0, java.lang.String arg1)
           
 int statusOnException(java.sql.Connection arg0, java.lang.Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MysqlConnectionTester

public MysqlConnectionTester()
Method Detail

activeCheckConnection

public int activeCheckConnection(java.sql.Connection con)

statusOnException

public int statusOnException(java.sql.Connection arg0,
                             java.lang.Throwable throwable)

activeCheckConnection

public int activeCheckConnection(java.sql.Connection arg0,
                                 java.lang.String arg1)

MySQL Connector/J size='-1'>5.0.8