You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2012/05/29 06:10:59 UTC
svn commit: r1343477 -
/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericValue.java
Author: doogie
Date: Tue May 29 04:10:58 2012
New Revision: 1343477
URL: http://svn.apache.org/viewvc?rev=1343477&view=rev
Log:
FEATURE: Add GenericValue.getRelatedOne 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=1343477&r1=1343476&r2=1343477&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:10:58 2012
@@ -325,6 +325,15 @@ public class GenericValue extends Generi
return this.getDelegator().getRelatedOne(relationName, 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 useCache Whether to cache the results
+ *@return The single related GenericValue instance
+ */
+ public GenericValue getRelatedOne(String relationName, boolean useCache) throws GenericEntityException {
+ return this.getDelegator().getRelatedOne(relationName, this, useCache);
+ }
+
/** Get the named Related Entity for the GenericValue from the persistent
* store, looking first in a cache associated with this entity which is
* destroyed with this ValueObject when no longer used.