svn commit: r1782498 - /ofbiz/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/entityops/FindByAnd.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1782498 - /ofbiz/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/entityops/FindByAnd.java

jleroux@apache.org
Author: jleroux
Date: Fri Feb 10 18:46:04 2017
New Revision: 1782498

URL: http://svn.apache.org/viewvc?rev=1782498&view=rev
Log:
Fixed: SimpleMethod: FindByAnd never using EntityListIterator
(OFBIZ-9152)

Since the introduction of EntityQuery there was no distinction between a simple
method tags
<find-by-and use-iterator="true"> and <find-by-and use-iterator="false">
(except cache handling).
There is a condition "if (useIterator)" but with entityQueries did use
"[...].queryList()".

Thanks: Mirko Vogelsmeier

Modified:
    ofbiz/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/entityops/FindByAnd.java

Modified: ofbiz/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/entityops/FindByAnd.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/entityops/FindByAnd.java?rev=1782498&r1=1782497&r2=1782498&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/entityops/FindByAnd.java (original)
+++ ofbiz/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/entityops/FindByAnd.java Fri Feb 10 18:46:04 2017
@@ -90,7 +90,7 @@ public final class FindByAnd extends Ent
                                                                   .from(entityName)
                                                                   .where(whereCond)
                                                                   .orderBy(orderByNames)
-                                                                  .queryList());
+                                                                  .queryIterator());
             } else {
                 listFma.put(methodContext.getEnvMap(), EntityQuery.use(delegator)
                                                                   .select(UtilMisc.toSet(fieldsToSelectListFma.get(methodContext.getEnvMap())))