org.paneris.messageboard.model
Class MessageThread

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector<E>
              extended by java.util.Stack
                  extended by org.paneris.messageboard.model.MessageThread
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class MessageThread
extends java.util.Stack

A mechanism for accessing a messageboard thread.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
MessageThread(java.lang.String db)
          construct a stack to store messages that are in this thread
 
Method Summary
 Message getNext(Message m)
          get the next message after this one.
 
Methods inherited from class java.util.Stack
empty, peek, pop, push, search
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

MessageThread

public MessageThread(java.lang.String db)
construct a stack to store messages that are in this thread

Method Detail

getNext

public Message getNext(Message m)
                throws java.lang.Exception

get the next message after this one.

if we find a follow-up message, return it, and add any other messages that follow-up this one directly to the stack

if we don't find a follow-up, grab the next message off the stack and return it (having added any follow-ups to the stack

empty stack - return null

Returns:
The next message
Throws:
java.lang.Exception - If SQL fails


Copyright © 2000-2008 PanEris. All Rights Reserved.