Re: svn commit: r653028 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r653028 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java

Scott Gray
Hi David,

How would I go about replacing calls to this method?   find() only takes an
entity name.

Thanks
Scott

  /** Finds GenericValues by the conditions specified in the EntityCondition
object, the the EntityCondition javadoc for more details.
+     * NOTE 20080502: 9 references
     *@param dynamicViewEntity The DynamicViewEntity to use for the entity
model for this query; generally created on the fly for limited use
     *@param whereEntityCondition The EntityCondition object that specifies
how to constrain this query before any groupings are done (if this is a view
entity with group-by aliases)
     *@param havingEntityCondition The EntityCondition object that specifies
how to constrain this query after any groupings are done (if this is a view
entity with group-by aliases)
@@ -2203,6 +2291,7 @@
     *@param findOptions An instance of EntityFindOptions that specifies
advanced query options. See the EntityFindOptions JavaDoc for more details.
     *@return EntityListIterator representing the result of the query: NOTE
THAT THIS MUST BE CLOSED WHEN YOU ARE
     *      DONE WITH IT, AND DON'T LEAVE IT OPEN TOO LONG BEACUSE IT WILL
MAINTAIN A DATABASE CONNECTION.
+     *@deprecated Use find() instead
     */
    public EntityListIterator findListIteratorByCondition(DynamicViewEntity
dynamicViewEntity, EntityCondition whereEntityCondition,
            EntityCondition havingEntityCondition, Collection<String>
fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions)
@@ -2229,23 +2318,42 @@
        return eli;
    }
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r653028 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java

David E Jones

Good point Scott... I was a little ahead of myself on that one. I've  
removed that in SVN rev 655242.

-David


On May 10, 2008, at 8:12 PM, Scott Gray wrote:

> Hi David,
>
> How would I go about replacing calls to this method?   find() only  
> takes an
> entity name.
>
> Thanks
> Scott
>
>  /** Finds GenericValues by the conditions specified in the  
> EntityCondition
> object, the the EntityCondition javadoc for more details.
> +     * NOTE 20080502: 9 references
>     *@param dynamicViewEntity The DynamicViewEntity to use for the  
> entity
> model for this query; generally created on the fly for limited use
>     *@param whereEntityCondition The EntityCondition object that  
> specifies
> how to constrain this query before any groupings are done (if this  
> is a view
> entity with group-by aliases)
>     *@param havingEntityCondition The EntityCondition object that  
> specifies
> how to constrain this query after any groupings are done (if this is  
> a view
> entity with group-by aliases)
> @@ -2203,6 +2291,7 @@
>     *@param findOptions An instance of EntityFindOptions that  
> specifies
> advanced query options. See the EntityFindOptions JavaDoc for more  
> details.
>     *@return EntityListIterator representing the result of the  
> query: NOTE
> THAT THIS MUST BE CLOSED WHEN YOU ARE
>     *      DONE WITH IT, AND DON'T LEAVE IT OPEN TOO LONG BEACUSE IT  
> WILL
> MAINTAIN A DATABASE CONNECTION.
> +     *@deprecated Use find() instead
>     */
>    public EntityListIterator  
> findListIteratorByCondition(DynamicViewEntity
> dynamicViewEntity, EntityCondition whereEntityCondition,
>            EntityCondition havingEntityCondition, Collection<String>
> fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions)
> @@ -2229,23 +2318,42 @@
>        return eli;
>    }