You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/03/28 07:27:11 UTC

svn commit: r523181 - in /ofbiz/trunk/framework: entity/src/org/ofbiz/entity/util/EntityDataLoader.java entityext/src/org/ofbiz/entityext/data/EntityDataLoadContainer.java

Author: jaz
Date: Tue Mar 27 22:27:10 2007
New Revision: 523181

URL: http://svn.apache.org/viewvc?view=rev&rev=523181
Log:
fixed so loading data for just a specific component works without having to specify readers

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java
    ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/data/EntityDataLoadContainer.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java?view=diff&rev=523181&r1=523180&r2=523181
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java Tue Mar 27 22:27:10 2007
@@ -77,6 +77,11 @@
         return getUrlList(helperName, null, datasourceInfo.readDatas);
     }
 
+    public static List getUrlList(String helperName, String componentName) {
+        DatasourceInfo datasourceInfo = EntityConfigUtil.getDatasourceInfo(helperName);
+        return getUrlList(helperName, componentName, datasourceInfo.readDatas);
+    }
+
     public static List getUrlList(String helperName, List readerNames) {
         return getUrlList(helperName, null, readerNames);
     }

Modified: ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/data/EntityDataLoadContainer.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/data/EntityDataLoadContainer.java?view=diff&rev=523181&r1=523180&r2=523181
==============================================================================
--- ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/data/EntityDataLoadContainer.java (original)
+++ ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/data/EntityDataLoadContainer.java Tue Mar 27 22:27:10 2007
@@ -188,7 +188,7 @@
         if (readerNames != null) {
             urlList = EntityDataLoader.getUrlList(helperName, component, readerNames);
         } else if (!"none".equalsIgnoreCase(this.readers)) {
-            urlList = EntityDataLoader.getUrlList(helperName);
+            urlList = EntityDataLoader.getUrlList(helperName, component);
         }
 
         // need a list if it is empty