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