openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r810306 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/ParameterExpressionImpl.java
Date Tue, 01 Sep 2009 23:23:08 GMT
Author: ppoddar
Date: Tue Sep  1 23:23:07 2009
New Revision: 810306

URL: http://svn.apache.org/viewvc?rev=810306&view=rev
Log:
OPENJPA-1276: Add CQL for Parameter

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/ParameterExpressionImpl.java

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/ParameterExpressionImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/ParameterExpressionImpl.java?rev=810306&r1=810305&r2=810306&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/ParameterExpressionImpl.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/ParameterExpressionImpl.java
Tue Sep  1 23:23:07 2009
@@ -96,4 +96,9 @@
         
         return param;
     }   
+    
+    @Override
+    public StringBuilder asValue(CriteriaQueryImpl<?> q) {
+        return Expressions.asValue(q, ":", _name == null ? "param" : _name);
+    }
 }



Mime
View raw message