org.apache.james.mailboxmanager.torque
Class TorqueResultIterator

java.lang.Object
  extended by org.apache.james.mailboxmanager.torque.TorqueResultIterator
All Implemented Interfaces:
java.util.Iterator

public class TorqueResultIterator
extends java.lang.Object
implements java.util.Iterator


Constructor Summary
TorqueResultIterator(java.util.Collection messageRows, MessageResult.FetchGroup fetchGroup)
           
 
Method Summary
 MessageFlags[] getMessageFlags()
           
 boolean hasNext()
           
 java.util.Iterator iterateRows()
          Iterates over the contained rows.
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TorqueResultIterator

public TorqueResultIterator(java.util.Collection messageRows,
                            MessageResult.FetchGroup fetchGroup)
Method Detail

getMessageFlags

public MessageFlags[] getMessageFlags()
                               throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

iterateRows

public final java.util.Iterator iterateRows()
Iterates over the contained rows.

Returns:
Iterator for message rows

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

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


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.