Class MySQLValidConnectionChecker
java.lang.Object
org.jboss.jca.adapters.jdbc.CheckValidConnectionSQL
org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker
- All Implemented Interfaces:
Serializable,ValidConnectionChecker
Implements check valid connection sql Requires MySQL driver 3.1.8 or later.
This should work on just about any version of the database itself but will
only be "fast" on version 3.22.1 and later. Prior to that version it just
does "SELECT 1" anyhow.
- Version:
- $Revision: 78074 $
- Author:
- Adrian Brock, Andrew C. Oliver, Jim Moran
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChecks the connection is validMethods inherited from class org.jboss.jca.adapters.jdbc.CheckValidConnectionSQL
setQueryTimeout
-
Constructor Details
-
MySQLValidConnectionChecker
public MySQLValidConnectionChecker()Constructor
-
-
Method Details
-
isValidConnection
Checks the connection is valid- Specified by:
isValidConnectionin interfaceValidConnectionChecker- Overrides:
isValidConnectionin classCheckValidConnectionSQL- Parameters:
c- the connection- Returns:
- Exception when not valid, null when valid
-