Class ScrollIterator<E>

  • All Implemented Interfaces:
    AutoCloseable, Iterator<E>

    class ScrollIterator<E>
    extends Object
    implements Iterator<E>, AutoCloseable
    This is an iterator view of the result from a query using the Hibernate ScrollableResults object.
    Version:
    2.0
    Author:
    Nicklas
    Last modified
    $Date: 2018-12-12 15:41:10 +0100 (on, 12 dec 2018) $
    • Field Detail

      • isClosed

        private boolean isClosed
      • nextElement

        private E nextElement
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<E>
      • next

        public E next()
        Specified by:
        next in interface Iterator<E>
      • close

        public void close()
        Close the results and return resources.
        Specified by:
        close in interface AutoCloseable
      • isClosed

        public boolean isClosed()
        Check if the results has been closed.