Fixed autoboxing issue

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525258 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Craig Russell 2007-04-03 20:02:07 +00:00
parent 9e8e265d6c
commit 4754f0921c
1 changed files with 5 additions and 5 deletions

View File

@ -228,7 +228,7 @@ public class DB2Dictionary
*/
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 @@ public class DB2Dictionary
// 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){