org.jboss.jca.adapters.jdbc.extensions.oracle
Class OracleValidConnectionChecker

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

public class OracleValidConnectionChecker
extends Object
implements ValidConnectionChecker, Serializable

Implements check valid connection sql

Version:
$Revision: 105425 $
Author:
Adrian Brock
See Also:
Serialized Form

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

Constructor Detail

OracleValidConnectionChecker

public OracleValidConnectionChecker()
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 Integer getPingTimeOut()
Get the pingTimeOut.

Returns:
the pingTimeOut.

setPingTimeOut

public void setPingTimeOut(Integer pingTimeOut)
Set the pingTimeOut.

Parameters:
pingTimeOut - The pingTimeOut to set.


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