| java.lang.Object org.nemesis.forum.impl.DbForumThread
Field Summary | |
protected static Log | log |
log | protected static Log log(Code) | | |
DbForumThread | protected DbForumThread(Message rootMessage, boolean approved, DbForum forum, DbForumFactory factory) throws UnauthorizedException(Code) | | Creates a new DbForumThread. The supplied message object is used to
derive the name of the thread (subject of message), as well as the
creation date and modified date of thread.
Parameters: rootMessage - the root message of the thread. |
DbForumThread | protected DbForumThread(int id, DbForum forum, DbForumFactory factory) throws ForumThreadNotFoundException(Code) | | Loads a DbForumThread from the database based on its id.
Parameters: id - in unique id of the ForumThread to load. Parameters: forum - the Forum that the thread belongs to. Parameters: factory - a ForumFactory to use for loading. |
getMessageCount | public int getMessageCount()(Code) | | |
getMessageCount | public int getMessageCount(boolean approved)(Code) | | |
getSize | public int getSize()(Code) | | |
hasPermission | public boolean hasPermission(int type)(Code) | | |
hashCode | public int hashCode()(Code) | | |
insertIntoDb | public void insertIntoDb(Connection con) throws SQLException(Code) | | Inserts a new forum thread into the database. A connection object must
be passed in. The connection must be open when passed in, and will
remain open when passed back. This method allows us to make insertions
be transactional.
Parameters: con - an open Connection used to insert the thread to the db. |
isApproved | public boolean isApproved()(Code) | | |
messages | public Iterator messages(int startIndex, int numResults)(Code) | | |
messages | public Iterator messages(boolean approved, int startIndex, int numResults)(Code) | | |
toString | public String toString()(Code) | | Converts the object to a String by returning the name of the thread.
This functionality is primarily for Java applications that might be
accessing objects through a GUI.
|
updateModifiedDate | protected void updateModifiedDate(java.util.Date modifiedDate)(Code) | | Updates the modified date but doesn't require a security check since
it is a protected method.
|
|
|