com.mysema.query.jpa.hibernate
Class ScrollableResultsIterator<T>

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

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

ScrollableResultsIterator is an CloseableIterator adapter for ScrollableResults

Author:
tiwe

Constructor Summary
ScrollableResultsIterator(org.hibernate.ScrollableResults results)
           
ScrollableResultsIterator(org.hibernate.ScrollableResults results, boolean asArray)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScrollableResultsIterator

public ScrollableResultsIterator(org.hibernate.ScrollableResults results)

ScrollableResultsIterator

public ScrollableResultsIterator(org.hibernate.ScrollableResults results,
                                 boolean asArray)
Method Detail

close

public void close()
Specified by:
close in interface com.mysema.commons.lang.CloseableIterator<T>
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>

remove

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


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