|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.DynamicResultIterator
public class DynamicResultIterator
An iterator view of the result of an AbstractSqlQuery.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getTotalCount()
getTotalCount in interface QueryResultQuery.setReturnTotalCount(boolean)public void close()
close in interface ResultIterator<SqlResult>public boolean isClosed()
ResultIterator
isClosed in interface ResultIterator<SqlResult>public boolean hasNext()
hasNext in interface Iterator<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 object
NoSuchElementException - If there are no more resultspublic void remove()
remove in interface Iterator<SqlResult>UnsupportedOperationException - Always
public int getIndex(String name)
throws SQLException
SqlResultIteratorSqlResult.getXxx(index)
methods to get the value of that column.
getIndex in interface SqlResultIteratorname - The name of a selected column
SQLException - If there is an error
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||