Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1403

Method "readNestedProperty" Should Resolve Through Iterative Invocations onto DataObject and Not Complete Within Cayenne.readNestedProperty

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0RC1, 3.0.1
    • 3.0.2, 3.1M1
    • None
    • None

    Description

      (comes from email discussion with Andrus)
      Another thing which may help me implement this for my own use is if the "readNestedProperty(..)" method were to iteratively be applied to DataObjects rather than to eventually hit Cayenne.readNestedProperty(..) and iterate in there. The entire nested property is currently parsed at the start, but if it iterated through the "readNestedProperty(..)" methods of the data objects then just the first part of the nested property could be 'parsed off'. The number of strings created from parsing the nested property would only be 2x the number compared to the current implementation.

      I have taken a quick look at this, but there is not so much impetus to implement this right now. I will try to come back to it a bit later and submit a patch for it.

      Attachments

        1. cay-1403-patch.txt
          6 kB
          Andrew Ponsonby Lindesay

        Activity

          People

            Unassigned Unassigned
            apl Andrew Ponsonby Lindesay
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: