db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "VersionInfo" by JohnHEmbretsen
Date Wed, 07 Nov 2007 15:35:34 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by JohnHEmbretsen:
http://wiki.apache.org/db-derby/VersionInfo

The comment on the change is:
Added checks for older JDBC versions than JDBC 3.

------------------------------------------------------------------------------
              } else {
                  System.out.println("JSR-169");
              }
+         } else if (haveClass("java.sql.Blob")) {
+             // new in JDBC 2.0.
+             // We already checked for JDBC 3.0, 4.0 and JSR-169, all of which also
+             // include this class. Chances are good this is JDBC 2.x
+             System.out.println("JDBC 2");
+         } else if (haveClass("java.sql.Connection")) {
+             // included in most (all?) JDBC specs
+             System.out.println("Older than JDBC 2.0");
          } else {
+             // JDBC support is missing (or is older than JDBC 1.0?)
-             System.out.println("JDBC 2");
+             System.out.println("No valid JDBC support found");
          }
      }
     

Mime
View raw message