public class TableRowIterator extends Object
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the Iterator and release any associated resources
|
protected void |
finalize()
Finalize -- this method is called when this object is GC-ed.
|
boolean |
hasNext()
Return true if there are more rows, false otherwise
|
TableRow |
next()
Advance to the next row and return it.
|
void |
setStatement(Statement st)
setStatement -- this method saves the statement used to do the query.
|
List<TableRow> |
toList()
Saves all the values returned by iterator into a list.
|
protected void finalize() throws Throwable
public void setStatement(Statement st)
st
- -
The statement used to do the query that created this
TableRowIteratorpublic TableRow next() throws SQLException
SQLException
- -
If a database error occurs while fetching valuespublic boolean hasNext() throws SQLException
SQLException
- -
If a database error occurs while fetching valuespublic List<TableRow> toList() throws SQLException
SQLException
- -
If a database error occurs while fetching valuespublic void close()
Copyright © 2016 DuraSpace. All Rights Reserved.