openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtyle...@apache.org
Subject svn commit: r778116 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Date Sun, 24 May 2009 10:55:26 GMT
Author: mtylenda
Date: Sun May 24 10:55:25 2009
New Revision: 778116

URL: http://svn.apache.org/viewvc?rev=778116&view=rev
Log:
DBDictionary: Correct errors in comments.

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java?rev=778116&r1=778115&r2=778116&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Sun May 24 10:55:25 2009
@@ -390,7 +390,7 @@
      */
     protected final Set selectWordSet = new HashSet();
 
-    // when we store values that lose precion, track the types so that the
+    // when we store values that lose precision, track the types so that the
     // first time it happens we can warn the user
     private Set _precisionWarnedTypes = null;
 
@@ -505,7 +505,7 @@
         // try from the most generic, and if errors occur, try
         // less generic types; this enables us to handle values
         // like Double.NaN without having to introspect on the
-        // ResultSetMetaData (bug #1053). note that we handle
+        // ResultSetMetaData (bug #1053). Note that we handle
         // generic exceptions, since some drivers may throw
         // NumberFormatExceptions, whereas others may throw SQLExceptions
         try {
@@ -1033,7 +1033,7 @@
     public void setCalendar(PreparedStatement stmnt, int idx, Calendar val,
         Column col)
         throws SQLException {
-        // by default we merely delegate the the Date parameter
+        // by default we merely delegate to the Date parameter
         setDate(stmnt, idx, val.getTime(), col);
     }
 
@@ -1082,7 +1082,7 @@
     }
 
     /**
-     * Set the given value as a parameters to the statement. The column
+     * Set null as a parameter to the statement. The column
      * type will come from {@link Types}.
      */
     public void setNull(PreparedStatement stmnt, int idx, int colType,
@@ -1108,7 +1108,7 @@
     }
 
     /**
-     * Set the given value as a parameters to the statement. The column
+     * Set the given value as a parameter to the statement. The column
      * type will come from {@link Types}.
      */
     public void setObject(PreparedStatement stmnt, int idx, Object val,
@@ -1727,7 +1727,7 @@
      * those types (or add the type names to the
      * <code>fixedSizeTypeNameSet</code>).
      * 
-     * <P>Some databases support "type modifiers" for example the unsigned
+     * <P>Some databases support "type modifiers", for example the unsigned
      * "modifier" in MySQL. In these cases the size should go between the type 
      * and the "modifier", instead of after the modifier. For example 
      * CREATE table FOO ( myint INT (10) UNSIGNED . . .) instead of 
@@ -1759,8 +1759,8 @@
      * 
      * @see appendSize
      * 
-     * @param typeName  The SQL type ie INT
-     * @param size      The size clause ie (10)
+     * @param typeName  The SQL type e.g. INT
+     * @param size      The size clause e.g. (10)
      * @return          The typeName + size clause. Usually the size clause will
      *                  be appended to typeName. If the typeName contains a 
      *                  marker : {0} or if typeName contains a modifier the 
@@ -1813,7 +1813,7 @@
     ///////////
 
     /**
-     * Set the name of the join syntax to use: sql92, traditional, database
+     * Set the name of the join syntax to use: sql92, traditional, database.
      */
     public void setJoinSyntax(String syntax) {
         if ("sql92".equals(syntax))
@@ -1952,7 +1952,7 @@
     /**
      * Returns the SQL for a bulk operation, either a DELETE or an UPDATE.
      *
-     * @param mapping the mappng against which we are operating
+     * @param mapping the mapping against which we are operating
      * @param sel the Select that will constitute the WHERE clause
      * @param store the current store
      * @param updateParams the Map that holds the update parameters; a null
@@ -2018,7 +2018,7 @@
 
         // we need to use a subselect if we are to bulk delete where
         // the select includes multiple tables; if the database
-        // doesn't support it, then we need to sigal this by returning null
+        // doesn't support it, then we need to signal this by returning null
         if (!supportsSubselect || !supportsCorrelatedSubselect)
             return null;
 
@@ -4535,7 +4535,7 @@
         return storeEx;
     }
 
-    /*
+    /**
      * Determine if the SQLException argument matches any element in the
      * errorStates. Dictionary subclass can override this method and extract
      * SQLException data to figure out if the exception is recoverable.



Mime
View raw message