org.objectweb.jonas_ejb.container.jorm
Class GenClassImpl.ElementIterator

java.lang.Object
  extended by org.objectweb.jonas_ejb.container.jorm.GenClassImpl.ElementIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
GenClassImpl

protected class GenClassImpl.ElementIterator
extends java.lang.Object
implements java.util.Iterator

this class is an implementation of the Iterator interface which return only the existing objects. The return elements are dereferenced, then PObject instances.


Constructor Summary
GenClassImpl.ElementIterator(GenClassImpl gc, java.lang.Object connection)
           
 
Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 java.lang.Object next()
          Returns the next element in the interation.
 void remove()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenClassImpl.ElementIterator

public GenClassImpl.ElementIterator(GenClassImpl gc,
                                    java.lang.Object connection)
Method Detail

reset

public void reset()

hasNext

public boolean hasNext()
Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Specified by:
hasNext in interface java.util.Iterator
Returns:
true if the iterator has more elements.

next

public java.lang.Object next()
Returns the next element in the interation.

Specified by:
next in interface java.util.Iterator
Returns:
the next element in the iteration.
Throws:
java.util.NoSuchElementException - iteration has no more elements.

remove

public void remove()
Specified by:
remove in interface java.util.Iterator