|
Author: doogie
Date: Tue May 29 04:21:21 2012 New Revision: 1343531 URL: http://svn.apache.org/viewvc?rev=1343531&view=rev Log: Deprecate GenericValue.getRelated(ByAnd|OrderBy)(|Cache), replaced with the single getRelated variant. GenericValue.getRelatedByAnd(String, Map) replaced by GenericValue.getRelated(String, Map, List, boolean) GenericValue.getRelatedByAndCache(String, Map) replaced by GenericValue.getRelated(String, Map, List, boolean) GenericValue.getRelatedOrderBy(String, List) replaced by GenericValue.getRelated(String, Map, List, boolean) GenericValue.getRelatedOrderByCache(String, List) replaced by GenericValue.getRelated(String, Map, List, boolean) 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=1343531&r1=1343530&r2=1343531&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:21:21 2012 @@ -379,7 +379,9 @@ public class GenericValue extends Generi *@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 fields the fields that must equal in order to keep *@return List of GenericValue instances as specified in the relation definition + *@deprecated use {@link #getRelated(String, Map, List, boolean)} */ + @Deprecated public List<GenericValue> getRelatedByAnd(String relationName, Map<String, ? extends Object> fields) throws GenericEntityException { return this.getDelegator().getRelated(relationName, fields, null, this, false); } @@ -389,7 +391,9 @@ public class GenericValue extends Generi *@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 fields the fields that must equal in order to keep *@return List of GenericValue instances as specified in the relation definition + *@deprecated use {@link #getRelated(String, Map, List, boolean)} */ + @Deprecated public List<GenericValue> getRelatedByAndCache(String relationName, Map<String, ? extends Object> fields) throws GenericEntityException { return this.getDelegator().getRelated(relationName, fields, null, this, true); } @@ -409,7 +413,9 @@ public class GenericValue extends Generi *@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 orderBy the order that they should be returned *@return List of GenericValue instances as specified in the relation definition + *@deprecated use {@link #getRelated(String, Map, List, boolean)} */ + @Deprecated public List<GenericValue> getRelatedOrderBy(String relationName, List<String> orderBy) throws GenericEntityException { return this.getDelegator().getRelated(relationName, null, orderBy, this, false); } @@ -419,7 +425,9 @@ public class GenericValue extends Generi *@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 orderBy the order that they should be returned *@return List of GenericValue instances as specified in the relation definition + *@deprecated use {@link #getRelated(String, Map, List, boolean)} */ + @Deprecated public List<GenericValue> getRelatedOrderByCache(String relationName, List<String> orderBy) throws GenericEntityException { return this.getDelegator().getRelated(relationName, null, orderBy, this, true); } |
| Free forum by Nabble | Edit this page |
