public class StatementResultIterator extends Object implements Iterator<StatementResult>
StatementResult 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,
AutoGeneratedKeyStrategy autoGeneratedKeyStrategy,
ResultSetHandler resultSetHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected StatementResult |
doProcessOutputParam(OutputQueryParam outputSqlParam,
Object paramValue) |
protected StatementResult |
doProcessResultSet(String name,
ResultSet resultSet) |
protected StatementResult |
doProcessUpdateCount(String name,
int value) |
boolean |
hasNext() |
StatementResult |
next() |
protected StatementResult |
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, AutoGeneratedKeyStrategy autoGeneratedKeyStrategy, ResultSetHandler resultSetHandler)
public boolean hasNext()
hasNext in interface Iterator<StatementResult>protected boolean retrieveAutoGeneratedKeys()
public StatementResult next()
next in interface Iterator<StatementResult>protected StatementResult processOutputParam()
protected StatementResult doProcessOutputParam(OutputQueryParam outputSqlParam, Object paramValue) throws SQLException
SQLExceptionprotected StatementResult doProcessUpdateCount(String name, int value)
protected StatementResult doProcessResultSet(String name, ResultSet resultSet) throws SQLException
SQLExceptionpublic void remove()
remove in interface Iterator<StatementResult>Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.