Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.database
Class ForumBlockIterator

java.lang.Object
  extended by com.jivesoftware.forum.database.ForumBlockIterator
All Implemented Interfaces:
java.util.Iterator

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

Iterates through a set of forums.


Constructor Summary
protected ForumBlockIterator(long[] forumBlock, CachedPreparedStatement query, int startIndex, int endIndex, long categoryID, DbForumFactory factory)
          Constructs a new ForumBlockIterator.
 
Method Summary
 boolean hasNext()
           
 boolean hasPrevious()
           
 java.lang.Object next()
           
 java.lang.Object previous()
           
 void remove()
           
 void setIndex(Forum forum)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForumBlockIterator

protected ForumBlockIterator(long[] forumBlock,
                             CachedPreparedStatement query,
                             int startIndex,
                             int endIndex,
                             long categoryID,
                             DbForumFactory factory)
Constructs a new ForumBlockIterator.

Parameters:
forumBlock - the starting forumBlock of elements to iterate through.
query - the SQL query corresponding to this iteration.
startIndex - the starting index of the iteration.
endIndex - the ending index of the iteration.
categoryID - the category to load forum blocks from.
factory - a ForumFactory to load data from.
Method Detail

hasNext

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

hasPrevious

public boolean hasPrevious()

next

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

previous

public java.lang.Object previous()

remove

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

setIndex

public void setIndex(Forum forum)

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.