Re: Testing ExpressionFactory for null values

From: Bryan Lewis (brya..aine.rr.com)
Date: Wed Apr 06 2005 - 21:39:10 EDT

  • Next message: Fredrik Liden: "RE: Testing ExpressionFactory for null values"

    If I understand what you're asking, yes. The ExpressionFactory will do the
    right thing if you give it a value of null.

       Expression notNullExp = ExpressionFactory.noMatchExp("attributeName",
    null));

    ----- Original Message -----
    From: "Fredrik Liden" <flide..ranslate.com>
    To: <cayenne-use..bjectstyle.org>
    Sent: Wednesday, April 06, 2005 9:20 PM
    Subject: Testing ExpressionFactory for null values

    Is it possible to test for null values using the in-memory
    ExpressionFactory?

    Or is it just bad design to keep default values as null?
    Does anyone have any input?

    Thanks!

    Fredrik



    This archive was generated by hypermail 2.0.0 : Wed Apr 06 2005 - 21:39:16 EDT