|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker
public class MySQLValidConnectionChecker

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.
| Constructor Summary | |
|---|---|
MySQLValidConnectionChecker()
Constructor |
|
| Method Summary | |
|---|---|
Integer |
getPingTimeOut()
Get the pingTimeOut. |
SQLException |
isValidConnection(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 |
|---|
public MySQLValidConnectionChecker()
| Method Detail |
|---|
public SQLException isValidConnection(Connection c)
isValidConnection in interface ValidConnectionCheckerc - the connection
public final Integer getPingTimeOut()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||