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
,java.io.Serializable
- Direct Known Subclasses:
IsValidOnlyConnectionTester30
public abstract class IsValidOnlyConnectionTester extends AbstractConnectionTester
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.mchange.v2.c3p0.UnifiedConnectionTester
CONNECTION_IS_INVALID, CONNECTION_IS_OKAY, DATABASE_IS_INVALID
-
-
Constructor Summary
Constructors Constructor Description IsValidOnlyConnectionTester()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
activeCheckConnection(java.sql.Connection c, java.lang.String preferredTestQuery, java.lang.Throwable[] rootCauseOutParamHolder)
Override, but remember thatpreferredTestQuery
androotCauseOutParamHolder
can be null.protected abstract int
getIsValidTimeout()
int
statusOnException(java.sql.Connection c, java.lang.Throwable t, java.lang.String preferredTestQuery, java.lang.Throwable[] rootCauseOutParamHolder)
Override, but remember thatpreferredTestQuery
androotCauseOutParamHolder
can be null.-
Methods inherited from class com.mchange.v2.c3p0.AbstractConnectionTester
activeCheckConnection, activeCheckConnection, activeCheckConnection, equals, hashCode, statusOnException, statusOnException, statusOnException
-
-
-
-
Method Detail
-
getIsValidTimeout
protected abstract int getIsValidTimeout()
-
activeCheckConnection
public int activeCheckConnection(java.sql.Connection c, java.lang.String preferredTestQuery, java.lang.Throwable[] rootCauseOutParamHolder)
Description copied from class:AbstractConnectionTester
Override, but remember thatpreferredTestQuery
androotCauseOutParamHolder
can be null.- Specified by:
activeCheckConnection
in interfaceUnifiedConnectionTester
- Specified by:
activeCheckConnection
in classAbstractConnectionTester
-
statusOnException
public int statusOnException(java.sql.Connection c, java.lang.Throwable t, java.lang.String preferredTestQuery, java.lang.Throwable[] rootCauseOutParamHolder)
Description copied from class:AbstractConnectionTester
Override, but remember thatpreferredTestQuery
androotCauseOutParamHolder
can be null.- Specified by:
statusOnException
in interfaceUnifiedConnectionTester
- Specified by:
statusOnException
in classAbstractConnectionTester
-
-