org.jboss.jca.adapters.jdbc.extensions.mysql

## Class MySQLValidConnectionChecker

- java.lang.Object
- - org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker

- All Implemented Interfaces:
    java.io.Serializable, ValidConnectionChecker

      public class MySQLValidConnectionChecker
      extends java.lang.Object
      implements ValidConnectionChecker, java.io.Serializable

  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:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MySQLValidConnectionChecker()` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.sql.SQLException` | `isValidConnection(java.sql.Connection c)` Checks the connection is valid

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MySQLValidConnectionChecker

          public MySQLValidConnectionChecker()

      Constructor

  - ### Method Detail

    - #### isValidConnection

          public java.sql.SQLException isValidConnection(java.sql.Connection c)

      Checks the connection is valid
      Specified by:
        `isValidConnection` in interface `ValidConnectionChecker`
      Parameters:
        `c` - the connection
      Returns:
        Exception when not valid, null when valid

Copyright © 2014 IronJacamar (http://www.ironjacamar.org)