Package com.mchange.v2.c3p0.impl
Class DefaultConnectionTester
- java.lang.Object
-
- com.mchange.v2.c3p0.AbstractConnectionTester
-
- com.mchange.v2.c3p0.impl.DefaultConnectionTester
-
- All Implemented Interfaces:
ConnectionTester,FullQueryConnectionTester,QueryConnectionTester,UnifiedConnectionTester,java.io.Serializable
public final class DefaultConnectionTester extends AbstractConnectionTester
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDefaultConnectionTester.QuerylessTestRunner
-
Field Summary
-
Fields inherited from interface com.mchange.v2.c3p0.UnifiedConnectionTester
CONNECTION_IS_INVALID, CONNECTION_IS_OKAY, DATABASE_IS_INVALID
-
-
Constructor Summary
Constructors Constructor Description DefaultConnectionTester()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intactiveCheckConnection(java.sql.Connection c, java.lang.String query, java.lang.Throwable[] rootCauseOutParamHolder)Override, but remember that preferredTestQuery and rootCauseOutParamHolder can be null.booleanequals(java.lang.Object o)Multiple testers that are of the same class and use the same criteria for determining fatality should test as equals().inthashCode()keep consistent with equals()static booleanprobableInvalidDb(java.sql.SQLException sqle)intstatusOnException(java.sql.Connection c, java.lang.Throwable t, java.lang.String query, java.lang.Throwable[] rootCauseOutParamHolder)Override, but remember that preferredTestQuery and rootCauseOutParamHolder can be null.-
Methods inherited from class com.mchange.v2.c3p0.AbstractConnectionTester
activeCheckConnection, activeCheckConnection, activeCheckConnection, statusOnException, statusOnException, statusOnException
-
-
-
-
Method Detail
-
probableInvalidDb
public static boolean probableInvalidDb(java.sql.SQLException sqle)
-
activeCheckConnection
public int activeCheckConnection(java.sql.Connection c, java.lang.String query, java.lang.Throwable[] rootCauseOutParamHolder)Description copied from class:AbstractConnectionTesterOverride, but remember that preferredTestQuery and rootCauseOutParamHolder can be null.- Specified by:
activeCheckConnectionin interfaceUnifiedConnectionTester- Specified by:
activeCheckConnectionin classAbstractConnectionTester
-
statusOnException
public int statusOnException(java.sql.Connection c, java.lang.Throwable t, java.lang.String query, java.lang.Throwable[] rootCauseOutParamHolder)Description copied from class:AbstractConnectionTesterOverride, but remember that preferredTestQuery and rootCauseOutParamHolder can be null.- Specified by:
statusOnExceptionin interfaceUnifiedConnectionTester- Specified by:
statusOnExceptionin classAbstractConnectionTester
-
equals
public boolean equals(java.lang.Object o)
Description copied from interface:ConnectionTesterMultiple testers that are of the same class and use the same criteria for determining fatality should test as equals().- Specified by:
equalsin interfaceConnectionTester- Specified by:
equalsin interfaceUnifiedConnectionTester- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Description copied from interface:ConnectionTesterkeep consistent with equals()- Specified by:
hashCodein interfaceConnectionTester- Specified by:
hashCodein interfaceUnifiedConnectionTester- Overrides:
hashCodein classjava.lang.Object
-
-