org.mule.module.db.internal.result.resultset
Class ResultSetIterator

java.lang.Object
  extended by org.mule.module.db.internal.result.resultset.ResultSetIterator
All Implemented Interfaces:
Iterator<Map<String,Object>>, Closeable

public class ResultSetIterator
extends Object
implements Iterator<Map<String,Object>>, Closeable

Iterates a ResultSet to provide rows streaming


Field Summary
protected static org.apache.commons.logging.Log logger
           
 
Constructor Summary
ResultSetIterator(DbConnection connection, ResultSet resultSet, RowHandler rowHandler, StreamingResultSetCloser streamingResultSetCloser)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 Map<String,Object> next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.commons.logging.Log logger
Constructor Detail

ResultSetIterator

public ResultSetIterator(DbConnection connection,
                         ResultSet resultSet,
                         RowHandler rowHandler,
                         StreamingResultSetCloser streamingResultSetCloser)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Map<String,Object>>

next

public Map<String,Object> next()
Specified by:
next in interface Iterator<Map<String,Object>>

remove

public void remove()
Specified by:
remove in interface Iterator<Map<String,Object>>

close

public void close()
           throws MuleException
Specified by:
close in interface Closeable
Throws:
MuleException


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