com.mysema.query.sql
Class SQLResultIterator<T>

java.lang.Object
  extended by com.mysema.query.sql.SQLResultIterator<T>
Type Parameters:
T -
All Implemented Interfaces:
com.mysema.commons.lang.CloseableIterator<T>, Closeable, Iterator<T>

public abstract class SQLResultIterator<T>
extends Object
implements com.mysema.commons.lang.CloseableIterator<T>

SQLResultIterator is an Iterator adapter for JDBC result sets with customizable projections

Author:
tiwe

Constructor Summary
SQLResultIterator(Statement stmt, ResultSet rs)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 T next()
           
protected abstract  T produceNext(ResultSet rs)
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLResultIterator

public SQLResultIterator(Statement stmt,
                         ResultSet rs)
Method Detail

close

public void close()
Specified by:
close in interface Closeable

hasNext

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

next

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

produceNext

protected abstract T produceNext(ResultSet rs)

remove

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


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.