public abstract class RdbmIterationBase<T,X extends Exception> extends CloseableIterationBase<T,X>
ResultSet.| Constructor and Description |
|---|
RdbmIterationBase(PreparedStatement stmt) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
convert(ResultSet rs) |
protected abstract X |
convertSQLException(SQLException e) |
protected void |
handleClose()
Called by
CloseableIterationBase.close() when it is called for the first time. |
boolean |
hasNext()
Returns true if the iteration has more elements.
|
T |
next()
Returns the next element in the iteration.
|
void |
remove()
Removes from the underlying collection the last element returned by the
iteration (optional operation).
|
close, isClosedpublic RdbmIterationBase(PreparedStatement stmt) throws SQLException
SQLExceptionprotected void handleClose()
throws X extends Exception
CloseableIterationBaseCloseableIterationBase.close() when it is called for the first time. This method
is only called once on each iteration. By default, this method does
nothing.handleClose in class CloseableIterationBase<T,X extends Exception>XX extends Exceptionpublic boolean hasNext()
throws X extends Exception
IterationIteration.next() would return an element
rather than throwing a NoSuchElementException.)public T next() throws X extends Exception
Iterationpublic void remove()
throws X extends Exception
Iterationprotected abstract T convert(ResultSet rs) throws SQLException
SQLExceptionprotected abstract X convertSQLException(SQLException e)
Copyright © 2001–2015 Aduna. All rights reserved.