net.myvietnam.mvnplugin.mvnforum.db
Class PostWebHelper

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

public class PostWebHelper
extends java.lang.Object


Field Summary
static java.lang.String TABLE_NAME
           
 
Constructor Summary
protected PostWebHelper()
           
 
Method Summary
protected static void create(int parentPostID, int forumID, int threadID, int memberID, java.lang.String memberName, java.lang.String lastEditMemberName, java.lang.String postTopic, java.lang.String postBody, java.sql.Timestamp postCreationDate, java.sql.Timestamp postLastEditDate, java.lang.String postCreationIP, java.lang.String postLastEditIP, int postEditCount, int postFormatOption, int postOption, int postStatus, java.lang.String postIcon, int postAttachCount)
           
protected static void delete_inForum(int forumID)
           
protected static void delete_inThread(int threadID)
           
protected static void findByPrimaryKey(int postID)
           
protected static PostBean getBean(int postID)
           
protected static java.util.Collection getBeans_inThread_limit(int threadID, int offset, int rowsToReturn)
           
protected static int getNumberOfBeans_inForum(int forumID)
           
protected static int getNumberOfBeans_inThread(int threadID)
           
protected static int getNumberOfBeans()
           
protected static boolean isDirty()
           
protected static void setDirty(boolean dirty)
           
protected static void update(int postID, java.lang.String lastEditMemberName, java.lang.String postTopic, java.lang.String postBody, java.sql.Timestamp postLastEditDate, java.lang.String postLastEditIP, int postFormatOption, int postOption, int postStatus, java.lang.String postIcon)
           
 
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

PostWebHelper

protected PostWebHelper()
Method Detail

isDirty

protected static boolean isDirty()

setDirty

protected static void setDirty(boolean dirty)

findByPrimaryKey

protected static void findByPrimaryKey(int postID)
                                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 parentPostID,
                             int forumID,
                             int threadID,
                             int memberID,
                             java.lang.String memberName,
                             java.lang.String lastEditMemberName,
                             java.lang.String postTopic,
                             java.lang.String postBody,
                             java.sql.Timestamp postCreationDate,
                             java.sql.Timestamp postLastEditDate,
                             java.lang.String postCreationIP,
                             java.lang.String postLastEditIP,
                             int postEditCount,
                             int postFormatOption,
                             int postOption,
                             int postStatus,
                             java.lang.String postIcon,
                             int postAttachCount)
                      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_inThread

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

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

update

protected static void update(int postID,
                             java.lang.String lastEditMemberName,
                             java.lang.String postTopic,
                             java.lang.String postBody,
                             java.sql.Timestamp postLastEditDate,
                             java.lang.String postLastEditIP,
                             int postFormatOption,
                             int postOption,
                             int postStatus,
                             java.lang.String postIcon)
                      throws net.myvietnam.mvncore.exception.BadInputException,
                             net.myvietnam.mvncore.exception.DatabaseException,
                             net.myvietnam.mvncore.exception.ForeignKeyNotFoundException
net.myvietnam.mvncore.exception.BadInputException
net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.ForeignKeyNotFoundException

getBean

protected static PostBean getBean(int postID)
                           throws net.myvietnam.mvncore.exception.BadInputException,
                                  net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.BadInputException
net.myvietnam.mvncore.exception.DatabaseException

getBeans_inThread_limit

protected static java.util.Collection getBeans_inThread_limit(int threadID,
                                                              int offset,
                                                              int rowsToReturn)
                                                       throws java.lang.IllegalArgumentException,
                                                              net.myvietnam.mvncore.exception.DatabaseException
java.lang.IllegalArgumentException
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
net.myvietnam.mvncore.exception.AssertionException
net.myvietnam.mvncore.exception.DatabaseException

getNumberOfBeans_inThread

protected static int getNumberOfBeans_inThread(int threadID)
                                        throws net.myvietnam.mvncore.exception.AssertionException,
                                               net.myvietnam.mvncore.exception.DatabaseException
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