public class StatementResultIterator extends Object implements Iterator<SingleStatementResult>
SingleStatementResult returned by a Statement execution.| Modifier and Type | Field and Description |
|---|---|
static int |
NO_UPDATE_COUNT |
| Constructor and Description |
|---|
StatementResultIterator(DbConnection connection,
Statement statement,
QueryTemplate queryTemplate,
AutoGenerateKeysStrategy autoGenerateKeysStrategy,
ResultSetHandler resultSetHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected SingleStatementResult |
doProcessOutputParam(OutputQueryParam outputSqlParam,
Object paramValue) |
protected SingleStatementResult |
doProcessResultSet(String name,
ResultSet resultSet) |
protected SingleStatementResult |
doProcessUpdateCount(String name,
int value) |
boolean |
hasNext() |
SingleStatementResult |
next() |
protected SingleStatementResult |
processOutputParam() |
void |
remove() |
protected boolean |
retrieveAutoGeneratedKeys() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic static final int NO_UPDATE_COUNT
public StatementResultIterator(DbConnection connection, Statement statement, QueryTemplate queryTemplate, AutoGenerateKeysStrategy autoGenerateKeysStrategy, ResultSetHandler resultSetHandler)
public boolean hasNext()
hasNext in interface Iterator<SingleStatementResult>protected boolean retrieveAutoGeneratedKeys()
public SingleStatementResult next()
next in interface Iterator<SingleStatementResult>protected SingleStatementResult processOutputParam()
protected SingleStatementResult doProcessOutputParam(OutputQueryParam outputSqlParam, Object paramValue) throws SQLException
SQLExceptionprotected SingleStatementResult doProcessUpdateCount(String name, int value)
protected SingleStatementResult doProcessResultSet(String name, ResultSet resultSet) throws SQLException
SQLExceptionpublic void remove()
remove in interface Iterator<SingleStatementResult>Copyright © 2025. All rights reserved.