org.jboss.resource.adapter.jdbc.vendor
Class PostgreSQLValidConnectionChecker

java.lang.Object
  extended by org.jboss.resource.adapter.jdbc.vendor.PostgreSQLValidConnectionChecker
All Implemented Interfaces:
Serializable, ValidConnectionChecker

public class PostgreSQLValidConnectionChecker
extends Object
implements ValidConnectionChecker, Serializable

Checks a PostgreSQL to see if it is alive. Uses an empty query.

Author:
Michael Barker, Weston Price
See Also:
Serialized Form

Constructor Summary
PostgreSQLValidConnectionChecker()
           
 
Method Summary
 SQLException isValidConnection(Connection cn)
          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

PostgreSQLValidConnectionChecker

public PostgreSQLValidConnectionChecker()
Method Detail

isValidConnection

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

Specified by:
isValidConnection in interface ValidConnectionChecker
Parameters:
cn - the connection
Returns:
Exception when not valid, null when valid
See Also:
ValidConnectionChecker.isValidConnection(java.sql.Connection)


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