Sure.
You can use the ExpressionFactory methods to b build your expression.
(Remember that expressions are immutable, though, so, you'll want to do
something like:
Expression e = ExpressionFactory.xxx
e = e.andExp(ExpressionFactory.yyy)
Once you've done that, you can do:
List filtered = e.filterObjects(objectList)
Robert
Dave Merrin wrote:
>Is it possible with cayenne to run a query against a resultset in memory? I
>basically want to build up an expression and run it against an array of
>objects to get back a subset. I think this is generally known as filtering.
>
>Is this possible at alll with cayenne?
>
>Cheers,
>
>Dave
>
>
>
This archive was generated by hypermail 2.0.0 : Thu Oct 27 2005 - 07:35:14 EDT