|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.ForumThreadIterator
com.jivesoftware.forum.database.ForumThreadBlockIterator
public class ForumThreadBlockIterator
Database implementation of the ForumThreadIterator abstract class.
ForumThreadIterator
Field Summary |
---|
Fields inherited from class com.jivesoftware.forum.ForumThreadIterator |
---|
EMPTY_ITERATOR |
Constructor Summary | |
---|---|
protected |
ForumThreadBlockIterator(long[] block,
CachedPreparedStatement query,
int startIndex,
int endIndex,
int objectType,
long objectID,
DbForumFactory factory)
Constructs a new ForumThreadBlockIterator. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if this iterator has more threads when traversing the list in the forward direction. |
boolean |
hasPrevious()
Returns true if this list iterator has more threads when traversing the list in the reverse direction. |
java.lang.Object |
next()
Returns the next thread in the list. |
java.lang.Object |
previous()
Returns the previous element in the list. |
void |
setIndex(ForumThread thread)
Sets the index for the iteration to the specified ForumThread. |
Methods inherited from class com.jivesoftware.forum.ForumThreadIterator |
---|
remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ForumThreadBlockIterator(long[] block, CachedPreparedStatement query, int startIndex, int endIndex, int objectType, long objectID, DbForumFactory factory)
block
- the starting block 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.objectType
- the object type the threads are a part of.objectID
- the objectID the threads are a part of.factory
- a ForumFactory to load data from.Method Detail |
---|
public boolean hasNext()
ForumThreadIterator
hasNext
in interface java.util.Iterator
hasNext
in class ForumThreadIterator
public boolean hasPrevious()
ForumThreadIterator
hasPrevious
in class ForumThreadIterator
public java.lang.Object next() throws java.util.NoSuchElementException
ForumThreadIterator
next
in interface java.util.Iterator
next
in class ForumThreadIterator
java.util.NoSuchElementException
- if the iteration has no next element.public java.lang.Object previous()
ForumThreadIterator
previous
in class ForumThreadIterator
public void setIndex(ForumThread thread)
ForumThreadIterator
Implementation note: a performance setting allows an optional short-term cache so that object invalidations are delayed for a period of time. This can mean that trying to set the index for a newly created thread can fail. Ensure that this performance setting is disabled, or refrain from calling this method with newly created threads.
setIndex
in class ForumThreadIterator
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |