net.myvietnam.mvnplugin.mvnforum.db
Class ThreadWebHelper

java.lang.Object
  |
  +--net.myvietnam.mvnplugin.mvnforum.db.ThreadWebHelper

public class ThreadWebHelper
extends java.lang.Object


Field Summary
static java.lang.String TABLE_NAME
           
 
Constructor Summary
protected ThreadWebHelper()
           
 
Method Summary
protected static void create(int forumID, java.lang.String memberName, java.lang.String lastPostMemberName, java.lang.String threadTopic, java.lang.String threadBody, int threadVoteCount, int threadVoteTotalStars, java.sql.Timestamp threadCreationDate, java.sql.Timestamp threadLastPostDate, int threadType, int threadOption, int threadStatus, int threadHasPoll, int threadViewCount, int threadReplyCount, java.lang.String threadIcon, int threadDuration)
           
protected static void delete_inForum(int forumID)
           
protected static void delete(int threadID)
           
protected static void findByPrimaryKey(int threadID)
           
protected static ThreadBean getBean(int threadID)
           
protected static java.util.Collection getBeans_inForum_withSortSupport_limit(int forumID, int offset, int rowsToReturn, java.lang.String sort, java.lang.String order)
          Note: This is a customized method
protected static java.util.Collection getBeans_withSortSupport_limit(int offset, int rowsToReturn, java.lang.String sort, java.lang.String order)
          Customized methods come below
protected static int getNumberOfBeans_inForum(int forumID)
          Note: this is a customized method
protected static int getNumberOfBeans()
           
protected static boolean isDirty()
           
protected static void setDirty(boolean dirty)
           
protected static void updateLastPostDate(int threadID, java.sql.Timestamp threadLastPostDate)
           
protected static void updateTopic_Body(int threadID, java.lang.String threadTopic, java.lang.String threadBody)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABLE_NAME

public static final java.lang.String TABLE_NAME
See Also:
Constant Field Values
Constructor Detail

ThreadWebHelper

protected ThreadWebHelper()
Method Detail

isDirty

protected static boolean isDirty()

setDirty

protected static void setDirty(boolean dirty)

findByPrimaryKey

protected static void findByPrimaryKey(int threadID)
                                throws net.myvietnam.mvncore.exception.ObjectNotFoundException,
                                       net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.ObjectNotFoundException
net.myvietnam.mvncore.exception.DatabaseException

create

protected static void create(int forumID,
                             java.lang.String memberName,
                             java.lang.String lastPostMemberName,
                             java.lang.String threadTopic,
                             java.lang.String threadBody,
                             int threadVoteCount,
                             int threadVoteTotalStars,
                             java.sql.Timestamp threadCreationDate,
                             java.sql.Timestamp threadLastPostDate,
                             int threadType,
                             int threadOption,
                             int threadStatus,
                             int threadHasPoll,
                             int threadViewCount,
                             int threadReplyCount,
                             java.lang.String threadIcon,
                             int threadDuration)
                      throws net.myvietnam.mvncore.exception.CreateException,
                             net.myvietnam.mvncore.exception.DatabaseException,
                             net.myvietnam.mvncore.exception.ForeignKeyNotFoundException
net.myvietnam.mvncore.exception.CreateException
net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.ForeignKeyNotFoundException

delete

protected static void delete(int threadID)
                      throws net.myvietnam.mvncore.exception.DatabaseException,
                             net.myvietnam.mvncore.exception.BadInputException
net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.BadInputException

delete_inForum

protected static void delete_inForum(int forumID)
                              throws net.myvietnam.mvncore.exception.DatabaseException,
                                     net.myvietnam.mvncore.exception.ObjectNotFoundException
net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.ObjectNotFoundException

updateTopic_Body

protected static void updateTopic_Body(int threadID,
                                       java.lang.String threadTopic,
                                       java.lang.String threadBody)
                                throws net.myvietnam.mvncore.exception.BadInputException,
                                       net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.BadInputException
net.myvietnam.mvncore.exception.DatabaseException

updateLastPostDate

protected static void updateLastPostDate(int threadID,
                                         java.sql.Timestamp threadLastPostDate)
                                  throws net.myvietnam.mvncore.exception.BadInputException,
                                         net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.BadInputException
net.myvietnam.mvncore.exception.DatabaseException

getBean

protected static ThreadBean getBean(int threadID)
                             throws net.myvietnam.mvncore.exception.BadInputException,
                                    net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.BadInputException
net.myvietnam.mvncore.exception.DatabaseException

getNumberOfBeans_inForum

protected static int getNumberOfBeans_inForum(int forumID)
                                       throws net.myvietnam.mvncore.exception.AssertionException,
                                              net.myvietnam.mvncore.exception.DatabaseException
Note: this is a customized method

net.myvietnam.mvncore.exception.AssertionException
net.myvietnam.mvncore.exception.DatabaseException

getNumberOfBeans

protected static int getNumberOfBeans()
                               throws net.myvietnam.mvncore.exception.AssertionException,
                                      net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.AssertionException
net.myvietnam.mvncore.exception.DatabaseException

getBeans_withSortSupport_limit

protected static java.util.Collection getBeans_withSortSupport_limit(int offset,
                                                                     int rowsToReturn,
                                                                     java.lang.String sort,
                                                                     java.lang.String order)
                                                              throws java.lang.IllegalArgumentException,
                                                                     net.myvietnam.mvncore.exception.DatabaseException,
                                                                     net.myvietnam.mvncore.exception.BadInputException
Customized methods come below

java.lang.IllegalArgumentException
net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.BadInputException

getBeans_inForum_withSortSupport_limit

protected static java.util.Collection getBeans_inForum_withSortSupport_limit(int forumID,
                                                                             int offset,
                                                                             int rowsToReturn,
                                                                             java.lang.String sort,
                                                                             java.lang.String order)
                                                                      throws java.lang.IllegalArgumentException,
                                                                             net.myvietnam.mvncore.exception.DatabaseException,
                                                                             net.myvietnam.mvncore.exception.BadInputException
Note: This is a customized method

java.lang.IllegalArgumentException
net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.BadInputException