Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1853

Modified QueryImpl to enable external query builders to read and write JCR expressions in the orderBy Clause

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5
    • Component/s: jackrabbit-ocm
    • Labels:
      None

      Description

      The QueryImpl does not create the JCR expression on the fly. The OrderByExpression does the job. If an external querybuilder class needs to dynamically collect properties against which order by is required, QueryImpl does not support updating the JCR Expression. It can only return the built expression since arrayList is used for collecting the properties. The change enables one to add JCRExpression to the QueryImpl object. A test has been added.

      Changed files:
      Path
      src/main/java/org/apache/jackrabbit/ocm/query/impl/QueryImpl.java
      src/test/java/org/apache/jackrabbit/ocm/manager/query/DigesterSimpleQueryTest.java

        Attachments

        1. OrderByPatch.patch
          8 kB
          Shrirang

          Activity

            People

            • Assignee:
              clombart Christophe Lombart
              Reporter:
              shrije Shrirang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: