Package com.mchange.v2.c3p0.test
Class AlwaysFailConnectionTester
- java.lang.Object
-
- com.mchange.v2.c3p0.test.AlwaysFailConnectionTester
-
- All Implemented Interfaces:
ConnectionTester,QueryConnectionTester,java.io.Serializable
public final class AlwaysFailConnectionTester extends java.lang.Object implements QueryConnectionTester
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.mchange.v2.c3p0.ConnectionTester
CONNECTION_IS_INVALID, CONNECTION_IS_OKAY, DATABASE_IS_INVALID
-
-
Constructor Summary
Constructors Constructor Description AlwaysFailConnectionTester()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intactiveCheckConnection(java.sql.Connection c)intactiveCheckConnection(java.sql.Connection c, java.lang.String preferredTestQuery)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()intstatusOnException(java.sql.Connection c, java.lang.Throwable t)
-
-
-
Method Detail
-
activeCheckConnection
public int activeCheckConnection(java.sql.Connection c)
- Specified by:
activeCheckConnectionin interfaceConnectionTester
-
statusOnException
public int statusOnException(java.sql.Connection c, java.lang.Throwable t)- Specified by:
statusOnExceptionin interfaceConnectionTester
-
activeCheckConnection
public int activeCheckConnection(java.sql.Connection c, java.lang.String preferredTestQuery)- Specified by:
activeCheckConnectionin interfaceQueryConnectionTester
-
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- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Description copied from interface:ConnectionTesterkeep consistent with equals()- Specified by:
hashCodein interfaceConnectionTester- Overrides:
hashCodein classjava.lang.Object
-
-