| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<E>
java.util.Stack
org.paneris.messageboard.model.MessageThread
public class MessageThread
A mechanism for accessing a messageboard thread.
| 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 | 
|---|
public MessageThread(java.lang.String db)
| Method Detail | 
|---|
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
java.lang.Exception - If SQL fails
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||