public interface Cursor<T extends Pojo>
Storage.PreparedStatement.executeQuery()| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next()
Retrieves the next element from the result set.
|
boolean hasNext()
true if there are more elements, false otherwise.StorageException - If there was a problem with underlying Storage.T next()
hasNext() prior to calling this method.
The next element of the result set. null if there is no
next element.
Please note: This will change with the next
release. In the next major release a
NoSuchElementException will be thrown if there is no next
element. I.e. hasNext() returns false, but
next() is still being called.
StorageException - If there was a problem with underlying Storage.Copyright © 2015. All rights reserved.