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

Make ResultIterator implement Iterable<T>, create ObjectContext.iterate method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.M1
    • None
    • None

    Description

      1. Make ResultIterator implement Iterable<T> to simplify its use in loops.

      2. Create ObjectContext.iterator method that is available both in ROP and server stacks. CayenneContext can simply do something stupid, like iterating over a regular list.

      3. Create a callback flavor - ObjectContext,iterate(Select, ResultIteratorCallback)

      4. Move ResultIterator to org.apache.cayenne - it should be available to all layers.

      5. Stop throwing CayenneException from all methods.

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: