org.jboss.jca.adapters.jdbc.extensions.novendor
Class JDBC4ValidConnectionChecker

java.lang.Object
  extended by org.jboss.jca.adapters.jdbc.extensions.novendor.JDBC4ValidConnectionChecker
All Implemented Interfaces:
Serializable, ValidConnectionChecker

public class JDBC4ValidConnectionChecker
extends Object
implements ValidConnectionChecker, Serializable

Use JDBC4 for connection validation

Author:
Jesper Pedersen
See Also:
Serialized Form

Constructor Summary
JDBC4ValidConnectionChecker()
          Constructor
 
Method Summary
 int getPingTimeOut()
          Get the pingTimeOut.
 SQLException isValidConnection(Connection c)
          Checks the connection is valid
 void setPingTimeOut(int v)
          Set the pingTimeOut.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBC4ValidConnectionChecker

public JDBC4ValidConnectionChecker()
Constructor

Method Detail

isValidConnection

public SQLException isValidConnection(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

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.


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)