Is there a library which can determine for a jdbc driver class the appropriate validation query to use?
For example If the jdbc driver is com.mysql.jdbc.Driver or com.mysql.jdbc.jdbc2.optional.MysqlXADataSource the library will know the validation query is "SELECT 1"
c3po http://www.mchange.com/projects/c3p0/index.html#preferredTestQuery
dbcp http://commons.apache.org/dbcp/configuration.html "validationQuery"