cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: TRUE & FALSE Expression
Date Tue, 15 Aug 2006 20:09:15 GMT
new ASTScalar(Boolean.TRUE) should do the trick.

Andrus


On Aug 15, 2006, at 3:57 PM, Øyvind Harboe wrote:

> On 8/15/06, Mike Kienenberger <mkienenb@gmail.com> wrote:
>> I don't understand what you're asking.
>>
>> Can you give a concrete and specific example?
>
> Here I start off with TRUE and then reduce the matching set using  
> andExp().
>
> Expression e=ExpressionFactory.expTrue();
>
> if (xxx)
> {
>  e=e.andExp(....);
> }
>
> if (yyy)
> {
>  e=e.andExp(....);
> }
>
>
> return e;
>
>
> -- 
> Øyvind Harboe
> http://www.zylin.com
>


Mime
View raw message