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 int
activeCheckConnection(java.sql.Connection c)
int
activeCheckConnection(java.sql.Connection c, java.lang.String preferredTestQuery)
boolean
equals(java.lang.Object o)
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
statusOnException(java.sql.Connection c, java.lang.Throwable t)
-
-
-
Method Detail
-
activeCheckConnection
public int activeCheckConnection(java.sql.Connection c)
- Specified by:
activeCheckConnection
in interfaceConnectionTester
-
statusOnException
public int statusOnException(java.sql.Connection c, java.lang.Throwable t)
- Specified by:
statusOnException
in interfaceConnectionTester
-
activeCheckConnection
public int activeCheckConnection(java.sql.Connection c, java.lang.String preferredTestQuery)
- Specified by:
activeCheckConnection
in interfaceQueryConnectionTester
-
equals
public boolean equals(java.lang.Object o)
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 classjava.lang.Object
-
hashCode
public int hashCode()
Description copied from interface:ConnectionTester
keep consistent with equals()- Specified by:
hashCode
in interfaceConnectionTester
- Overrides:
hashCode
in classjava.lang.Object
-
-