Author: doogie
Date: Tue May 29 04:16:57 2012
New Revision: 1343508

URL: http://svn.apache.org/viewvc?rev=1343508&view=rev
Log:
DEPRECATION: Add a new GenericValue.getRelated() variant that takes a
boolean useCache parameter.

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericValue.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericValue.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericValue.java?rev=1343508&r1=1343507&r2=1343508&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericValue.java 
(original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericValue.java Tue May 
29 04:16:57 2012
@@ -200,6 +200,18 @@ public class GenericValue extends Generi
         return this.getDelegator().getRelated(relationName, null, null, this, 
true);
     }
 
+    /** Get the named Related Entity for the GenericValue from the persistent 
store
+     *@param relationName String containing the relation name which is the 
combination of relation.title and relation.rel-entity-name as specified in the 
entity XML definition file
+     * @param byAndFields the fields that must equal in order to keep; may be 
null
+     * @param orderBy The fields of the named entity to order the query by; 
may be null;
+     *      optionally add a " ASC" for ascending or " DESC" for descending
+     * @param useCache Whether to cache the results
+     *@return List of GenericValue instances as specified in the relation 
definition
+     */
+    public List<GenericValue> getRelated(String relationName, Map<String, ? 
extends Object> byAndFields, List<String> orderBy, boolean useCache) throws 
GenericEntityException {
+        return this.getDelegator().getRelated(relationName, byAndFields, 
orderBy, this, useCache);
+    }
+
     /**
      * Get the named Related Entity for the GenericValue from the persistent 
store across another Relation.
      * Helps to get related Values in a multi-to-multi relationship.


Reply via email to