You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2012/10/31 20:04:11 UTC

[jira] [Closed] (CAY-1726) Expression parser support for bit operators, support for << and >>

     [ https://issues.apache.org/jira/browse/CAY-1726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-1726.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.2M1

Committed to 3.2. Thanks Vital!
                
> Expression parser support for bit operators, support for << and >>
> ------------------------------------------------------------------
>
>                 Key: CAY-1726
>                 URL: https://issues.apache.org/jira/browse/CAY-1726
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.2M1
>
>         Attachments: 0001-Cayenne-3.1-supplies-bitwise-operations.patch
>
>
> Building upon CAY-1693, let's create support for bit operations in String expressions. Parser BNF [1] need to be expanded to include &, |, ^, ~, hence allowing creation of these expressions via 'Expression.fromString(..)". Some examples of how those might look like:
> someProperty & 3 = 1
> someOtherProperty | 1 = 0
> someOtherProperty ^ 1 = 0
> ~yetAnotherProperty  = 1
> someProperty & ~yetAnotherProperty  = 1
> [1] http://cayenne.apache.org/doc/bnf-for-expressionparser.html 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira