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 TypeMethodDescriptionint
activeCheckConnection
(Connection c, String preferredTestQuery, Throwable[] rootCauseOutParamHolder) Override, but remember that preferredTestQuery and rootCauseOutParamHolder can be null.protected abstract int
int
statusOnException
(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, statusOnException
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:AbstractConnectionTester
Override, but remember that preferredTestQuery and rootCauseOutParamHolder can be null.- Specified by:
activeCheckConnection
in interfaceUnifiedConnectionTester
- Specified by:
activeCheckConnection
in classAbstractConnectionTester
-
statusOnException
public int statusOnException(Connection c, Throwable t, String preferredTestQuery, Throwable[] rootCauseOutParamHolder) Description copied from class:AbstractConnectionTester
Override, but remember that preferredTestQuery and rootCauseOutParamHolder can be null.- Specified by:
statusOnException
in interfaceUnifiedConnectionTester
- Specified by:
statusOnException
in classAbstractConnectionTester
-