Package com.tsurugidb.iceaxe.sql.result
Class TsurugiQueryResult.TsurugiQueryResultIterator
- java.lang.Object
-
- com.tsurugidb.iceaxe.sql.result.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 forTsurugiQueryResult
.
-
-
Constructor Summary
Constructors Constructor Description TsurugiQueryResultIterator(TsurugiResultRecord record)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
protected void
moveNext()
move next record.R
next()
-
-
-
Constructor Detail
-
TsurugiQueryResultIterator
public TsurugiQueryResultIterator(TsurugiResultRecord record)
Creates a new instance.- Parameters:
record
- record
-
-
Method Detail
-
moveNext
protected void moveNext()
move next record.- Throws:
java.io.UncheckedIOException
- if an I/O error occurs while retrieving recordInterruptedRuntimeException
- if interrupted while retrieving recordTsurugiTransactionRuntimeException
- if server error occurs while retrieving record
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<R>
- Throws:
java.io.UncheckedIOException
- if an I/O error occurs while retrieving recordInterruptedRuntimeException
- if interrupted while retrieving recordTsurugiTransactionRuntimeException
- if server error occurs while retrieving record
-
next
public R next()
- Specified by:
next
in interfacejava.util.Iterator<R>
- Throws:
java.util.NoSuchElementException
- if the iteration has no more elementsjava.io.UncheckedIOException
- if an I/O error occurs while retrieving recordInterruptedRuntimeException
- if interrupted while retrieving recordTsurugiTransactionRuntimeException
- if server error occurs while retrieving record
-
-