Package org.jboss.jca.adapters.jdbc
Class CheckValidConnectionSQL
java.lang.Object
org.jboss.jca.adapters.jdbc.CheckValidConnectionSQL
- All Implemented Interfaces:
Serializable,ValidConnectionChecker
- Direct Known Subclasses:
DB2ValidConnectionChecker,MSSQLValidConnectionChecker,MySQLValidConnectionChecker,PostgreSQLValidConnectionChecker,SybaseValidConnectionChecker
Implements check valid connection sql
- Version:
- $Revision: 71554 $
- Author:
- Adrian Brock
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorConstructor -
Method Summary
Modifier and TypeMethodDescriptionChecks the connection is validvoidsetQueryTimeout(int queryTimeout)
-
Constructor Details
-
CheckValidConnectionSQL
public CheckValidConnectionSQL()Constructor -
CheckValidConnectionSQL
Constructor- Parameters:
sql- The SQL string
-
-
Method Details
-
isValidConnection
Checks the connection is valid- Specified by:
isValidConnectionin interfaceValidConnectionChecker- Parameters:
c- the connection- Returns:
- Exception when not valid, null when valid
-
setQueryTimeout
public void setQueryTimeout(int queryTimeout)
-