Author: doogie
Date: Tue May 29 04:16:26 2012
New Revision: 1343504
URL:
http://svn.apache.org/viewvc?rev=1343504&view=revLog:
Deprecate GenericValue.getRelatedOne/getRelatedOneCache, and add
a version that takes a cache parameter.
Yet again, another simplication of the delegator api. This replaces
all simple getRelatedOne type methods with a single version that takes
all possible arguments.
GenericValue.getRelatedOne(String) is replaced by
GenericValue.getRelatedOne(String, boolean).
GenericValue.getRelatedOneCache(String) is replaced by
GenericValue.getRelatedOne(String, 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=1343504&r1=1343503&r2=1343504&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:26 2012
@@ -311,7 +311,9 @@ public class GenericValue extends Generi
/** 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
*@return List of GenericValue instances as specified in the relation definition
+ *@deprecated use {@link #getRelatedOne(String, boolean)}
*/
+ @Deprecated
public GenericValue getRelatedOne(String relationName) throws GenericEntityException {
return this.getDelegator().getRelatedOne(relationName, this, false);
}
@@ -320,7 +322,9 @@ public class GenericValue extends Generi
* store, looking first in the global generic cache (for the moment this isn't true, is same as EmbeddedCache variant)
*@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
*@return List of GenericValue instances as specified in the relation definition
+ *@deprecated use {@link #getRelatedOne(String, boolean)}
*/
+ @Deprecated
public GenericValue getRelatedOneCache(String relationName) throws GenericEntityException {
return this.getDelegator().getRelatedOne(relationName, this, true);
}