Class JDBC4ValidConnectionChecker
java.lang.Object
org.jboss.jca.adapters.jdbc.extensions.novendor.JDBC4ValidConnectionChecker
- All Implemented Interfaces:
Serializable,ValidConnectionChecker
- Direct Known Subclasses:
GoodForSecondsValidConnectionChecker,OracleValidConnectionChecker
public class JDBC4ValidConnectionChecker
extends Object
implements ValidConnectionChecker, Serializable
Use JDBC4 for connection validation
- Author:
- Jesper Pedersen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the pingTimeOut.Checks the connection is validvoidsetPingTimeOut(int v) Set the pingTimeOut.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.jca.adapters.jdbc.spi.ValidConnectionChecker
setQueryTimeout
-
Constructor Details
-
JDBC4ValidConnectionChecker
public JDBC4ValidConnectionChecker()Constructor
-
-
Method Details
-
isValidConnection
Checks the connection is valid- Specified by:
isValidConnectionin interfaceValidConnectionChecker- Parameters:
c- the connection- Returns:
- Exception when not valid, null when valid
-
getPingTimeOut
public int getPingTimeOut()Get the pingTimeOut.- Returns:
- the pingTimeOut.
-
setPingTimeOut
public void setPingTimeOut(int v) Set the pingTimeOut.- Parameters:
v- The pingTimeOut to set.
-