org.jboss.resource.adapter.jdbc.vendor
Class PostgreSQLValidConnectionChecker
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostgreSQLValidConnectionChecker
public PostgreSQLValidConnectionChecker()
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.