Class TsurugiQueryResult.TsurugiQueryResultIterator

  • All Implemented Interfaces:
    java.util.Iterator<R>
    Enclosing class:
    TsurugiQueryResult<R>

    protected class TsurugiQueryResult.TsurugiQueryResultIterator
    extends java.lang.Object
    implements java.util.Iterator<R>
    Iterator for TsurugiQueryResult.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      protected void moveNext()
      move next record.
      R next()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Constructor Detail

      • TsurugiQueryResultIterator

        public TsurugiQueryResultIterator​(TsurugiResultRecord record)
        Creates a new instance.
        Parameters:
        record - record
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<R>
        Throws:
        java.io.UncheckedIOException - if an I/O error occurs while retrieving record
        InterruptedRuntimeException - if interrupted while retrieving record
        TsurugiTransactionRuntimeException - if server error occurs while retrieving record
      • next

        public R next()
        Specified by:
        next in interface java.util.Iterator<R>
        Throws:
        java.util.NoSuchElementException - if the iteration has no more elements
        java.io.UncheckedIOException - if an I/O error occurs while retrieving record
        InterruptedRuntimeException - if interrupted while retrieving record
        TsurugiTransactionRuntimeException - if server error occurs while retrieving record