public class PojoResultSetIterator<T> extends ResultSetIteratorBase<T>
ResultSet
. Tricky part here is getting ResultSetIteratorBase.hasNext()
to work properly, meaning it can be called multiple times without calling ResultSetIteratorBase.next()
.isCaseSensitive, meta, quirks, rs
Constructor and Description |
---|
PojoResultSetIterator(ResultSet rs,
boolean isCaseSensitive,
Quirks quirks,
ResultSetHandler<T> handler) |
PojoResultSetIterator(ResultSet rs,
boolean isCaseSensitive,
Quirks quirks,
ResultSetHandlerFactory<T> factory) |
Modifier and Type | Method and Description |
---|---|
protected T |
readNext() |
getColumnName, hasNext, next, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public PojoResultSetIterator(ResultSet rs, boolean isCaseSensitive, Quirks quirks, ResultSetHandlerFactory<T> factory)
public PojoResultSetIterator(ResultSet rs, boolean isCaseSensitive, Quirks quirks, ResultSetHandler<T> handler)
protected T readNext() throws SQLException
readNext
in class ResultSetIteratorBase<T>
SQLException
Copyright © 2015. All rights reserved.