snaq.db
Class Select1Validator

java.lang.Object
  extended by snaq.db.QueryValidator
      extended by snaq.db.SimpleQueryValidator
          extended by snaq.db.Select1Validator
All Implemented Interfaces:
ConnectionValidator

public class Select1Validator
extends SimpleQueryValidator

Validates database connections by issuing the SQL query: "SELECT 1". It does not check if any results are returned

This class is provided as a convenience for providing connection validation.

Author:
Giles Winstanley

Constructor Summary
Select1Validator()
          Creates a new Select1Validator instance.
 
Method Summary
 
Methods inherited from class snaq.db.SimpleQueryValidator
checkResults, getQueryString
 
Methods inherited from class snaq.db.QueryValidator
isValid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Select1Validator

public Select1Validator()
Creates a new Select1Validator instance.