db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r518861 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBC.java
Date Fri, 16 Mar 2007 04:31:58 GMT
Author: djd
Date: Thu Mar 15 21:31:54 2007
New Revision: 518861

URL: http://svn.apache.org/viewvc?view=rev&rev=518861
Log:
Add some comments to JDBC (for junit test) to clarify the JDBC.vmSupports() methods.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBC.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBC.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBC.java?view=diff&rev=518861&r1=518860&r2=518861
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBC.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBC.java Thu Mar 15 21:31:54
2007
@@ -34,7 +34,9 @@
 
 /**
  * JDBC utility methods for the JUnit tests.
- *
+ * Note that JSR 169 is a subset of JDBC 3 and
+ * JDBC 3 is a subset of JDBC 4.
+ * The base level for the Derby tests is JSR 169.
  */
 public class JDBC {
     
@@ -78,10 +80,12 @@
         }    	
     }
  	/**
- 	 * <p>
 	 * Return true if the virtual machine environment
-	 * supports JDBC4 or later.
-	 * </p>
+	 * supports JDBC4 or later. JDBC 4 is a superset
+     * of JDBC 3 and of JSR169.
+     * <BR>
+     * This method returns true in a JDBC 4 environment
+     * and false in a JDBC 3 or JSR 169 environment.
 	 */
 	public static boolean vmSupportsJDBC4()
 	{
@@ -89,10 +93,12 @@
 	       && HAVE_SQLXML;
 	}
  	/**
- 	 * <p>
 	 * Return true if the virtual machine environment
-	 * supports JDBC3 or later.
-	 * </p>
+	 * supports JDBC3 or later. JDBC 3 is a super-set of JSR169
+     * and a subset of JDBC 4.
+     * <BR>
+     * This method will return true in a JDBC 3 or JDBC 4
+     * environment, but false in a JSR169 environment.
 	 */
 	public static boolean vmSupportsJDBC3()
 	{
@@ -112,10 +118,12 @@
 	}
 
 	/**
- 	 * <p>
 	 * Return true if the virtual machine environment
-	 * supports JSR169 (JDBC 3 subset).
-	 * </p>
+	 * supports JSR169. JSR169 is a subset of JDBC 3
+     * and hence a subset of JDBC 4 as well.
+     * <BR>
+     * This method returns true only in a JSR 169
+     * environment.
 	 */
 	public static boolean vmSupportsJSR169()
 	{



Mime
View raw message