RE: binary and/or

From: Scott Anderson (sanderso..irvana.com)
Date: Mon Dec 08 2008 - 11:25:25 EST

  • Next message: Filipe Costa: "Select By ID"

    I'm assuming you mean bitwise? Cayenne Expressions ultimately boil down
    to SQL, so it should be possible to create such an expression for
    databases that support bitwise boolean operations. You may want to try
    Expression.fromString():
    http://cayenne.apache.org/doc20/building-expressions.html

    -----Original Message-----
    From: KathyS [mailto:scarletkath..ahoo.com]
    Sent: Sunday, December 07, 2008 8:18 AM
    To: use..ayenne.apache.org
    Subject: binary and/or

    Hi,

    I'm retrofitting existing code base to use cayenne. The logic relies on
    bitmaps stored in an integer field. So current code goes _if value &
    flag >
    0 do something_. When I'm trying to use '&' in Cayenne expression
    though, I
    get exception. bitand gets exception too. Is there a way to do binary
    and
    /or using Cayenne?

    Thanks!!
    Kathy

    -- 
    View this message in context:
    http://www.nabble.com/binary-and-or-tp20880990p20880990.html
    Sent from the Cayenne - User mailing list archive at Nabble.com.
    



    This archive was generated by hypermail 2.0.0 : Mon Dec 08 2008 - 11:26:08 EST