Package org.sql2o
Class PojoResultSetIterator<T>
java.lang.Object
org.sql2o.ResultSetIteratorBase<T>
org.sql2o.PojoResultSetIterator<T>
- Type Parameters:
T
- the type of the objects that this iterator will return
- All Implemented Interfaces:
Iterator<T>
Iterator for a
ResultSet
. Tricky part here is getting ResultSetIteratorBase.hasNext()
to work properly, meaning it can be called multiple times without calling ResultSetIteratorBase.next()
.- Author:
- aldenquimby@gmail.com
-
Field Summary
Fields inherited from class org.sql2o.ResultSetIteratorBase
isCaseSensitive, meta, quirks, rs
-
Constructor Summary
ConstructorDescriptionPojoResultSetIterator
(ResultSet rs, boolean isCaseSensitive, Quirks quirks, ResultSetHandler<T> handler) PojoResultSetIterator
(ResultSet rs, boolean isCaseSensitive, Quirks quirks, ResultSetHandlerFactory<T> factory) -
Method Summary
Methods inherited from class org.sql2o.ResultSetIteratorBase
getColumnName, hasNext, next, remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
PojoResultSetIterator
public PojoResultSetIterator(ResultSet rs, boolean isCaseSensitive, Quirks quirks, ResultSetHandlerFactory<T> factory) -
PojoResultSetIterator
public PojoResultSetIterator(ResultSet rs, boolean isCaseSensitive, Quirks quirks, ResultSetHandler<T> handler)
-
-
Method Details
-
readNext
- Specified by:
readNext
in classResultSetIteratorBase<T>
- Throws:
SQLException
-