Package com.mchange.v2.c3p0.util
Class IsValidOnlyConnectionTester
java.lang.Object
com.mchange.v2.c3p0.AbstractConnectionTester
com.mchange.v2.c3p0.util.IsValidOnlyConnectionTester
- All Implemented Interfaces:
ConnectionTester,FullQueryConnectionTester,QueryConnectionTester,UnifiedConnectionTester,Serializable
- Direct Known Subclasses:
IsValidOnlyConnectionTester30
- See Also:
-
Field Summary
Fields inherited from interface com.mchange.v2.c3p0.UnifiedConnectionTester
CONNECTION_IS_INVALID, CONNECTION_IS_OKAY, DATABASE_IS_INVALID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintactiveCheckConnection(Connection c, String preferredTestQuery, Throwable[] rootCauseOutParamHolder) Override, but remember that preferredTestQuery and rootCauseOutParamHolder can be null.protected abstract intintstatusOnException(Connection c, Throwable t, String preferredTestQuery, Throwable[] rootCauseOutParamHolder) Override, but remember that preferredTestQuery and rootCauseOutParamHolder can be null.Methods inherited from class com.mchange.v2.c3p0.AbstractConnectionTester
activeCheckConnection, activeCheckConnection, activeCheckConnection, statusOnException, statusOnException, statusOnExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mchange.v2.c3p0.UnifiedConnectionTester
equals, hashCode
-
Constructor Details
-
IsValidOnlyConnectionTester
public IsValidOnlyConnectionTester()
-
-
Method Details
-
getIsValidTimeout
protected abstract int getIsValidTimeout() -
activeCheckConnection
public int activeCheckConnection(Connection c, String preferredTestQuery, Throwable[] rootCauseOutParamHolder) Description copied from class:AbstractConnectionTesterOverride, but remember that preferredTestQuery and rootCauseOutParamHolder can be null.- Specified by:
activeCheckConnectionin interfaceUnifiedConnectionTester- Specified by:
activeCheckConnectionin classAbstractConnectionTester
-
statusOnException
public int statusOnException(Connection c, Throwable t, String preferredTestQuery, Throwable[] rootCauseOutParamHolder) Description copied from class:AbstractConnectionTesterOverride, but remember that preferredTestQuery and rootCauseOutParamHolder can be null.- Specified by:
statusOnExceptionin interfaceUnifiedConnectionTester- Specified by:
statusOnExceptionin classAbstractConnectionTester
-