|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.content.ItemIterator
public class ItemIterator
Specialized iterator for DSpace Items. This iterator is used for loading items into memory one by one, since in many cases, it would not make sense to load a set of items into memory all at once. For example, loading in an entire community or site's worth of items wouldn't make sense. Note that this class is not a real Iterator, as it does not implement the Iterator interface
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ItemIterator(Context context,
TableRowIterator rows)
context - our contextrows - the rows that correspond to the Items to be iterated over
public ItemIterator(Context context,
List<Integer> iids)
context - our contextiids - the array list to be iterated over| Method Detail |
|---|
public boolean hasNext()
throws SQLException
true if there are more items
SQLException
public Item next()
throws SQLException
null if there
are no more items.
null
SQLException
public int nextID()
throws SQLException
SQLExceptionpublic void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||