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 ConnectionTester
public int statusOnException(java.sql.Connection c, java.lang.Throwable t)
statusOnException
in interface ConnectionTester
public int activeCheckConnection(java.sql.Connection c, java.lang.String preferredTestQuery)
activeCheckConnection
in interface QueryConnectionTester
public boolean equals(java.lang.Object o)
ConnectionTester
equals
in interface ConnectionTester
equals
in class java.lang.Object
public int hashCode()
ConnectionTester
hashCode
in interface ConnectionTester
hashCode
in class java.lang.Object