Top Fields Constructors Methods
org.hibernate.query.internal

pack-priv Class ScrollableResultsIterator<T>

extends Object
implements CloseableIterator
Class Inheritance
All Implemented Interfaces
org.hibernate.query.spi.CloseableIterator, java.lang.AutoCloseable, java.util.Iterator
Annotations
@Incubating
Imports
org.hibernate.Incubating, org.hibernate.query.spi.CloseableIterator, .ScrollableResultsImplementor

Author
Steve Ebersole
Since
5.2

Field Summary

Modifier and TypeField and Description
private final ScrollableResultsImplementor

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements org.hibernate.query.spi.CloseableIterator.close.

Closes this resource, relinquishing any underlying resources.
public boolean
hasNext()

Implements java.util.Iterator.hasNext.

Returns true if the iteration has more elements.
public T
next()

Implements java.util.Iterator.next.

Returns the next element in the iteration.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

scrollableResultsback to summary
private final ScrollableResultsImplementor scrollableResults

Constructor Detail

ScrollableResultsIteratorback to summary
pack-priv ScrollableResultsIterator(ScrollableResultsImplementor scrollableResults)

Method Detail

closeback to summary
public void close()

Implements org.hibernate.query.spi.CloseableIterator.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
hasNextback to summary
public boolean hasNext()

Implements java.util.Iterator.hasNext.

Doc from java.util.Iterator.hasNext.

Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Returns:boolean

true if the iteration has more elements

Annotations
@Override
nextback to summary
public T next()

Implements java.util.Iterator.next.

Doc from java.util.Iterator.next.

Returns the next element in the iteration.

Returns:T

the next element in the iteration

Annotations
@Override
@SuppressWarnings:unchecked