public class ItemIterator extends Object
| Constructor and Description |
|---|
ItemIterator(Context context,
List<Integer> iids)
Construct an item iterator using an array list of item ids
|
ItemIterator(Context context,
TableRowIterator rows)
Construct an item iterator using a set of TableRow objects from
the item table
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Dispose of this Iterator, and it's underlying resources
|
boolean |
hasNext()
Find out if there are any more items to iterate over
|
Item |
next()
Get the next item in the iterator.
|
int |
nextID()
return the id of the next item.
|
public ItemIterator(Context context, TableRowIterator rows)
context - our contextrows - the rows that correspond to the Items to be iterated overpublic boolean hasNext()
throws SQLException
true if there are more itemsSQLExceptionpublic Item next() throws SQLException
null if there
are no more items.nullSQLExceptionpublic int nextID()
throws SQLException
SQLExceptionpublic void close()
Copyright © 2022 LYRASIS. All rights reserved.