Package org.dspace.core
Class UUIDIterator<T extends DSpaceObject>
- java.lang.Object
-
- com.google.common.collect.UnmodifiableIterator<T>
-
- com.google.common.collect.AbstractIterator<T>
-
- org.dspace.core.UUIDIterator<T>
-
- Type Parameters:
T- class type
- All Implemented Interfaces:
Iterator<T>
public class UUIDIterator<T extends DSpaceObject> extends com.google.common.collect.AbstractIterator<T>Iterator implementation which allows to iterate over items and commit while iterating. Using an iterator over previous retrieved UUIDs the iterator doesn't get invalidated after a commit that would instead close the database ResultSet- Author:
- Andrea Bollini (andrea.bollini at 4science.com)
-
-
Constructor Summary
Constructors Constructor Description UUIDIterator(Context ctx, List<UUID> uuids, Class<T> clazz, AbstractHibernateDSODAO<T> dao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TcomputeNext()-
Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peek
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
UUIDIterator
public UUIDIterator(Context ctx, List<UUID> uuids, Class<T> clazz, AbstractHibernateDSODAO<T> dao) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
computeNext
protected T computeNext()
- Specified by:
computeNextin classcom.google.common.collect.AbstractIterator<T extends DSpaceObject>
-
-