| java.lang.Object com.Yasna.forum.database.DbForumThread
DbForumThread | protected DbForumThread(ForumMessage rootMessage, boolean approved, DbForum forum, DbForumFactory factory, ThreadType type) 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. |
addReadCount | public void addReadCount()(Code) | | |
getMessageCount | public int getMessageCount()(Code) | | |
getReadCount | public int getReadCount()(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) | | |
isClosed | public boolean isClosed()(Code) | | |
isSticky | public boolean isSticky()(Code) | | |
messages | public Iterator messages(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 Yazd 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.
|
|
|