Package org.datanucleus.store.types
Class SCOCollectionIterator<E>
- java.lang.Object
-
- org.datanucleus.store.types.SCOCollectionIterator<E>
-
- Type Parameters:
E
- Element type for the collection
- All Implemented Interfaces:
Iterator<E>
public class SCOCollectionIterator<E> extends Object implements Iterator<E>
An iterator for a SCO Collection object. Works from either the delegate or a backing store, and provides iteration through the objects.
-
-
Constructor Summary
Constructors Constructor Description SCOCollectionIterator(Collection<E> sco, DNStateManager sm, Collection<E> theDelegate, CollectionStore<E> backingStore, boolean useDelegate)
Constructor taking the delegate or backing store.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
E
next()
void
remove()
-
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
-
SCOCollectionIterator
public SCOCollectionIterator(Collection<E> sco, DNStateManager sm, Collection<E> theDelegate, CollectionStore<E> backingStore, boolean useDelegate)
Constructor taking the delegate or backing store.- Parameters:
sco
- The owner scosm
- StateManager of SCO Collection to iteratetheDelegate
- The delegate collectionbackingStore
- The backing store (connected to the DB)useDelegate
- Whether to use the delegate
-
-