Package com.mchange.v2.c3p0.test
Class AlwaysFailConnectionTester
java.lang.Object
com.mchange.v2.c3p0.test.AlwaysFailConnectionTester
- All Implemented Interfaces:
ConnectionTester
,QueryConnectionTester
,Serializable
- See Also:
-
Field Summary
Fields inherited from interface com.mchange.v2.c3p0.ConnectionTester
CONNECTION_IS_INVALID, CONNECTION_IS_OKAY, DATABASE_IS_INVALID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
activeCheckConnection
(Connection c, String preferredTestQuery) 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()int
-
Constructor Details
-
AlwaysFailConnectionTester
public AlwaysFailConnectionTester()
-
-
Method Details
-
activeCheckConnection
- Specified by:
activeCheckConnection
in interfaceConnectionTester
-
statusOnException
- Specified by:
statusOnException
in interfaceConnectionTester
-
activeCheckConnection
- Specified by:
activeCheckConnection
in interfaceQueryConnectionTester
-
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
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()Description copied from interface:ConnectionTester
keep consistent with equals()- Specified by:
hashCode
in interfaceConnectionTester
- Overrides:
hashCode
in classObject
-