com.liferay.portlet.messageboards.service.persistence
Interface MBStatsUserPersistence

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface MBStatsUserPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByG_M(long groupId, int messageCount)
           
 int countByG_U(long groupId, long userId)
           
 int countByGroupId(long groupId)
           
 int countByUserId(long userId)
           
 MBStatsUser create(long statsUserId)
           
 MBStatsUser fetchByG_U(long groupId, long userId)
           
 MBStatsUser fetchByPrimaryKey(long statsUserId)
           
 java.util.List<MBStatsUser> findAll()
           
 java.util.List<MBStatsUser> findAll(int start, int end)
           
 java.util.List<MBStatsUser> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBStatsUser findByG_M_First(long groupId, int messageCount, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBStatsUser findByG_M_Last(long groupId, int messageCount, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBStatsUser[] findByG_M_PrevAndNext(long statsUserId, long groupId, int messageCount, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<MBStatsUser> findByG_M(long groupId, int messageCount)
           
 java.util.List<MBStatsUser> findByG_M(long groupId, int messageCount, int start, int end)
           
 java.util.List<MBStatsUser> findByG_M(long groupId, int messageCount, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBStatsUser findByG_U(long groupId, long userId)
           
 MBStatsUser findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBStatsUser findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBStatsUser[] findByGroupId_PrevAndNext(long statsUserId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<MBStatsUser> findByGroupId(long groupId)
           
 java.util.List<MBStatsUser> findByGroupId(long groupId, int start, int end)
           
 java.util.List<MBStatsUser> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBStatsUser findByPrimaryKey(long statsUserId)
           
 MBStatsUser findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBStatsUser findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 MBStatsUser[] findByUserId_PrevAndNext(long statsUserId, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<MBStatsUser> findByUserId(long userId)
           
 java.util.List<MBStatsUser> findByUserId(long userId, int start, int end)
           
 java.util.List<MBStatsUser> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 MBStatsUser remove(long statsUserId)
           
 MBStatsUser remove(MBStatsUser mbStatsUser)
           
 void removeAll()
           
 void removeByG_M(long groupId, int messageCount)
           
 void removeByG_U(long groupId, long userId)
           
 void removeByGroupId(long groupId)
           
 void removeByUserId(long userId)
           
 MBStatsUser update(MBStatsUser mbStatsUser)
          Deprecated. Use update(MBStatsUser mbStatsUser, boolean merge).
 MBStatsUser update(MBStatsUser mbStatsUser, boolean merge)
          Add, update, or merge, the entity.
 MBStatsUser updateImpl(MBStatsUser mbStatsUser, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

MBStatsUser create(long statsUserId)

remove

MBStatsUser remove(long statsUserId)
                   throws com.liferay.portal.SystemException,
                          NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
NoSuchStatsUserException

remove

MBStatsUser remove(MBStatsUser mbStatsUser)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

MBStatsUser update(MBStatsUser mbStatsUser)
                   throws com.liferay.portal.SystemException
Deprecated. Use update(MBStatsUser mbStatsUser, boolean merge).

Throws:
com.liferay.portal.SystemException

update

MBStatsUser update(MBStatsUser mbStatsUser,
                   boolean merge)
                   throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
mbStatsUser - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when mbStatsUser is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

MBStatsUser updateImpl(MBStatsUser mbStatsUser,
                       boolean merge)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBStatsUser findByPrimaryKey(long statsUserId)
                             throws com.liferay.portal.SystemException,
                                    NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
NoSuchStatsUserException

fetchByPrimaryKey

MBStatsUser fetchByPrimaryKey(long statsUserId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBStatsUser> findByGroupId(long groupId)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBStatsUser> findByGroupId(long groupId,
                                                        int start,
                                                        int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBStatsUser> findByGroupId(long groupId,
                                                        int start,
                                                        int end,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBStatsUser findByGroupId_First(long groupId,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException,
                                       NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
NoSuchStatsUserException

findByGroupId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBStatsUser findByGroupId_Last(long groupId,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException,
                                      NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
NoSuchStatsUserException

findByGroupId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBStatsUser[] findByGroupId_PrevAndNext(long statsUserId,
                                                      long groupId,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
NoSuchStatsUserException

findByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBStatsUser> findByUserId(long userId)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBStatsUser> findByUserId(long userId,
                                                       int start,
                                                       int end)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBStatsUser> findByUserId(long userId,
                                                       int start,
                                                       int end,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBStatsUser findByUserId_First(long userId,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException,
                                      NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
NoSuchStatsUserException

findByUserId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBStatsUser findByUserId_Last(long userId,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
NoSuchStatsUserException

findByUserId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBStatsUser[] findByUserId_PrevAndNext(long statsUserId,
                                                     long userId,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
NoSuchStatsUserException

findByG_U

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBStatsUser findByG_U(long groupId,
                                    long userId)
                      throws com.liferay.portal.SystemException,
                             NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
NoSuchStatsUserException

fetchByG_U

MBStatsUser fetchByG_U(long groupId,
                       long userId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_M

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBStatsUser> findByG_M(long groupId,
                                                    int messageCount)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_M

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBStatsUser> findByG_M(long groupId,
                                                    int messageCount,
                                                    int start,
                                                    int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_M

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBStatsUser> findByG_M(long groupId,
                                                    int messageCount,
                                                    int start,
                                                    int end,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_M_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBStatsUser findByG_M_First(long groupId,
                                          int messageCount,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws com.liferay.portal.SystemException,
                                   NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
NoSuchStatsUserException

findByG_M_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBStatsUser findByG_M_Last(long groupId,
                                         int messageCount,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                           throws com.liferay.portal.SystemException,
                                  NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
NoSuchStatsUserException

findByG_M_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBStatsUser[] findByG_M_PrevAndNext(long statsUserId,
                                                  long groupId,
                                                  int messageCount,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchStatsUserException
Throws:
com.liferay.portal.SystemException
NoSuchStatsUserException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBStatsUser> findAll()
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBStatsUser> findAll(int start,
                                                  int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBStatsUser> findAll(int start,
                                                  int end,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByGroupId

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

removeByUserId

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

removeByG_U

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

removeByG_M

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

removeAll

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

countByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByGroupId(long groupId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByUserId(long userId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_U

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByG_U(long groupId,
                             long userId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_M

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByG_M(long groupId,
                             int messageCount)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException