net.myvietnam.mvnplugin.mvnforum.db
Class GroupsWebHelper

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

public class GroupsWebHelper
extends java.lang.Object


Field Summary
static java.lang.String TABLE_NAME
           
 
Constructor Summary
protected GroupsWebHelper()
           
 
Method Summary
protected static void create(java.lang.String groupOwnerName, java.lang.String groupName, java.lang.String groupDesc, int groupOption, java.sql.Timestamp groupCreationDate, java.sql.Timestamp groupModifiedDate)
          NOTE: This is a customized method, it get groupOwnerID from groupOwnerName and I remove the groupOwnerID from the parameter list
protected static void delete(int groupID)
           
protected static void findByAlternateKey_GroupName(java.lang.String groupName)
           
protected static void findByPrimaryKey(int groupID)
           
protected static GroupsBean getBean(int groupID)
           
protected static java.util.Collection getBeans()
           
static int getGroupIDFromGroupName(java.lang.String groupName)
           
protected static int getNumberOfBeans()
           
protected static boolean isDirty()
           
protected static void setDirty(boolean dirty)
           
protected static void update(int groupID, java.lang.String groupName, java.lang.String groupDesc, java.sql.Timestamp groupModifiedDate)
           
protected static void updateOwner(int groupID, java.lang.String groupOwnerName, java.sql.Timestamp groupModifiedDate)
           
 
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

GroupsWebHelper

protected GroupsWebHelper()
Method Detail

isDirty

protected static boolean isDirty()

setDirty

protected static void setDirty(boolean dirty)

findByPrimaryKey

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

findByAlternateKey_GroupName

protected static void findByAlternateKey_GroupName(java.lang.String groupName)
                                            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(java.lang.String groupOwnerName,
                             java.lang.String groupName,
                             java.lang.String groupDesc,
                             int groupOption,
                             java.sql.Timestamp groupCreationDate,
                             java.sql.Timestamp groupModifiedDate)
                      throws net.myvietnam.mvncore.exception.CreateException,
                             net.myvietnam.mvncore.exception.DatabaseException,
                             net.myvietnam.mvncore.exception.DuplicateKeyException,
                             net.myvietnam.mvncore.exception.ForeignKeyNotFoundException
NOTE: This is a customized method, it get groupOwnerID from groupOwnerName and I remove the groupOwnerID from the parameter list

net.myvietnam.mvncore.exception.CreateException
net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.DuplicateKeyException
net.myvietnam.mvncore.exception.ForeignKeyNotFoundException

delete

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

update

protected static void update(int groupID,
                             java.lang.String groupName,
                             java.lang.String groupDesc,
                             java.sql.Timestamp groupModifiedDate)
                      throws net.myvietnam.mvncore.exception.BadInputException,
                             net.myvietnam.mvncore.exception.DatabaseException,
                             net.myvietnam.mvncore.exception.DuplicateKeyException
net.myvietnam.mvncore.exception.BadInputException
net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.DuplicateKeyException

updateOwner

protected static void updateOwner(int groupID,
                                  java.lang.String groupOwnerName,
                                  java.sql.Timestamp groupModifiedDate)
                           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 GroupsBean getBean(int groupID)
                             throws net.myvietnam.mvncore.exception.BadInputException,
                                    net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.BadInputException
net.myvietnam.mvncore.exception.DatabaseException

getBeans

protected static java.util.Collection getBeans()
                                        throws net.myvietnam.mvncore.exception.DatabaseException
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

getGroupIDFromGroupName

public static final int getGroupIDFromGroupName(java.lang.String groupName)
                                         throws net.myvietnam.mvncore.exception.BadInputException,
                                                net.myvietnam.mvncore.exception.DatabaseException
net.myvietnam.mvncore.exception.BadInputException
net.myvietnam.mvncore.exception.DatabaseException