com.mchange.v2.c3p0.impl
Class DefaultConnectionTester
java.lang.Object
com.mchange.v2.c3p0.AbstractConnectionTester
com.mchange.v2.c3p0.impl.DefaultConnectionTester
- All Implemented Interfaces:
- ConnectionTester, FullQueryConnectionTester, QueryConnectionTester, UnifiedConnectionTester, java.io.Serializable
public class DefaultConnectionTester
- extends AbstractConnectionTester
- See Also:
- Serialized Form
Method Summary |
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() |
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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DefaultConnectionTester
public DefaultConnectionTester()
activeCheckConnection
public int activeCheckConnection(java.sql.Connection c,
java.lang.String query,
java.lang.Throwable[] rootCauseOutParamHolder)
- Description copied from class:
AbstractConnectionTester
- Override, but remember that preferredTestQuery and rootCauseOutParamHolder
can be null.
- Specified by:
activeCheckConnection
in interface UnifiedConnectionTester
- Specified by:
activeCheckConnection
in class AbstractConnectionTester
statusOnException
public int statusOnException(java.sql.Connection c,
java.lang.Throwable t,
java.lang.String query,
java.lang.Throwable[] rootCauseOutParamHolder)
- Description copied from class:
AbstractConnectionTester
- Override, but remember that preferredTestQuery and rootCauseOutParamHolder
can be null.
- Specified by:
statusOnException
in interface UnifiedConnectionTester
- Specified by:
statusOnException
in class AbstractConnectionTester
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 interface ConnectionTester
- Specified by:
equals
in interface UnifiedConnectionTester
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Description copied from interface:
ConnectionTester
- keep consistent with equals()
- Specified by:
hashCode
in interface ConnectionTester
- Specified by:
hashCode
in interface UnifiedConnectionTester
- Overrides:
hashCode
in class java.lang.Object