Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-26155

Improve query-related classes: Predicates/QueryBuilder/AST

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.3
    • Component/s: Query & PageProvider
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      Predicates has many more useful static methods.
      OrderByList now has an empty constructor and a copy constructor.
      The QueryBuilder API has been clarified, and a QueryBuilder can internally hold a AND-based or OR-based MultiExpression. It can also hold a countTotal flag.

      Show
      Predicates has many more useful static methods. OrderByList now has an empty constructor and a copy constructor. The QueryBuilder API has been clarified, and a QueryBuilder can internally hold a AND-based or OR-based MultiExpression . It can also hold a countTotal flag.
    • Sprint:
      nxFG 10.3.9
    • Story Points:
      3

      Description

      Improve query-related classes: Predicates/QueryBuilder and the AST-related ones.

      OrderByList now has a more useful constructor.

      In particular, make sure that MultiExpression and WhereClause holds Predicate instances to avoid lots of useless casts.

      Also make MultiExpression use either AND or OR. Update users to deal with this.

      Predicates method names are improved to better reflect usage.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h