|
Author: doogie
Date: Tue May 29 04:10:52 2012 New Revision: 1343476 URL: http://svn.apache.org/viewvc?rev=1343476&view=rev Log: Deprecate all Delegator.getRelatedOne/getRelatedOneCache, and add a version that takes a cache parameter. This commit finishes the Delegator.getRelatedOne set of changes; the previous methods are now deprecated, and the new ones should be used going forward. Delegator.getRelatedOne(String, GenericValue) is replaced by Delegator.getRelatedOne(String, GenericValue, boolean). Delegator.getRelatedOneCache(String, GenericValue) is replaced by Delegator.getRelatedOne(String, 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=1343476&r1=1343475&r2=1343476&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:10:52 2012 @@ -817,7 +817,9 @@ public interface Delegator { * * @throws IllegalArgumentException * if the list found has more than one item + * @deprecated use {@link #getRelatedOne(String, GenericValue, boolean) */ + @Deprecated public GenericValue getRelatedOne(String relationName, GenericValue value) throws GenericEntityException; /** @@ -827,7 +829,9 @@ public interface Delegator { * * @throws IllegalArgumentException * if the list found has more than one item + * @deprecated use {@link #getRelatedOne(String, GenericValue, boolean) */ + @Deprecated public GenericValue getRelatedOneCache(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=1343476&r1=1343475&r2=1343476&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:10:52 2012 @@ -2012,15 +2012,19 @@ public class GenericDelegator implements } /* (non-Javadoc) - * @see org.ofbiz.entity.Delegator#getRelatedOne(java.lang.String, org.ofbiz.entity.GenericValue) + * @see org.ofbiz.entity.Delegator#getRelatedOne(java.lang.String, org.ofbiz.entity.GenericValue, boolean) + * @deprecated use {@link #getRelatedOne(String, GenericValue, boolean) */ + @Deprecated public GenericValue getRelatedOne(String relationName, GenericValue value) throws GenericEntityException { return this.getRelatedOne(relationName, value, false); } /* (non-Javadoc) - * @see org.ofbiz.entity.Delegator#getRelatedOneCache(java.lang.String, org.ofbiz.entity.GenericValue) + * @see org.ofbiz.entity.Delegator#getRelatedOneCache(java.lang.String, org.ofbiz.entity.GenericValue, boolean) + * @deprecated use {@link #getRelatedOne(String, GenericValue, boolean) */ + @Deprecated public GenericValue getRelatedOneCache(String relationName, GenericValue value) throws GenericEntityException { return this.getRelatedOne(relationName, value, true); } |
| Free forum by Nabble | Edit this page |
