Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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.