org.datanucleus.store.types.sco
Class SCOCollectionIterator

java.lang.Object
  extended by org.datanucleus.store.types.sco.SCOCollectionIterator
All Implemented Interfaces:
Iterator

public class SCOCollectionIterator
extends Object
implements Iterator

An iterator for a SCO Collection object. Works from either the delegate or a backing store, and provides iteration through the objects.


Constructor Summary
SCOCollectionIterator(Collection sco, ObjectProvider sm, Collection theDelegate, CollectionStore backingStore, boolean useDelegate)
          Constructor taking the delegate or backing store.
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCOCollectionIterator

public SCOCollectionIterator(Collection sco,
                             ObjectProvider sm,
                             Collection theDelegate,
                             CollectionStore backingStore,
                             boolean useDelegate)
Constructor taking the delegate or backing store.

Parameters:
sco - The owner sco
sm - State Manager of SCO Collection to iterate
theDelegate - The delegate collection
backingStore - The backing store (connected to the DB)
useDelegate - Whether to use the delegate
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator


Copyright © 2012. All Rights Reserved.