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()
Deprecated.
use
next(org.dspace.core.Context) instead. Pass an existing database connection to this method to prevent opening a new one. |
TableRow |
next(Context context)
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
TableRowIterator@Deprecated public TableRow next() throws SQLException
next(org.dspace.core.Context) instead. Pass an existing database connection to this method to prevent opening a new one.SQLException - -
If a database error occurs while fetching valuespublic TableRow next(Context context) throws SQLException
context - An existing database connection to reuseSQLException - -
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 © 2022 LYRASIS. All rights reserved.