Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.0-M1
-
None
Description
The current process for pagination uses direct method for gathering data. Without any checks, validations and convertations.
public class DataContext extends BaseContext{ ... public ResultIterator performIteratedQuery(Query query) }
public class IncrementalFaultList<E> implements List<E>, Serializable { ... protected void fillIn(final Query query, List<Object> elementsList) { elementsList.clear(); try (ResultIterator<?> it = dataContext.performIteratedQuery(query)) { while (it.hasNextRow()) { elementsList.add(it.nextRow()); } } unfetchedObjects = elementsList.size(); }
After applying this PR we need to redirect pagination flow to the
public class DataContext extends BaseContext{ ... public <T> ResultIterator<T> iterator(final Select<T> query) }
Attachments
Issue Links
- blocks
-
CAY-2819 DataContext.performIteratedQuery() method should be unified with iterator() method
- Closed