org.mule.module.db.internal.result.statement
Class StatementResultIterator

java.lang.Object
  extended by org.mule.module.db.internal.result.statement.StatementResultIterator
All Implemented Interfaces:
Iterator<StatementResult>

public class StatementResultIterator
extends Object
implements Iterator<StatementResult>

Iterates across all the StatementResult returned by a Statement execution.


Field Summary
static int NO_UPDATE_COUNT
           
 
Constructor Summary
StatementResultIterator(DbConnection connection, Statement statement, QueryTemplate queryTemplate, AutoGeneratedKeyStrategy autoGeneratedKeyStrategy, ResultSetHandler resultSetHandler)
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_UPDATE_COUNT

public static final int NO_UPDATE_COUNT
See Also:
Constant Field Values
Constructor Detail

StatementResultIterator

public StatementResultIterator(DbConnection connection,
                               Statement statement,
                               QueryTemplate queryTemplate,
                               AutoGeneratedKeyStrategy autoGeneratedKeyStrategy,
                               ResultSetHandler resultSetHandler)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<StatementResult>

retrieveAutoGeneratedKeys

protected boolean retrieveAutoGeneratedKeys()

next

public StatementResult next()
Specified by:
next in interface Iterator<StatementResult>

processOutputParam

protected StatementResult processOutputParam()

doProcessOutputParam

protected StatementResult doProcessOutputParam(OutputQueryParam outputSqlParam,
                                               Object paramValue)
                                        throws SQLException
Throws:
SQLException

doProcessUpdateCount

protected StatementResult doProcessUpdateCount(String name,
                                               int value)

doProcessResultSet

protected StatementResult doProcessResultSet(String name,
                                             ResultSet resultSet)
                                      throws SQLException
Throws:
SQLException

remove

public void remove()
Specified by:
remove in interface Iterator<StatementResult>


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.