public class DynamicResultIterator extends Object implements SqlResultIterator
Modifier and Type | Method and Description |
---|---|
void |
close()
From the ResultIterator interface
---------------------------------
|
int |
getIndex(String name)
Get the index number of a selected column.
|
int |
getTotalCount()
From the QueryResult interface
---------------------------------
|
boolean |
hasNext() |
boolean |
isClosed()
Check if the iterator has been closed.
|
SqlResult |
next()
Get the results in the next row.
|
void |
remove()
Not supported.
|
public int getTotalCount()
getTotalCount
in interface QueryResult
Query.setReturnTotalCount(boolean)
public void close()
close
in interface ResultIterator<SqlResult>
public boolean isClosed()
ResultIterator
isClosed
in interface ResultIterator<SqlResult>
public SqlResult next()
SqlResult
object
is always the same object. It just changes the underlying pointer to
the next row in the result set. If you need to store data from
a previous row you must copy the values to another place.next
in interface Iterator<SqlResult>
SqlResult
objectNoSuchElementException
- If there are no more resultspublic void remove()
remove
in interface Iterator<SqlResult>
UnsupportedOperationException
- Alwayspublic int getIndex(String name) throws SQLException
SqlResultIterator
SqlResult.getXxx(index)
methods to get the value of that column.getIndex
in interface SqlResultIterator
name
- The name of a selected columnSQLException
- If there is an error