|
Author: doogie
Date: Tue May 29 04:16:51 2012 New Revision: 1343507 URL: http://svn.apache.org/viewvc?rev=1343507&view=rev Log: Deprecate all Delegator.getRelated and Delegator.getRelatedCache and add a version that takes a cache parameter. This Continuing the simplication of the entity api, this is the final step to replacing all the GenericValue.getRelated(and cache versions as well) with a variant that takes a boolean useCache parameter. Delegator.getRelated(String, Map, List, GenericValue) is replaced by Delegator.getRelated(String, Map, List, GenericValue, boolean). Delegator.getRelatedCache(String, GenericValue) is replaced by Delegator.getRelated(String, Map, List, GenericValue, boolean). Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/Delegator.java ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/Delegator.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/Delegator.java?rev=1343507&r1=1343506&r2=1343507&view=diff ============================================================================== --- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/Delegator.java (original) +++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/Delegator.java Tue May 29 04:16:51 2012 @@ -775,7 +775,9 @@ public interface Delegator { * GenericValue instance containing the entity * @return List of GenericValue instances as specified in the relation * definition + * @deprecated use {@link #getRelated(String, Map, List, GenericValue, boolean)} */ + @Deprecated public List<GenericValue> getRelated(String relationName, Map<String, ? extends Object> byAndFields, List<String> orderBy, GenericValue value) throws GenericEntityException; /** @@ -791,7 +793,9 @@ public interface Delegator { * GenericValue instance containing the entity * @return List of GenericValue instances as specified in the relation * definition + * @deprecated use {@link #getRelated(String, Map, List, GenericValue, boolean)} */ + @Deprecated public List<GenericValue> getRelatedCache(String relationName, GenericValue value) throws GenericEntityException; /** Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java?rev=1343507&r1=1343506&r2=1343507&view=diff ============================================================================== --- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java (original) +++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java Tue May 29 04:16:51 2012 @@ -1942,7 +1942,9 @@ public class GenericDelegator implements /* (non-Javadoc) * @see org.ofbiz.entity.Delegator#getRelated(java.lang.String, java.util.Map, java.util.List, org.ofbiz.entity.GenericValue) + * @deprecated use {@link #getRelated(String, Map, List, GenericValue, boolean) */ + @Deprecated public List<GenericValue> getRelated(String relationName, Map<String, ? extends Object> byAndFields, List<String> orderBy, GenericValue value) throws GenericEntityException { return getRelated(relationName, byAndFields, orderBy, value, false); } @@ -2000,7 +2002,9 @@ public class GenericDelegator implements /* (non-Javadoc) * @see org.ofbiz.entity.Delegator#getRelatedCache(java.lang.String, org.ofbiz.entity.GenericValue) + * @deprecated use {@link #getRelated(String, Map, List, GenericValue, boolean) */ + @Deprecated public List<GenericValue> getRelatedCache(String relationName, GenericValue value) throws GenericEntityException { return getRelated(relationName, null, null, value, true); } |
| Free forum by Nabble | Edit this page |
