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
ConstructorsConstructorDescriptionUUIDIterator(Context ctx, List<UUID> uuids, Class<T> clazz, AbstractHibernateDSODAO<T> dao) -
Method Summary
Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peekMethods inherited from class com.google.common.collect.UnmodifiableIterator
removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
UUIDIterator
public UUIDIterator(Context ctx, List<UUID> uuids, Class<T> clazz, AbstractHibernateDSODAO<T> dao) throws SQLException - Throws:
SQLException
-
-
Method Details
-
computeNext
- Specified by:
computeNextin classcom.google.common.collect.AbstractIterator<T extends DSpaceObject>
-