| java.lang.Object com.mvnforum.db.jdbc.ThreadDAOImplJDBC
Method Summary | |
public int | createThread(int forumID, String memberName, String lastPostMemberName, String threadTopic, String threadBody, int threadVoteCount, int threadVoteTotalStars, Timestamp threadCreationDate, Timestamp threadLastPostDate, int threadType, int threadPriority, int threadOption, int threadStatus, int threadHasPoll, int threadViewCount, int threadReplyCount, String threadIcon, int threadDuration, int threadAttachCount) | public void | delete(int threadID) | public void | delete_inForum(int forumID) | public void | findByPrimaryKey(int threadID) | public Collection | getAllEnableThreads_inForum_withSortSupport_limit(int forumID, int offset, int rowsToReturn, String sort, String order) | public Collection | getDisableBeans_withSortSupport_limit(int offset, int rowsToReturn, String sort, String order) | public Collection | getDisableThreads_inForum_withSortSupport_limit(int forumID, int offset, int rowsToReturn, String sort, String order) | public Collection | getEnableForumAnnouncements_inForum(int forumID) | public Collection | getEnableGlobalAnnouncements() | public Collection | getEnableStickies_inForum(int forumID) | public Collection | getEnableThreadsWithPendingPosts_inForum_withSortSupport_limit(int forumID, int offset, int rowsToReturn, String sort, String order) | public Collection | getEnableThreadsWithPendingPosts_withSortSupport_limit(int offset, int rowsToReturn, String sort, String order) | public Collection | getEnableThreads_inCategory(int categoryID, Timestamp sinceDate) | public Collection | getEnableThreads_inForum(int forumID, Timestamp sinceDate) | public Collection | getEnableThreads_inGlobal(Timestamp sinceDate) | public Collection | getEnableThreads_inThread(int threadID, Timestamp sinceDate) | public Collection | getEnableThreads_withSortSupport_limit(int offset, int rowsToReturn, String sort, String order, boolean onlyNoReply, int status, int category, int forum) | public Collection | getEnableThreads_withSortSupport_limit(int offset, int rowsToReturn, String sort, String order, Timestamp from, Timestamp to) | public int | getNextEnableThread(int forumID, int threadID) | public Collection | getNormalEnableThreads_inForum_withSortSupport_limit(int forumID, int offset, int rowsToReturn, String sort, String order) | public int | getNumberOfDisableThreads() | public int | getNumberOfDisableThreads_inForum(int forumID) | public int | getNumberOfEnableThreads(boolean onlyNoReply, int status, int category, int forum) | public int | getNumberOfEnableThreadsWithPendingPosts() | public int | getNumberOfEnableThreadsWithPendingPosts_inForum(int forumID) | public int | getNumberOfEnableThreads_inForum(int forumID) | public int | getNumberOfNormalEnableThreads_inForum(int forumID) | public int | getPreviousEnableThread(int forumID, int threadID) | public ThreadBean | getThread(int threadID) | public Collection | getThreads_inFavorite_inMember(int memberID) | public void | increaseReplyCount(int threadID) | public void | increaseViewCount(int threadID) | protected static boolean | isDirty() | protected static void | setDirty(boolean dirty) | public void | updateForumID(int threadID, int forumID) | public void | updateLastPostDate(int threadID, Timestamp threadLastPostDate) | public void | updateLastPostMemberName(int threadID, String lastPostMemberName) | public void | updateReplyCount(int threadID, int threadReplyCount) | public void | updateThreadAttachCount(int threadID, int attachCount) | public void | updateThreadHasPoll(int threadID, int pollCount) | public void | updateThreadStatus(int threadID, int threadStatus) | public void | updateThreadType(int threadID, int threadType) | public void | updateTopic_Body_Icon(int threadID, String threadTopic, String threadBody, String threadIcon, int threadPriority) |
ThreadDAOImplJDBC | public ThreadDAOImplJDBC()(Code) | | |
createThread | public int createThread(int forumID, String memberName, String lastPostMemberName, String threadTopic, String threadBody, int threadVoteCount, int threadVoteTotalStars, Timestamp threadCreationDate, Timestamp threadLastPostDate, int threadType, int threadPriority, int threadOption, int threadStatus, int threadHasPoll, int threadViewCount, int threadReplyCount, String threadIcon, int threadDuration, int threadAttachCount) throws ObjectNotFoundException, CreateException, DatabaseException, ForeignKeyNotFoundException(Code) | | |
getEnableThreadsWithPendingPosts_inForum_withSortSupport_limit | public Collection getEnableThreadsWithPendingPosts_inForum_withSortSupport_limit(int forumID, int offset, int rowsToReturn, String sort, String order) throws IllegalArgumentException, DatabaseException, ObjectNotFoundException(Code) | | This method is used to get enable threads that having at least one pending post (for moderation)
Note: current implementation use the NOSCROLL method which is quite slow
NOTE: This method is a hack for Oracle because of the error "Not a Group By expression"
and when add to the group by clause, then it cannot group by a LONG column
Parameters: offset - Parameters: rowsToReturn - Parameters: sort - Parameters: order - throws: java.lang.IllegalArgumentException - if the arguments are not valid throws: DatabaseException - |
getNumberOfDisableThreads_inForum | public int getNumberOfDisableThreads_inForum(int forumID) throws DatabaseException(Code) | | |
getNumberOfEnableThreads | public int getNumberOfEnableThreads(boolean onlyNoReply, int status, int category, int forum) throws DatabaseException(Code) | | |
getNumberOfEnableThreadsWithPendingPosts | public int getNumberOfEnableThreadsWithPendingPosts() throws DatabaseException(Code) | | |
getNumberOfEnableThreadsWithPendingPosts_inForum | public int getNumberOfEnableThreadsWithPendingPosts_inForum(int forumID) throws DatabaseException(Code) | | |
getNumberOfEnableThreads_inForum | public int getNumberOfEnableThreads_inForum(int forumID) throws DatabaseException(Code) | | Note: this is a customized method
|
getNumberOfNormalEnableThreads_inForum | public int getNumberOfNormalEnableThreads_inForum(int forumID) throws DatabaseException(Code) | | |
getPreviousEnableThread | public int getPreviousEnableThread(int forumID, int threadID) throws DatabaseException(Code) | | |
isDirty | protected static boolean isDirty()(Code) | | |
setDirty | protected static void setDirty(boolean dirty)(Code) | | |
|
|