svn commit: r1640679 - /ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/GroovyBaseScript.groovy

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

svn commit: r1640679 - /ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/GroovyBaseScript.groovy

jacopoc
Author: jacopoc
Date: Thu Nov 20 05:28:49 2014
New Revision: 1640679

URL: http://svn.apache.org/r1640679
Log:
Removed the findOne and findList methods from the OFBiz DSL: with the new support for the Entity Query Builder (thanks Scott) we can then run much more powerful queries in a simpler way.

Modified:
    ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/GroovyBaseScript.groovy

Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/GroovyBaseScript.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/GroovyBaseScript.groovy?rev=1640679&r1=1640678&r2=1640679&view=diff
==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/GroovyBaseScript.groovy (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/GroovyBaseScript.groovy Thu Nov 20 05:28:49 2014
@@ -45,18 +45,6 @@ abstract class GroovyBaseScript extends
         return result = binding.getVariable('delegator').makeValue(entityName);
     }
 
-    Map findOne(String entityName, Map inputMap) {
-        Map genericValue = binding.getVariable('delegator').findOne(entityName, inputMap, true);
-        // TODO: get the list of pk fields from the map and use them only
-        return genericValue;
-    }
-
-    List findList(String entityName, Map inputMap) {
-        List genericValues = binding.getVariable('delegator').findByAnd(entityName, inputMap, null, false);
-        // TODO: get the list of entity fields from the map and use them only
-        return genericValues;
-    }
-
     EntityQuery from(def entity) {
         return EntityQuery.use(binding.getVariable('delegator')).from(entity);
     }