Class ScrollIterator<E>

java.lang.Object
net.sf.basedb.core.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: 2021-05-07 13:44:50 +0200 (Fri, 07 May 2021) $
  • Field Details

    • results

      private final ScrollableResults results
    • returnArray

      private final boolean returnArray
    • isClosed

      private boolean isClosed
    • nextElement

      private E nextElement
  • Constructor Details

  • Method Details

    • hasNext

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

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

      public void remove()
      Not supported.
      Specified by:
      remove in interface Iterator<E>
      Throws:
      UnsupportedOperationException - Always
    • 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.