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, statusOnExceptionpublic static boolean probableInvalidDb(java.sql.SQLException sqle)
public int activeCheckConnection(java.sql.Connection c,
java.lang.String query,
java.lang.Throwable[] rootCauseOutParamHolder)
AbstractConnectionTesteractiveCheckConnection in interface UnifiedConnectionTesteractiveCheckConnection in class AbstractConnectionTesterpublic int statusOnException(java.sql.Connection c,
java.lang.Throwable t,
java.lang.String query,
java.lang.Throwable[] rootCauseOutParamHolder)
AbstractConnectionTesterstatusOnException in interface UnifiedConnectionTesterstatusOnException in class AbstractConnectionTesterpublic boolean equals(java.lang.Object o)
ConnectionTesterequals in interface ConnectionTesterequals in interface UnifiedConnectionTesterequals in class java.lang.Objectpublic int hashCode()
ConnectionTesterhashCode in interface ConnectionTesterhashCode in interface UnifiedConnectionTesterhashCode in class java.lang.Object