Package org.apache.juneau.bean
Class ResultSetList
java.lang.Object
- All Implemented Interfaces:
- Serializable,- Cloneable,- Iterable<Map<String,,- Object>> - Collection<Map<String,,- Object>> - Deque<Map<String,,- Object>> - List<Map<String,,- Object>> - Queue<Map<String,- Object>> 
Transforms an SQL 
ResultSet into a list of maps.
 Loads the entire result set into an in-memory data structure, and then closes the result set object.
See Also:
- 
Field SummaryFields inherited from class java.util.AbstractListmodCount
- 
Constructor SummaryConstructorsConstructorDescriptionResultSetList(ResultSet rs, int pos, int limit, boolean includeRowNums) Constructor.
- 
Method SummaryMethods inherited from class java.util.LinkedListadd, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSequentialListiteratorMethods inherited from class java.util.AbstractListequals, hashCode, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollectioncontainsAll, isEmpty, removeAll, retainAll, toStringMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.ListcontainsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
- 
Constructor Details- 
ResultSetListConstructor.- Parameters:
- rs- The result set to load into this DTO.
- pos- The start position (zero-indexed).
- limit- The maximum number of rows to retrieve.
- includeRowNums- Make the first column be the row number.
- Throws:
- SQLException- Database error.
 
 
-