| com.mvnforum.db.PostDAO
All known Subclasses: com.mvnforum.db.jdbc.PostDAOImplJDBC,
PostDAO | public interface PostDAO (Code) | | |
Method Summary | |
public int | createPost(int parentPostID, int forumID, int threadID, int memberID, String memberName, String lastEditMemberName, String postTopic, String postBody, Timestamp postCreationDate, Timestamp postLastEditDate, String postCreationIP, String postLastEditIP, int postEditCount, int postFormatOption, int postOption, int postStatus, String postIcon, int postAttachCount) | public void | delete(int postID) | public void | delete_inForum(int forumID) | public void | delete_inThread(int threadID) | public void | findByPrimaryKey(int postID) | public Collection | getDisablePosts_inThread_limit(int threadID, int offset, int rowsToReturn) | public Collection | getEnablePosts_inThread_limit(int threadID, int offset, int rowsToReturn) | public PostBean | getFirstPost_inThread(int threadID) | public Collection | getLastEnablePosts_inForum_limit(int forumID, int rowsToReturn) | public Collection | getLastEnablePosts_inThread_limit(int threadID, int rowsToReturn) This method could be used to get latest post in a thread to update
thread statistics. | public int | getMaxPostID() | public Collection | getMostActiveMembers(Timestamp since, int rowsToReturn) | public Collection | getMostActiveThreads(Timestamp since, int rowsToReturn) | public int | getNumberOfDisablePosts_inForum(int forumID) | public int | getNumberOfDisablePosts_inThread(int threadID) | public int | getNumberOfEnablePosts_inForum(int forumID) | public int | getNumberOfEnablePosts_inThread(int threadID) | public int | getNumberOfPosts() | public int | getNumberOfPosts_inMember(int memberID) | public PostBean | getPost(int postID) | public Collection | getPosts() | public Collection | getPosts_fromIDRange(int fromID, int toID) | public void | increaseEditCount(int postID) | public void | update(int postID, String lastEditMemberName, String postTopic, String postBody, Timestamp postLastEditDate, String postLastEditIP, int postFormatOption, int postOption, int postStatus, String postIcon) | public void | update(int postID, int parentPostID, int forumID, int threadID) | public void | updateAttachCount(int postID, int postAttachCount) | public void | updateParentPostID(int oldParentPostID, int newParentPostID) | public void | updateStatus(int postID, int postStatus) | public void | update_ForumID_inThread(int threadID, int forumID) |
createPost | public int createPost(int parentPostID, int forumID, int threadID, int memberID, String memberName, String lastEditMemberName, String postTopic, String postBody, Timestamp postCreationDate, Timestamp postLastEditDate, String postCreationIP, String postLastEditIP, int postEditCount, int postFormatOption, int postOption, int postStatus, String postIcon, int postAttachCount) throws CreateException, DatabaseException, ForeignKeyNotFoundException(Code) | | |
getNumberOfDisablePosts_inForum | public int getNumberOfDisablePosts_inForum(int forumID) throws DatabaseException(Code) | | |
getNumberOfDisablePosts_inThread | public int getNumberOfDisablePosts_inThread(int threadID) throws DatabaseException(Code) | | |
getNumberOfEnablePosts_inForum | public int getNumberOfEnablePosts_inForum(int forumID) throws DatabaseException(Code) | | This method could be used to update the statistics of the forum
Parameters: forumID - int throws: DatabaseException - int |
getNumberOfEnablePosts_inThread | public int getNumberOfEnablePosts_inThread(int threadID) throws DatabaseException(Code) | | |
getNumberOfPosts | public int getNumberOfPosts() throws DatabaseException(Code) | | This method could be used to check the total posts when compare with number of docs in lucene
throws: DatabaseException - int |
update | public void update(int postID, String lastEditMemberName, String postTopic, String postBody, Timestamp postLastEditDate, String postLastEditIP, int postFormatOption, int postOption, int postStatus, String postIcon) throws ObjectNotFoundException, DatabaseException, ForeignKeyNotFoundException(Code) | | |
|
|