public class TableRowIterator
extends java.lang.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(java.sql.Statement st)
setStatement -- this method saves the statement used to do the query.
|
java.util.List<TableRow> |
toList()
Saves all the values returned by iterator into a list.
|
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void setStatement(java.sql.Statement st)
st - -
The statement used to do the query that created this
TableRowIteratorpublic TableRow next() throws java.sql.SQLException
java.sql.SQLException - -
If a database error occurs while fetching valuespublic boolean hasNext()
throws java.sql.SQLException
java.sql.SQLException - -
If a database error occurs while fetching valuespublic java.util.List<TableRow> toList() throws java.sql.SQLException
java.sql.SQLException - -
If a database error occurs while fetching valuespublic void close()
Copyright © 2018 DuraSpace. All Rights Reserved.