com.liferay.portlet.social.service.persistence
Interface SocialActivityPersistence


public interface SocialActivityPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByC_C(long classNameId, long classPK)
           
 int countByCompanyId(long companyId)
           
 int countByGroupId(long groupId)
           
 int countByReceiverUserId(long receiverUserId)
           
 int countByUserId(long userId)
           
 SocialActivity create(long activityId)
           
 SocialActivity fetchByPrimaryKey(long activityId)
           
 java.util.List<SocialActivity> findAll()
           
 java.util.List<SocialActivity> findAll(int begin, int end)
           
 java.util.List<SocialActivity> findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SocialActivity findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SocialActivity findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SocialActivity[] findByC_C_PrevAndNext(long activityId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<SocialActivity> findByC_C(long classNameId, long classPK)
           
 java.util.List<SocialActivity> findByC_C(long classNameId, long classPK, int begin, int end)
           
 java.util.List<SocialActivity> findByC_C(long classNameId, long classPK, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SocialActivity findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SocialActivity findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SocialActivity[] findByCompanyId_PrevAndNext(long activityId, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<SocialActivity> findByCompanyId(long companyId)
           
 java.util.List<SocialActivity> findByCompanyId(long companyId, int begin, int end)
           
 java.util.List<SocialActivity> findByCompanyId(long companyId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SocialActivity findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SocialActivity findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SocialActivity[] findByGroupId_PrevAndNext(long activityId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<SocialActivity> findByGroupId(long groupId)
           
 java.util.List<SocialActivity> findByGroupId(long groupId, int begin, int end)
           
 java.util.List<SocialActivity> findByGroupId(long groupId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SocialActivity findByPrimaryKey(long activityId)
           
 SocialActivity findByReceiverUserId_First(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SocialActivity findByReceiverUserId_Last(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SocialActivity[] findByReceiverUserId_PrevAndNext(long activityId, long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<SocialActivity> findByReceiverUserId(long receiverUserId)
           
 java.util.List<SocialActivity> findByReceiverUserId(long receiverUserId, int begin, int end)
           
 java.util.List<SocialActivity> findByReceiverUserId(long receiverUserId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SocialActivity findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SocialActivity findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SocialActivity[] findByUserId_PrevAndNext(long activityId, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<SocialActivity> findByUserId(long userId)
           
 java.util.List<SocialActivity> findByUserId(long userId, int begin, int end)
           
 java.util.List<SocialActivity> findByUserId(long userId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<SocialActivity> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List<SocialActivity> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 SocialActivity remove(long activityId)
           
 SocialActivity remove(SocialActivity socialActivity)
           
 void removeAll()
           
 void removeByC_C(long classNameId, long classPK)
           
 void removeByCompanyId(long companyId)
           
 void removeByGroupId(long groupId)
           
 void removeByReceiverUserId(long receiverUserId)
           
 void removeByUserId(long userId)
           
 SocialActivity update(SocialActivity socialActivity)
          Deprecated. Use update(SocialActivity socialActivity, boolean merge).
 SocialActivity update(SocialActivity socialActivity, boolean merge)
          Add, update, or merge, the entity.
 SocialActivity updateImpl(SocialActivity socialActivity, boolean merge)
           
 

Method Detail

create

SocialActivity create(long activityId)

remove

SocialActivity remove(long activityId)
                      throws com.liferay.portal.SystemException,
                             NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

remove

SocialActivity remove(SocialActivity socialActivity)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

SocialActivity update(SocialActivity socialActivity)
                      throws com.liferay.portal.SystemException
Deprecated. Use update(SocialActivity socialActivity, boolean merge).

Throws:
com.liferay.portal.SystemException

update

SocialActivity update(SocialActivity socialActivity,
                      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:
socialActivity - 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 socialActivity 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

SocialActivity updateImpl(SocialActivity socialActivity,
                          boolean merge)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

SocialActivity findByPrimaryKey(long activityId)
                                throws com.liferay.portal.SystemException,
                                       NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

fetchByPrimaryKey

SocialActivity fetchByPrimaryKey(long activityId)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

java.util.List<SocialActivity> findByGroupId(long groupId)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

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

findByGroupId

java.util.List<SocialActivity> 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

SocialActivity findByGroupId_First(long groupId,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

findByGroupId_Last

SocialActivity findByGroupId_Last(long groupId,
                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

findByGroupId_PrevAndNext

SocialActivity[] findByGroupId_PrevAndNext(long activityId,
                                           long groupId,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException,
                                                  NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

findByCompanyId

java.util.List<SocialActivity> findByCompanyId(long companyId)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

java.util.List<SocialActivity> findByCompanyId(long companyId,
                                               int begin,
                                               int end)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

java.util.List<SocialActivity> findByCompanyId(long companyId,
                                               int begin,
                                               int end,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId_First

SocialActivity findByCompanyId_First(long companyId,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

findByCompanyId_Last

SocialActivity findByCompanyId_Last(long companyId,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

findByCompanyId_PrevAndNext

SocialActivity[] findByCompanyId_PrevAndNext(long activityId,
                                             long companyId,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                             throws com.liferay.portal.SystemException,
                                                    NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

findByUserId

java.util.List<SocialActivity> findByUserId(long userId)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

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

findByUserId

java.util.List<SocialActivity> 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

SocialActivity findByUserId_First(long userId,
                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

findByUserId_Last

SocialActivity findByUserId_Last(long userId,
                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

findByUserId_PrevAndNext

SocialActivity[] findByUserId_PrevAndNext(long activityId,
                                          long userId,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException,
                                                 NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

findByReceiverUserId

java.util.List<SocialActivity> findByReceiverUserId(long receiverUserId)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByReceiverUserId

java.util.List<SocialActivity> findByReceiverUserId(long receiverUserId,
                                                    int begin,
                                                    int end)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByReceiverUserId

java.util.List<SocialActivity> findByReceiverUserId(long receiverUserId,
                                                    int begin,
                                                    int end,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByReceiverUserId_First

SocialActivity findByReceiverUserId_First(long receiverUserId,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException,
                                                 NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

findByReceiverUserId_Last

SocialActivity findByReceiverUserId_Last(long receiverUserId,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

findByReceiverUserId_PrevAndNext

SocialActivity[] findByReceiverUserId_PrevAndNext(long activityId,
                                                  long receiverUserId,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                                  throws com.liferay.portal.SystemException,
                                                         NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

findByC_C

java.util.List<SocialActivity> findByC_C(long classNameId,
                                         long classPK)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_C

java.util.List<SocialActivity> findByC_C(long classNameId,
                                         long classPK,
                                         int begin,
                                         int end)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_C

java.util.List<SocialActivity> findByC_C(long classNameId,
                                         long classPK,
                                         int begin,
                                         int end,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_C_First

SocialActivity findByC_C_First(long classNameId,
                               long classPK,
                               com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException,
                                      NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

findByC_C_Last

SocialActivity findByC_C_Last(long classNameId,
                              long classPK,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

findByC_C_PrevAndNext

SocialActivity[] findByC_C_PrevAndNext(long activityId,
                                       long classNameId,
                                       long classPK,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchActivityException
Throws:
com.liferay.portal.SystemException
NoSuchActivityException

findWithDynamicQuery

java.util.List<SocialActivity> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

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

findAll

java.util.List<SocialActivity> findAll()
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<SocialActivity> findAll(int begin,
                                       int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<SocialActivity> findAll(int begin,
                                       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

removeByCompanyId

void removeByCompanyId(long companyId)
                       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

removeByReceiverUserId

void removeByReceiverUserId(long receiverUserId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByC_C

void removeByC_C(long classNameId,
                 long classPK)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

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

countByGroupId

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

countByCompanyId

int countByCompanyId(long companyId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUserId

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

countByReceiverUserId

int countByReceiverUserId(long receiverUserId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_C

int countByC_C(long classNameId,
               long classPK)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

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