Package org.cyclos.db
Class ConnectionTester
- java.lang.Object
-
- com.mchange.v2.c3p0.AbstractConnectionTester
-
- org.cyclos.db.ConnectionTester
-
- All Implemented Interfaces:
com.mchange.v2.c3p0.ConnectionTester,com.mchange.v2.c3p0.FullQueryConnectionTester,com.mchange.v2.c3p0.QueryConnectionTester,com.mchange.v2.c3p0.UnifiedConnectionTester,Serializable
public class ConnectionTester extends com.mchange.v2.c3p0.AbstractConnectionTesterA c3p0 connection tester which allows us to handle zero results as connection error- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConnectionTester()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intactiveCheckConnection(Connection c, String preferredTestQuery, Throwable[] rootCauseOutParamHolder)booleanequals(Object obj)inthashCode()intstatusOnException(Connection c, Throwable t, String preferredTestQuery, Throwable[] rootCauseOutParamHolder)
-
-
-
Method Detail
-
activeCheckConnection
public int activeCheckConnection(Connection c, String preferredTestQuery, Throwable[] rootCauseOutParamHolder)
- Specified by:
activeCheckConnectionin interfacecom.mchange.v2.c3p0.UnifiedConnectionTester- Specified by:
activeCheckConnectionin classcom.mchange.v2.c3p0.AbstractConnectionTester
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
statusOnException
public int statusOnException(Connection c, Throwable t, String preferredTestQuery, Throwable[] rootCauseOutParamHolder)
- Specified by:
statusOnExceptionin interfacecom.mchange.v2.c3p0.UnifiedConnectionTester- Specified by:
statusOnExceptionin classcom.mchange.v2.c3p0.AbstractConnectionTester
-
-