public final class AlwaysFailConnectionTester extends java.lang.Object implements QueryConnectionTester
CONNECTION_IS_INVALID, CONNECTION_IS_OKAY, DATABASE_IS_INVALID| Constructor and Description |
|---|
AlwaysFailConnectionTester() |
| Modifier and Type | Method and 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) |
public int activeCheckConnection(java.sql.Connection c)
activeCheckConnection in interface ConnectionTesterpublic int statusOnException(java.sql.Connection c,
java.lang.Throwable t)
statusOnException in interface ConnectionTesterpublic int activeCheckConnection(java.sql.Connection c,
java.lang.String preferredTestQuery)
activeCheckConnection in interface QueryConnectionTesterpublic boolean equals(java.lang.Object o)
ConnectionTesterequals in interface ConnectionTesterequals in class java.lang.Objectpublic int hashCode()
ConnectionTesterhashCode in interface ConnectionTesterhashCode in class java.lang.Object