title: How can I determine whether a JDBC driver is Type 4?
body: <p>We have an application that runs on Java 1.6 and has the ability to talk to RDBMS systems via custom plugins. We don't care what type of database a customer has, but we did decide to require a Type 4 driver, for a variety of reasons.</p>
  
  <p>I want to programmatically decide whether a driver is Type 4 so that I can reject it right away rather than spend time debugging problems later only to find out that the driver is not Type 4. Since I don't know what the vendor is, I can't just look at the version number. I've looked at Driver.jdbcCompliant() but this is not a necessary condition for the driver being Type 4. I've also looked at creating a Connection and then doing reflection on it to see if it implements certain methods like isValid(), but again I realized this does not necessarily guarantee the driver is Type 4. Any suggestions?</p>