Class DBIterator<E extends DataBaseObject>

java.lang.Object
ecmwf.common.database.DBIterator<E>
Type Parameters:
E - the element type
All Implemented Interfaces:
CloseableIterator<E>, AutoCloseable, Iterator<E>

public class DBIterator<E extends DataBaseObject> extends Object implements Iterator<E>, CloseableIterator<E>
The Class DBIterator.
  • Method Details

    • hasNext

      public boolean hasNext()
      Checks for next.
      Specified by:
      hasNext in interface Iterator<E extends DataBaseObject>
      Returns:
      true, if successful
    • next

      public E next()
      Next.
      Specified by:
      next in interface Iterator<E extends DataBaseObject>
      Returns:
      the e
    • close

      public void close()
      This method is closing the underlying database connection. This allow releasing the underlying resources.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface CloseableIterator<E extends DataBaseObject>
      See Also:
      • invalid reference
        java.util.Iterator#close()