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 TypeMethodDescriptionint
activeCheckConnection
(Connection c, String query, Throwable[] rootCauseOutParamHolder) Override, but remember that preferredTestQuery and rootCauseOutParamHolder can be null.boolean
Multiple testers that are of the same class and use the same criteria for determining fatality should test as equals().int
hashCode()
keep consistent with equals()static boolean
int
statusOnException
(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:AbstractConnectionTester
Override, but remember that preferredTestQuery and rootCauseOutParamHolder can be null.- Specified by:
activeCheckConnection
in interfaceUnifiedConnectionTester
- Specified by:
activeCheckConnection
in classAbstractConnectionTester
-
statusOnException
public int statusOnException(Connection c, Throwable t, String query, Throwable[] rootCauseOutParamHolder) Description copied from class:AbstractConnectionTester
Override, but remember that preferredTestQuery and rootCauseOutParamHolder can be null.- Specified by:
statusOnException
in interfaceUnifiedConnectionTester
- Specified by:
statusOnException
in classAbstractConnectionTester
-
equals
Description copied from interface:ConnectionTester
Multiple testers that are of the same class and use the same criteria for determining fatality should test as equals().- Specified by:
equals
in interfaceConnectionTester
- Specified by:
equals
in interfaceUnifiedConnectionTester
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()Description copied from interface:ConnectionTester
keep consistent with equals()- Specified by:
hashCode
in interfaceConnectionTester
- Specified by:
hashCode
in interfaceUnifiedConnectionTester
- Overrides:
hashCode
in classObject
-