public final class DefaultConnectionTester extends AbstractConnectionTester
Modifier and Type | Class and Description |
---|---|
static interface |
DefaultConnectionTester.QuerylessTestRunner |
CONNECTION_IS_INVALID, CONNECTION_IS_OKAY, DATABASE_IS_INVALID
Constructor and Description |
---|
DefaultConnectionTester() |
Modifier and Type | Method and Description |
---|---|
int |
activeCheckConnection(java.sql.Connection c,
java.lang.String query,
java.lang.Throwable[] rootCauseOutParamHolder)
Override, but remember that preferredTestQuery and rootCauseOutParamHolder
can be null.
|
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()
|
static boolean |
probableInvalidDb(java.sql.SQLException sqle) |
int |
statusOnException(java.sql.Connection c,
java.lang.Throwable t,
java.lang.String query,
java.lang.Throwable[] rootCauseOutParamHolder)
Override, but remember that preferredTestQuery and rootCauseOutParamHolder
can be null.
|
activeCheckConnection, activeCheckConnection, activeCheckConnection, statusOnException, statusOnException, statusOnException
public static boolean probableInvalidDb(java.sql.SQLException sqle)
public int activeCheckConnection(java.sql.Connection c, java.lang.String query, java.lang.Throwable[] rootCauseOutParamHolder)
AbstractConnectionTester
activeCheckConnection
in interface UnifiedConnectionTester
activeCheckConnection
in class AbstractConnectionTester
public int statusOnException(java.sql.Connection c, java.lang.Throwable t, java.lang.String query, java.lang.Throwable[] rootCauseOutParamHolder)
AbstractConnectionTester
statusOnException
in interface UnifiedConnectionTester
statusOnException
in class AbstractConnectionTester
public boolean equals(java.lang.Object o)
ConnectionTester
equals
in interface ConnectionTester
equals
in interface UnifiedConnectionTester
equals
in class java.lang.Object
public int hashCode()
ConnectionTester
hashCode
in interface ConnectionTester
hashCode
in interface UnifiedConnectionTester
hashCode
in class java.lang.Object