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,Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.mchange.v2.c3p0.UnifiedConnectionTester
CONNECTION_IS_INVALID, CONNECTION_IS_OKAY, DATABASE_IS_INVALID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintactiveCheckConnection(Connection c, String query, Throwable[] rootCauseOutParamHolder) Override, but remember that preferredTestQuery and rootCauseOutParamHolder can be null.booleanMultiple 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 booleanintstatusOnException(Connection c, Throwable t, String query, 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
-
Constructor Details
-
DefaultConnectionTester
public DefaultConnectionTester()
-
-
Method Details
-
probableInvalidDb
-
activeCheckConnection
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(Connection c, Throwable t, String query, 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
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 classObject
-
hashCode
public int hashCode()Description copied from interface:ConnectionTesterkeep consistent with equals()- Specified by:
hashCodein interfaceConnectionTester- Specified by:
hashCodein interfaceUnifiedConnectionTester- Overrides:
hashCodein classObject
-