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