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() |
public 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
SQLException
protected StatementResult doProcessUpdateCount(String name, int value)
protected StatementResult doProcessResultSet(String name, ResultSet resultSet) throws SQLException
SQLException
public void remove()
remove
in interface Iterator<StatementResult>
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.