cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (Commented) (JIRA)" <>
Subject [jira] [Commented] (CAY-1675) [PATCH] add .first(List<T>) method to Expression to enhance in-memory filtering
Date Tue, 28 Feb 2012 06:30:54 GMT


Andrus Adamchik commented on CAY-1675:

+1. Although we need a more efficient implementation ... there's no need to do call filterObjects,
to return just the first object in the list and throw away the rest. I can take care of this
change, which is pretty trivial.
> [PATCH] add .first(List<T>) method to Expression to enhance in-memory filtering
> -------------------------------------------------------------------------------
>                 Key: CAY-1675
>                 URL:
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>    Affects Versions: 3.1M4
>            Reporter: John Huss
>            Priority: Trivial
>              Labels: patch
>         Attachments: expression_first_match_patch.txt
>   Original Estimate: 10m
>  Remaining Estimate: 10m
> Add .first(List<T>) method to Expression to enhance in-memory filtering.  This
is a very helpful convenience making one-liners possible where an expression is known to return
a single result (like filtering on a unique key).  Patch attached.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message