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 Thu, 06 Sep 2007 07:55:18 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

------------------------------------------------------------------------------
  import java.sql.DatabaseMetaData;
  import java.sql.DriverManager;
  /**
-  * Checks the version of the derby driver currently loaded.
+  * Checks the version of the Derby software running a database.
   */
  public class DerbyVersionChecker {
      
@@ -66, +66 @@

              // replace the following URL with your own, or use an existing connection:
              Connection conn = DriverManager.getConnection("jdbc:derby:testDB;create=true");
              
-             // this will print the name and version of the JDBC driver used for this connection
+             // this will print the name and version of the software used for running this
Derby system
              DatabaseMetaData dbmd = conn.getMetaData();
              String productName = dbmd.getDatabaseProductName();
              String productVersion = dbmd.getDatabaseProductVersion();
@@ -121, +121 @@

      }
     
     /**
-     * Checks whether or not we can load a specific class, and uses this to 
+     * Checks whether or not we can load a specific class.
-     * determine JDBC level.
      * @param className Name of class to attempt to load.
      * @return true if class can be loaded, false otherwise.
      */

Mime
View raw message