com.liferay.portlet.messageboards.service.persistence
Class MBStatsUserUtil

java.lang.Object
  extended bycom.liferay.portlet.messageboards.service.persistence.MBStatsUserUtil

public class MBStatsUserUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
MBStatsUserUtil()
           
 
Method Summary
static int countAll()
           
static int countByG_M(long groupId, int messageCount)
           
static int countByG_U(long groupId, long userId)
           
static int countByGroupId(long groupId)
           
static int countByUserId(long userId)
           
static com.liferay.portlet.messageboards.model.MBStatsUser create(long statsUserId)
           
static com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(long groupId, long userId)
           
static com.liferay.portlet.messageboards.model.MBStatsUser fetchByPrimaryKey(long statsUserId)
           
static java.util.List findAll()
           
static java.util.List findAll(int begin, int end)
           
static java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBStatsUser findByG_M_First(long groupId, int messageCount, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBStatsUser findByG_M_Last(long groupId, int messageCount, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_M_PrevAndNext(long statsUserId, long groupId, int messageCount, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByG_M(long groupId, int messageCount)
           
static java.util.List findByG_M(long groupId, int messageCount, int begin, int end)
           
static java.util.List findByG_M(long groupId, int messageCount, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBStatsUser findByG_U(long groupId, long userId)
           
static com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBStatsUser[] findByGroupId_PrevAndNext(long statsUserId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByGroupId(long groupId)
           
static java.util.List findByGroupId(long groupId, int begin, int end)
           
static java.util.List findByGroupId(long groupId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBStatsUser findByPrimaryKey(long statsUserId)
           
static com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.messageboards.model.MBStatsUser[] findByUserId_PrevAndNext(long statsUserId, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByUserId(long userId)
           
static java.util.List findByUserId(long userId, int begin, int end)
           
static java.util.List findByUserId(long userId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static MBStatsUserPersistence getPersistence()
           
static com.liferay.portlet.messageboards.model.MBStatsUser remove(long statsUserId)
           
static com.liferay.portlet.messageboards.model.MBStatsUser remove(com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
           
static void removeAll()
           
static void removeByG_M(long groupId, int messageCount)
           
static void removeByG_U(long groupId, long userId)
           
static void removeByGroupId(long groupId)
           
static void removeByUserId(long userId)
           
 void setPersistence(MBStatsUserPersistence persistence)
           
static com.liferay.portlet.messageboards.model.MBStatsUser update(com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
           
static com.liferay.portlet.messageboards.model.MBStatsUser update(com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBStatsUserUtil

public MBStatsUserUtil()
Method Detail

create

public static com.liferay.portlet.messageboards.model.MBStatsUser create(long statsUserId)

remove

public static com.liferay.portlet.messageboards.model.MBStatsUser remove(long statsUserId)
                                                                  throws com.liferay.portal.SystemException,
                                                                         com.liferay.portlet.messageboards.NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchStatsUserException

remove

public static com.liferay.portlet.messageboards.model.MBStatsUser remove(com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
                                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portlet.messageboards.model.MBStatsUser update(com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
                                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portlet.messageboards.model.MBStatsUser update(com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
                                                                         boolean merge)
                                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static com.liferay.portlet.messageboards.model.MBStatsUser findByPrimaryKey(long statsUserId)
                                                                            throws com.liferay.portal.SystemException,
                                                                                   com.liferay.portlet.messageboards.NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchStatsUserException

fetchByPrimaryKey

public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByPrimaryKey(long statsUserId)
                                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List findByGroupId(long groupId)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List findByGroupId(long groupId,
                                           int begin,
                                           int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List findByGroupId(long groupId,
                                           int begin,
                                           int end,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId_First

public static com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_First(long groupId,
                                                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                               throws com.liferay.portal.SystemException,
                                                                                      com.liferay.portlet.messageboards.NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchStatsUserException

findByGroupId_Last

public static com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_Last(long groupId,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                              throws com.liferay.portal.SystemException,
                                                                                     com.liferay.portlet.messageboards.NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchStatsUserException

findByGroupId_PrevAndNext

public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByGroupId_PrevAndNext(long statsUserId,
                                                                                              long groupId,
                                                                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                       throws com.liferay.portal.SystemException,
                                                                                              com.liferay.portlet.messageboards.NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchStatsUserException

findByUserId

public static java.util.List findByUserId(long userId)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

public static java.util.List findByUserId(long userId,
                                          int begin,
                                          int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

public static java.util.List findByUserId(long userId,
                                          int begin,
                                          int end,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId_First

public static com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_First(long userId,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                              throws com.liferay.portal.SystemException,
                                                                                     com.liferay.portlet.messageboards.NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchStatsUserException

findByUserId_Last

public static com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_Last(long userId,
                                                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                             throws com.liferay.portal.SystemException,
                                                                                    com.liferay.portlet.messageboards.NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchStatsUserException

findByUserId_PrevAndNext

public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByUserId_PrevAndNext(long statsUserId,
                                                                                             long userId,
                                                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                      throws com.liferay.portal.SystemException,
                                                                                             com.liferay.portlet.messageboards.NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchStatsUserException

findByG_U

public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_U(long groupId,
                                                                            long userId)
                                                                     throws com.liferay.portal.SystemException,
                                                                            com.liferay.portlet.messageboards.NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchStatsUserException

fetchByG_U

public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(long groupId,
                                                                             long userId)
                                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_M

public static java.util.List findByG_M(long groupId,
                                       int messageCount)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_M

public static java.util.List findByG_M(long groupId,
                                       int messageCount,
                                       int begin,
                                       int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_M

public static java.util.List findByG_M(long groupId,
                                       int messageCount,
                                       int begin,
                                       int end,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_M_First

public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_M_First(long groupId,
                                                                                  int messageCount,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                           throws com.liferay.portal.SystemException,
                                                                                  com.liferay.portlet.messageboards.NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchStatsUserException

findByG_M_Last

public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_M_Last(long groupId,
                                                                                 int messageCount,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                          throws com.liferay.portal.SystemException,
                                                                                 com.liferay.portlet.messageboards.NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchStatsUserException

findByG_M_PrevAndNext

public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_M_PrevAndNext(long statsUserId,
                                                                                          long groupId,
                                                                                          int messageCount,
                                                                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                   throws com.liferay.portal.SystemException,
                                                                                          com.liferay.portlet.messageboards.NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchStatsUserException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                  int begin,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll()
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByGroupId

public static void removeByGroupId(long groupId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUserId

public static void removeByUserId(long userId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_U

public static void removeByG_U(long groupId,
                               long userId)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portlet.messageboards.NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchStatsUserException

removeByG_M

public static void removeByG_M(long groupId,
                               int messageCount)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

public static void removeAll()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByGroupId

public static int countByGroupId(long groupId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUserId

public static int countByUserId(long userId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_U

public static int countByG_U(long groupId,
                             long userId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_M

public static int countByG_M(long groupId,
                             int messageCount)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public static int countAll()
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPersistence

public static MBStatsUserPersistence getPersistence()

setPersistence

public void setPersistence(MBStatsUserPersistence persistence)