openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r525258 - /incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
Date Tue, 03 Apr 2007 20:02:08 GMT
Author: clr
Date: Tue Apr  3 13:02:07 2007
New Revision: 525258

URL: http://svn.apache.org/viewvc?view=rev&rev=525258
Log:
Fixed autoboxing issue

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

Modified: incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java?view=diff&rev=525258&r1=525257&r2=525258
==============================================================================
--- incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
(original)
+++ incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
Tue Apr  3 13:02:07 2007
@@ -228,7 +228,7 @@
      */
     public String getForUpdateClause(JDBCFetchConfiguration fetch, boolean forUpdate) {
         String isolationLevel = null;
-        Boolean updateClause = null;
+        boolean updateClause;
         DatabaseMetaData metaData = null;
         StringBuffer forUpdateString = new StringBuffer();
         try {
@@ -236,20 +236,20 @@
             // overrides the persistence.xml value
             if (fetch != null && fetch.getHint("openjpa.hint.updateClause")
                 !=null )
-                updateClause = (Boolean)fetch.
-                getHint("openjpa.hint.updateClause");
+                updateClause = ((Boolean)fetch.
+                    getHint("openjpa.hint.updateClause")).booleanValue();
             else 
                 updateClause = forUpdate;
             if (fetch != null &&fetch.getHint("openjpa.hint.isolationLevel")
                 !=null )
                 isolationLevel = (String)fetch.
-                getHint("openjpa.hint.isolationLevel");
+                    getHint("openjpa.hint.isolationLevel");
             else 
                 isolationLevel = conf.getTransactionIsolation();
             if (updateClause == false)
                 //This sql is not for update so add FOR Read Only clause
                 forUpdateString.append(" ").append(forReadOnlyClause)
-                .append(" ");
+                    .append(" ");
             else if (updateClause == true){
 
                 switch(db2ServerType){



Mime
View raw message