站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 connector API Documentation 英文版文档

CheckValidConnectionSQL (JBoss Connector API) - JBoss 4.0.1 sp1 connector API Documentation 英文版文档


org.jboss.resource.adapter.jdbc
Class CheckValidConnectionSQL

java.lang.Object
  extended byorg.jboss.resource.adapter.jdbc.CheckValidConnectionSQL
All Implemented Interfaces:
Serializable, ValidConnectionChecker

public class CheckValidConnectionSQL
extends Object
implements ValidConnectionChecker, Serializable

Implements check valid connection sql

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

Constructor Summary
CheckValidConnectionSQL()
           
CheckValidConnectionSQL(String sql)
           
 
Method Summary
 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

CheckValidConnectionSQL

public CheckValidConnectionSQL()

CheckValidConnectionSQL

public CheckValidConnectionSQL(String sql)
Method Detail

isValidConnection

public SQLException isValidConnection(Connection c)
Description copied from interface: ValidConnectionChecker
Checks the connection is valid

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


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.