com.liferay.portlet.social.service.persistence
Class SocialActivityPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivity>
      extended by com.liferay.portlet.social.service.persistence.SocialActivityPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialActivity>, com.liferay.portlet.social.service.persistence.SocialActivityPersistence

public class SocialActivityPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivity>
implements com.liferay.portlet.social.service.persistence.SocialActivityPersistence

The persistence implementation for the social activity service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
SocialActivityPersistence, SocialActivityUtil
Generated:

Field Summary
protected  com.liferay.portlet.asset.service.persistence.AssetEntryPersistence assetEntryPersistence
           
static java.lang.String FINDER_CLASS_NAME_ENTITY
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_U_C_C_T_R
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_U_CD_C_C_T_R
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_M_C_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_MIRRORACTIVITYID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_RECEIVERUSERID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_USERID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_G_U_CD_C_C_T_R
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_MIRRORACTIVITYID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSNAMEID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_C_C_T_R
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_M_C_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_RECEIVERUSERID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_C_C_T_R
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_M_C_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_RECEIVERUSERID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID
           
protected  com.liferay.portal.service.persistence.GroupPersistence groupPersistence
           
protected  com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence
           
protected  com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence socialActivityAchievementPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence socialActivityCounterPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence socialActivityLimitPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivityPersistence socialActivityPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence socialActivitySettingPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialRelationPersistence socialRelationPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialRequestPersistence socialRequestPersistence
           
protected  com.liferay.portal.service.persistence.UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
SocialActivityPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the social activity persistence.
 void cacheResult(java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities)
          Caches the social activities in the entity cache if it is enabled.
 void cacheResult(com.liferay.portlet.social.model.SocialActivity socialActivity)
          Caches the social activity in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all social activities.
 void clearCache(java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities)
           
 void clearCache(com.liferay.portlet.social.model.SocialActivity socialActivity)
          Clears the cache for the social activity.
protected  void clearUniqueFindersCache(com.liferay.portlet.social.model.SocialActivity socialActivity)
           
 int countAll()
          Returns the number of social activities.
 int countByC_C(long classNameId, long classPK)
          Returns the number of social activities where classNameId = ? and classPK = ?.
 int countByClassNameId(long classNameId)
          Returns the number of social activities where classNameId = ?.
 int countByCompanyId(long companyId)
          Returns the number of social activities where companyId = ?.
 int countByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId)
          Returns the number of social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 int countByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Returns the number of social activities where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 int countByGroupId(long groupId)
          Returns the number of social activities where groupId = ?.
 int countByM_C_C(long mirrorActivityId, long classNameId, long classPK)
          Returns the number of social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 int countByMirrorActivityId(long mirrorActivityId)
          Returns the number of social activities where mirrorActivityId = ?.
 int countByReceiverUserId(long receiverUserId)
          Returns the number of social activities where receiverUserId = ?.
 int countByUserId(long userId)
          Returns the number of social activities where userId = ?.
 com.liferay.portlet.social.model.SocialActivity create(long activityId)
          Creates a new social activity with the primary key.
 void destroy()
           
 com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found.
 com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId, boolean retrieveFromCache)
          Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(long mirrorActivityId)
          Returns the social activity where mirrorActivityId = ? or returns null if it could not be found.
 com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(long mirrorActivityId, boolean retrieveFromCache)
          Returns the social activity where mirrorActivityId = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(long activityId)
          Returns the social activity with the primary key or returns null if it could not be found.
 com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(java.io.Serializable primaryKey)
          Returns the social activity with the primary key or returns null if it could not be found.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
          Returns all the social activities.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(int start, int end)
          Returns a range of all the social activities.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social activities.
 com.liferay.portlet.social.model.SocialActivity findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.
 com.liferay.portlet.social.model.SocialActivity findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where classNameId = ? and classPK = ?.
 com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext(long activityId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(long classNameId, long classPK)
          Returns all the social activities where classNameId = ? and classPK = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(long classNameId, long classPK, int start, int end)
          Returns a range of all the social activities where classNameId = ? and classPK = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social activities where classNameId = ? and classPK = ?.
 com.liferay.portlet.social.model.SocialActivity findByClassNameId_First(long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where classNameId = ?.
 com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last(long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where classNameId = ?.
 com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext(long activityId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where classNameId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(long classNameId)
          Returns all the social activities where classNameId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(long classNameId, int start, int end)
          Returns a range of all the social activities where classNameId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social activities where classNameId = ?.
 com.liferay.portlet.social.model.SocialActivity findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where companyId = ?.
 com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where companyId = ?.
 com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(long activityId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where companyId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(long companyId)
          Returns all the social activities where companyId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the social activities where companyId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social activities where companyId = ?.
 com.liferay.portlet.social.model.SocialActivity findByG_U_C_C_T_R_First(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 com.liferay.portlet.social.model.SocialActivity findByG_U_C_C_T_R_Last(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 com.liferay.portlet.social.model.SocialActivity[] findByG_U_C_C_T_R_PrevAndNext(long activityId, long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId)
          Returns all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, int start, int end)
          Returns a range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or throws a NoSuchActivityException if it could not be found.
 com.liferay.portlet.social.model.SocialActivity findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where groupId = ?.
 com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where groupId = ?.
 com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(long activityId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where groupId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(long groupId)
          Returns all the social activities where groupId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(long groupId, int start, int end)
          Returns a range of all the social activities where groupId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social activities where groupId = ?.
 com.liferay.portlet.social.model.SocialActivity findByM_C_C_First(long mirrorActivityId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last(long mirrorActivityId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext(long activityId, long mirrorActivityId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK)
          Returns all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK, int start, int end)
          Returns a range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(long mirrorActivityId)
          Returns the social activity where mirrorActivityId = ? or throws a NoSuchActivityException if it could not be found.
 com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(long activityId)
          Returns the social activity with the primary key or throws a NoSuchActivityException if it could not be found.
 com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(java.io.Serializable primaryKey)
          Returns the social activity with the primary key or throws a NoSuchModelException if it could not be found.
 com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where receiverUserId = ?.
 com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where receiverUserId = ?.
 com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext(long activityId, long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where receiverUserId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(long receiverUserId)
          Returns all the social activities where receiverUserId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end)
          Returns a range of all the social activities where receiverUserId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social activities where receiverUserId = ?.
 com.liferay.portlet.social.model.SocialActivity findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where userId = ?.
 com.liferay.portlet.social.model.SocialActivity findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where userId = ?.
 com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(long activityId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where userId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(long userId)
          Returns all the social activities where userId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(long userId, int start, int end)
          Returns a range of all the social activities where userId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social activities where userId = ?.
protected  com.liferay.portlet.social.model.SocialActivity getByC_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialActivity socialActivity, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialActivity getByClassNameId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialActivity socialActivity, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialActivity getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialActivity socialActivity, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialActivity getByG_U_C_C_T_R_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialActivity socialActivity, long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialActivity getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialActivity socialActivity, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialActivity getByM_C_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialActivity socialActivity, long mirrorActivityId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialActivity getByReceiverUserId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialActivity socialActivity, long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialActivity getByUserId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialActivity socialActivity, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 com.liferay.portlet.social.model.SocialActivity remove(long activityId)
          Removes the social activity with the primary key from the database.
 com.liferay.portlet.social.model.SocialActivity remove(java.io.Serializable primaryKey)
          Removes the social activity with the primary key from the database.
 void removeAll()
          Removes all the social activities from the database.
 void removeByC_C(long classNameId, long classPK)
          Removes all the social activities where classNameId = ? and classPK = ? from the database.
 void removeByClassNameId(long classNameId)
          Removes all the social activities where classNameId = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the social activities where companyId = ? from the database.
 void removeByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId)
          Removes all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database.
 void removeByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Removes the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the social activities where groupId = ? from the database.
 void removeByM_C_C(long mirrorActivityId, long classNameId, long classPK)
          Removes all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ? from the database.
 void removeByMirrorActivityId(long mirrorActivityId)
          Removes the social activity where mirrorActivityId = ? from the database.
 void removeByReceiverUserId(long receiverUserId)
          Removes all the social activities where receiverUserId = ? from the database.
 void removeByUserId(long userId)
          Removes all the social activities where userId = ? from the database.
protected  com.liferay.portlet.social.model.SocialActivity removeImpl(com.liferay.portlet.social.model.SocialActivity socialActivity)
           
protected  com.liferay.portlet.social.model.SocialActivity toUnwrappedModel(com.liferay.portlet.social.model.SocialActivity socialActivity)
           
 com.liferay.portlet.social.model.SocialActivity updateImpl(com.liferay.portlet.social.model.SocialActivity socialActivity, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final java.lang.String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID

FINDER_PATH_COUNT_BY_USERID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_USERID

FINDER_PATH_FETCH_BY_MIRRORACTIVITYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_MIRRORACTIVITYID

FINDER_PATH_COUNT_BY_MIRRORACTIVITYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_MIRRORACTIVITYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSNAMEID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSNAMEID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID

FINDER_PATH_COUNT_BY_CLASSNAMEID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID

FINDER_PATH_WITH_PAGINATION_FIND_BY_RECEIVERUSERID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_RECEIVERUSERID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_RECEIVERUSERID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_RECEIVERUSERID

FINDER_PATH_COUNT_BY_RECEIVERUSERID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_RECEIVERUSERID

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C

FINDER_PATH_COUNT_BY_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_M_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_M_C_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_M_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_M_C_C

FINDER_PATH_COUNT_BY_M_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_M_C_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_C_C_T_R

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_C_C_T_R

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_C_C_T_R

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_C_C_T_R

FINDER_PATH_COUNT_BY_G_U_C_C_T_R

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_U_C_C_T_R

FINDER_PATH_FETCH_BY_G_U_CD_C_C_T_R

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_G_U_CD_C_C_T_R

FINDER_PATH_COUNT_BY_G_U_CD_C_C_T_R

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_U_CD_C_C_T_R

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL

socialActivityPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivityPersistence socialActivityPersistence

socialActivityAchievementPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence socialActivityAchievementPersistence

socialActivityCounterPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence socialActivityCounterPersistence

socialActivityLimitPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence socialActivityLimitPersistence

socialActivitySettingPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence socialActivitySettingPersistence

socialRelationPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialRelationPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialRelationPersistence socialRelationPersistence

socialRequestPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialRequestPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialRequestPersistence socialRequestPersistence

groupPersistence

@BeanReference(type=com.liferay.portal.service.persistence.GroupPersistence.class)
protected com.liferay.portal.service.persistence.GroupPersistence groupPersistence

layoutPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutPersistence.class)
protected com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence

resourcePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePersistence.class)
protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class)
protected com.liferay.portal.service.persistence.UserPersistence userPersistence

assetEntryPersistence

@BeanReference(type=com.liferay.portlet.asset.service.persistence.AssetEntryPersistence.class)
protected com.liferay.portlet.asset.service.persistence.AssetEntryPersistence assetEntryPersistence
Constructor Detail

SocialActivityPersistenceImpl

public SocialActivityPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(com.liferay.portlet.social.model.SocialActivity socialActivity)
Caches the social activity in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
socialActivity - the social activity

cacheResult

public void cacheResult(java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities)
Caches the social activities in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
socialActivities - the social activities

clearCache

public void clearCache()
Clears the cache for all social activities.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialActivity>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivity>

clearCache

public void clearCache(com.liferay.portlet.social.model.SocialActivity socialActivity)
Clears the cache for the social activity.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialActivity>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivity>

clearCache

public void clearCache(java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities)
Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialActivity>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivity>

clearUniqueFindersCache

protected void clearUniqueFindersCache(com.liferay.portlet.social.model.SocialActivity socialActivity)

create

public com.liferay.portlet.social.model.SocialActivity create(long activityId)
Creates a new social activity with the primary key. Does not add the social activity to the database.

Specified by:
create in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
activityId - the primary key for the new social activity
Returns:
the new social activity

remove

public com.liferay.portlet.social.model.SocialActivity remove(long activityId)
                                                       throws com.liferay.portlet.social.NoSuchActivityException,
                                                              com.liferay.portal.kernel.exception.SystemException
Removes the social activity with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
activityId - the primary key of the social activity
Returns:
the social activity that was removed
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a social activity with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

remove

public com.liferay.portlet.social.model.SocialActivity remove(java.io.Serializable primaryKey)
                                                       throws com.liferay.portlet.social.NoSuchActivityException,
                                                              com.liferay.portal.kernel.exception.SystemException
Removes the social activity with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialActivity>
Overrides:
remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivity>
Parameters:
primaryKey - the primary key of the social activity
Returns:
the social activity that was removed
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a social activity with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeImpl

protected com.liferay.portlet.social.model.SocialActivity removeImpl(com.liferay.portlet.social.model.SocialActivity socialActivity)
                                                              throws com.liferay.portal.kernel.exception.SystemException
Overrides:
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivity>
Throws:
com.liferay.portal.kernel.exception.SystemException

updateImpl

public com.liferay.portlet.social.model.SocialActivity updateImpl(com.liferay.portlet.social.model.SocialActivity socialActivity,
                                                                  boolean merge)
                                                           throws com.liferay.portal.kernel.exception.SystemException
Specified by:
updateImpl in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Overrides:
updateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivity>
Throws:
com.liferay.portal.kernel.exception.SystemException

toUnwrappedModel

protected com.liferay.portlet.social.model.SocialActivity toUnwrappedModel(com.liferay.portlet.social.model.SocialActivity socialActivity)

findByPrimaryKey

public com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(java.io.Serializable primaryKey)
                                                                 throws com.liferay.portal.NoSuchModelException,
                                                                        com.liferay.portal.kernel.exception.SystemException
Returns the social activity with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialActivity>
Overrides:
findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivity>
Parameters:
primaryKey - the primary key of the social activity
Returns:
the social activity
Throws:
com.liferay.portal.NoSuchModelException - if a social activity with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByPrimaryKey

public com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(long activityId)
                                                                 throws com.liferay.portlet.social.NoSuchActivityException,
                                                                        com.liferay.portal.kernel.exception.SystemException
Returns the social activity with the primary key or throws a NoSuchActivityException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
activityId - the primary key of the social activity
Returns:
the social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a social activity with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(java.io.Serializable primaryKey)
                                                                  throws com.liferay.portal.kernel.exception.SystemException
Returns the social activity with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialActivity>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivity>
Parameters:
primaryKey - the primary key of the social activity
Returns:
the social activity, or null if a social activity with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(long activityId)
                                                                  throws com.liferay.portal.kernel.exception.SystemException
Returns the social activity with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
activityId - the primary key of the social activity
Returns:
the social activity, or null if a social activity with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(long groupId)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns all the social activities where groupId = ?.

Specified by:
findByGroupId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
Returns:
the matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(long groupId,
                                                                                     int start,
                                                                                     int end)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the social activities where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(long groupId,
                                                                                     int start,
                                                                                     int end,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the social activities where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId_First

public com.liferay.portlet.social.model.SocialActivity findByGroupId_First(long groupId,
                                                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                    throws com.liferay.portlet.social.NoSuchActivityException,
                                                                           com.liferay.portal.kernel.exception.SystemException
Returns the first social activity in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupId_First in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId_Last

public com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(long groupId,
                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                   throws com.liferay.portlet.social.NoSuchActivityException,
                                                                          com.liferay.portal.kernel.exception.SystemException
Returns the last social activity in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupId_Last in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(long activityId,
                                                                                   long groupId,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                            throws com.liferay.portlet.social.NoSuchActivityException,
                                                                                   com.liferay.portal.kernel.exception.SystemException
Returns the social activities before and after the current social activity in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupId_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a social activity with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByGroupId_PrevAndNext

protected com.liferay.portlet.social.model.SocialActivity getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                   com.liferay.portlet.social.model.SocialActivity socialActivity,
                                                                                   long groupId,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                   boolean previous)

findByCompanyId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(long companyId)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns all the social activities where companyId = ?.

Specified by:
findByCompanyId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
companyId - the company ID
Returns:
the matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(long companyId,
                                                                                       int start,
                                                                                       int end)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the social activities where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(long companyId,
                                                                                       int start,
                                                                                       int end,
                                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the social activities where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_First

public com.liferay.portlet.social.model.SocialActivity findByCompanyId_First(long companyId,
                                                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                      throws com.liferay.portlet.social.NoSuchActivityException,
                                                                             com.liferay.portal.kernel.exception.SystemException
Returns the first social activity in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId_First in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_Last

public com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(long companyId,
                                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                     throws com.liferay.portlet.social.NoSuchActivityException,
                                                                            com.liferay.portal.kernel.exception.SystemException
Returns the last social activity in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId_Last in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(long activityId,
                                                                                     long companyId,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                              throws com.liferay.portlet.social.NoSuchActivityException,
                                                                                     com.liferay.portal.kernel.exception.SystemException
Returns the social activities before and after the current social activity in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a social activity with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByCompanyId_PrevAndNext

protected com.liferay.portlet.social.model.SocialActivity getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                     com.liferay.portlet.social.model.SocialActivity socialActivity,
                                                                                     long companyId,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                     boolean previous)

findByUserId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(long userId)
                                                                             throws com.liferay.portal.kernel.exception.SystemException
Returns all the social activities where userId = ?.

Specified by:
findByUserId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
userId - the user ID
Returns:
the matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUserId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(long userId,
                                                                                    int start,
                                                                                    int end)
                                                                             throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the social activities where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByUserId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
userId - the user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUserId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(long userId,
                                                                                    int start,
                                                                                    int end,
                                                                                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                             throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the social activities where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByUserId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
userId - the user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUserId_First

public com.liferay.portlet.social.model.SocialActivity findByUserId_First(long userId,
                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                   throws com.liferay.portlet.social.NoSuchActivityException,
                                                                          com.liferay.portal.kernel.exception.SystemException
Returns the first social activity in the ordered set where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByUserId_First in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUserId_Last

public com.liferay.portlet.social.model.SocialActivity findByUserId_Last(long userId,
                                                                         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                  throws com.liferay.portlet.social.NoSuchActivityException,
                                                                         com.liferay.portal.kernel.exception.SystemException
Returns the last social activity in the ordered set where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByUserId_Last in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUserId_PrevAndNext

public com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(long activityId,
                                                                                  long userId,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                           throws com.liferay.portlet.social.NoSuchActivityException,
                                                                                  com.liferay.portal.kernel.exception.SystemException
Returns the social activities before and after the current social activity in the ordered set where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByUserId_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a social activity with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByUserId_PrevAndNext

protected com.liferay.portlet.social.model.SocialActivity getByUserId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                  com.liferay.portlet.social.model.SocialActivity socialActivity,
                                                                                  long userId,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                  boolean previous)

findByMirrorActivityId

public com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(long mirrorActivityId)
                                                                       throws com.liferay.portlet.social.NoSuchActivityException,
                                                                              com.liferay.portal.kernel.exception.SystemException
Returns the social activity where mirrorActivityId = ? or throws a NoSuchActivityException if it could not be found.

Specified by:
findByMirrorActivityId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
Returns:
the matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByMirrorActivityId

public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(long mirrorActivityId)
                                                                        throws com.liferay.portal.kernel.exception.SystemException
Returns the social activity where mirrorActivityId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByMirrorActivityId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
Returns:
the matching social activity, or null if a matching social activity could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByMirrorActivityId

public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(long mirrorActivityId,
                                                                               boolean retrieveFromCache)
                                                                        throws com.liferay.portal.kernel.exception.SystemException
Returns the social activity where mirrorActivityId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByMirrorActivityId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching social activity, or null if a matching social activity could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByClassNameId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(long classNameId)
                                                                                  throws com.liferay.portal.kernel.exception.SystemException
Returns all the social activities where classNameId = ?.

Specified by:
findByClassNameId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
classNameId - the class name ID
Returns:
the matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByClassNameId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(long classNameId,
                                                                                         int start,
                                                                                         int end)
                                                                                  throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the social activities where classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByClassNameId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
classNameId - the class name ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByClassNameId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(long classNameId,
                                                                                         int start,
                                                                                         int end,
                                                                                         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                  throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the social activities where classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByClassNameId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
classNameId - the class name ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByClassNameId_First

public com.liferay.portlet.social.model.SocialActivity findByClassNameId_First(long classNameId,
                                                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                        throws com.liferay.portlet.social.NoSuchActivityException,
                                                                               com.liferay.portal.kernel.exception.SystemException
Returns the first social activity in the ordered set where classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByClassNameId_First in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByClassNameId_Last

public com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last(long classNameId,
                                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                       throws com.liferay.portlet.social.NoSuchActivityException,
                                                                              com.liferay.portal.kernel.exception.SystemException
Returns the last social activity in the ordered set where classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByClassNameId_Last in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByClassNameId_PrevAndNext

public com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext(long activityId,
                                                                                       long classNameId,
                                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                throws com.liferay.portlet.social.NoSuchActivityException,
                                                                                       com.liferay.portal.kernel.exception.SystemException
Returns the social activities before and after the current social activity in the ordered set where classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByClassNameId_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a social activity with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByClassNameId_PrevAndNext

protected com.liferay.portlet.social.model.SocialActivity getByClassNameId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                       com.liferay.portlet.social.model.SocialActivity socialActivity,
                                                                                       long classNameId,
                                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                       boolean previous)

findByReceiverUserId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(long receiverUserId)
                                                                                     throws com.liferay.portal.kernel.exception.SystemException
Returns all the social activities where receiverUserId = ?.

Specified by:
findByReceiverUserId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
Returns:
the matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByReceiverUserId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(long receiverUserId,
                                                                                            int start,
                                                                                            int end)
                                                                                     throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the social activities where receiverUserId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByReceiverUserId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByReceiverUserId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(long receiverUserId,
                                                                                            int start,
                                                                                            int end,
                                                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                     throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the social activities where receiverUserId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByReceiverUserId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByReceiverUserId_First

public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First(long receiverUserId,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                           throws com.liferay.portlet.social.NoSuchActivityException,
                                                                                  com.liferay.portal.kernel.exception.SystemException
Returns the first social activity in the ordered set where receiverUserId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByReceiverUserId_First in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByReceiverUserId_Last

public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last(long receiverUserId,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                          throws com.liferay.portlet.social.NoSuchActivityException,
                                                                                 com.liferay.portal.kernel.exception.SystemException
Returns the last social activity in the ordered set where receiverUserId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByReceiverUserId_Last in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByReceiverUserId_PrevAndNext

public com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext(long activityId,
                                                                                          long receiverUserId,
                                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                   throws com.liferay.portlet.social.NoSuchActivityException,
                                                                                          com.liferay.portal.kernel.exception.SystemException
Returns the social activities before and after the current social activity in the ordered set where receiverUserId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByReceiverUserId_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a social activity with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByReceiverUserId_PrevAndNext

protected com.liferay.portlet.social.model.SocialActivity getByReceiverUserId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                          com.liferay.portlet.social.model.SocialActivity socialActivity,
                                                                                          long receiverUserId,
                                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                          boolean previous)

findByC_C

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(long classNameId,
                                                                                 long classPK)
                                                                          throws com.liferay.portal.kernel.exception.SystemException
Returns all the social activities where classNameId = ? and classPK = ?.

Specified by:
findByC_C in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_C

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(long classNameId,
                                                                                 long classPK,
                                                                                 int start,
                                                                                 int end)
                                                                          throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the social activities where classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_C in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_C

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(long classNameId,
                                                                                 long classPK,
                                                                                 int start,
                                                                                 int end,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                          throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the social activities where classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_C in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_C_First

public com.liferay.portlet.social.model.SocialActivity findByC_C_First(long classNameId,
                                                                       long classPK,
                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                throws com.liferay.portlet.social.NoSuchActivityException,
                                                                       com.liferay.portal.kernel.exception.SystemException
Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_C_First in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_C_Last

public com.liferay.portlet.social.model.SocialActivity findByC_C_Last(long classNameId,
                                                                      long classPK,
                                                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                               throws com.liferay.portlet.social.NoSuchActivityException,
                                                                      com.liferay.portal.kernel.exception.SystemException
Returns the last social activity in the ordered set where classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_C_Last in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_C_PrevAndNext

public com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext(long activityId,
                                                                               long classNameId,
                                                                               long classPK,
                                                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                        throws com.liferay.portlet.social.NoSuchActivityException,
                                                                               com.liferay.portal.kernel.exception.SystemException
Returns the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_C_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a social activity with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByC_C_PrevAndNext

protected com.liferay.portlet.social.model.SocialActivity getByC_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                               com.liferay.portlet.social.model.SocialActivity socialActivity,
                                                                               long classNameId,
                                                                               long classPK,
                                                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                               boolean previous)

findByM_C_C

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(long mirrorActivityId,
                                                                                   long classNameId,
                                                                                   long classPK)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Specified by:
findByM_C_C in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
Returns:
the matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByM_C_C

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(long mirrorActivityId,
                                                                                   long classNameId,
                                                                                   long classPK,
                                                                                   int start,
                                                                                   int end)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByM_C_C in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByM_C_C

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(long mirrorActivityId,
                                                                                   long classNameId,
                                                                                   long classPK,
                                                                                   int start,
                                                                                   int end,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByM_C_C in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByM_C_C_First

public com.liferay.portlet.social.model.SocialActivity findByM_C_C_First(long mirrorActivityId,
                                                                         long classNameId,
                                                                         long classPK,
                                                                         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                  throws com.liferay.portlet.social.NoSuchActivityException,
                                                                         com.liferay.portal.kernel.exception.SystemException
Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByM_C_C_First in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByM_C_C_Last

public com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last(long mirrorActivityId,
                                                                        long classNameId,
                                                                        long classPK,
                                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                 throws com.liferay.portlet.social.NoSuchActivityException,
                                                                        com.liferay.portal.kernel.exception.SystemException
Returns the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByM_C_C_Last in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByM_C_C_PrevAndNext

public com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext(long activityId,
                                                                                 long mirrorActivityId,
                                                                                 long classNameId,
                                                                                 long classPK,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                          throws com.liferay.portlet.social.NoSuchActivityException,
                                                                                 com.liferay.portal.kernel.exception.SystemException
Returns the social activities before and after the current social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByM_C_C_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a social activity with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByM_C_C_PrevAndNext

protected com.liferay.portlet.social.model.SocialActivity getByM_C_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                 com.liferay.portlet.social.model.SocialActivity socialActivity,
                                                                                 long mirrorActivityId,
                                                                                 long classNameId,
                                                                                 long classPK,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                 boolean previous)

findByG_U_C_C_T_R

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R(long groupId,
                                                                                         long userId,
                                                                                         long classNameId,
                                                                                         long classPK,
                                                                                         int type,
                                                                                         long receiverUserId)
                                                                                  throws com.liferay.portal.kernel.exception.SystemException
Returns all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Specified by:
findByG_U_C_C_T_R in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U_C_C_T_R

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R(long groupId,
                                                                                         long userId,
                                                                                         long classNameId,
                                                                                         long classPK,
                                                                                         int type,
                                                                                         long receiverUserId,
                                                                                         int start,
                                                                                         int end)
                                                                                  throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByG_U_C_C_T_R in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U_C_C_T_R

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R(long groupId,
                                                                                         long userId,
                                                                                         long classNameId,
                                                                                         long classPK,
                                                                                         int type,
                                                                                         long receiverUserId,
                                                                                         int start,
                                                                                         int end,
                                                                                         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                  throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByG_U_C_C_T_R in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U_C_C_T_R_First

public com.liferay.portlet.social.model.SocialActivity findByG_U_C_C_T_R_First(long groupId,
                                                                               long userId,
                                                                               long classNameId,
                                                                               long classPK,
                                                                               int type,
                                                                               long receiverUserId,
                                                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                        throws com.liferay.portlet.social.NoSuchActivityException,
                                                                               com.liferay.portal.kernel.exception.SystemException
Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByG_U_C_C_T_R_First in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U_C_C_T_R_Last

public com.liferay.portlet.social.model.SocialActivity findByG_U_C_C_T_R_Last(long groupId,
                                                                              long userId,
                                                                              long classNameId,
                                                                              long classPK,
                                                                              int type,
                                                                              long receiverUserId,
                                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                       throws com.liferay.portlet.social.NoSuchActivityException,
                                                                              com.liferay.portal.kernel.exception.SystemException
Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByG_U_C_C_T_R_Last in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U_C_C_T_R_PrevAndNext

public com.liferay.portlet.social.model.SocialActivity[] findByG_U_C_C_T_R_PrevAndNext(long activityId,
                                                                                       long groupId,
                                                                                       long userId,
                                                                                       long classNameId,
                                                                                       long classPK,
                                                                                       int type,
                                                                                       long receiverUserId,
                                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                throws com.liferay.portlet.social.NoSuchActivityException,
                                                                                       com.liferay.portal.kernel.exception.SystemException
Returns the social activities before and after the current social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByG_U_C_C_T_R_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a social activity with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByG_U_C_C_T_R_PrevAndNext

protected com.liferay.portlet.social.model.SocialActivity getByG_U_C_C_T_R_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                       com.liferay.portlet.social.model.SocialActivity socialActivity,
                                                                                       long groupId,
                                                                                       long userId,
                                                                                       long classNameId,
                                                                                       long classPK,
                                                                                       int type,
                                                                                       long receiverUserId,
                                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                       boolean previous)

findByG_U_CD_C_C_T_R

public com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(long groupId,
                                                                            long userId,
                                                                            long createDate,
                                                                            long classNameId,
                                                                            long classPK,
                                                                            int type,
                                                                            long receiverUserId)
                                                                     throws com.liferay.portlet.social.NoSuchActivityException,
                                                                            com.liferay.portal.kernel.exception.SystemException
Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or throws a NoSuchActivityException if it could not be found.

Specified by:
findByG_U_CD_C_C_T_R in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
createDate - the create date
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the matching social activity
Throws:
com.liferay.portlet.social.NoSuchActivityException - if a matching social activity could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByG_U_CD_C_C_T_R

public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(long groupId,
                                                                             long userId,
                                                                             long createDate,
                                                                             long classNameId,
                                                                             long classPK,
                                                                             int type,
                                                                             long receiverUserId)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByG_U_CD_C_C_T_R in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
createDate - the create date
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the matching social activity, or null if a matching social activity could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByG_U_CD_C_C_T_R

public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(long groupId,
                                                                             long userId,
                                                                             long createDate,
                                                                             long classNameId,
                                                                             long classPK,
                                                                             int type,
                                                                             long receiverUserId,
                                                                             boolean retrieveFromCache)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByG_U_CD_C_C_T_R in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
createDate - the create date
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching social activity, or null if a matching social activity could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
                                                                        throws com.liferay.portal.kernel.exception.SystemException
Returns all the social activities.

Specified by:
findAll in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Returns:
the social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(int start,
                                                                               int end)
                                                                        throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the social activities.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findAll in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(int start,
                                                                               int end,
                                                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                        throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the social activities.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findAll in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByGroupId

public void removeByGroupId(long groupId)
                     throws com.liferay.portal.kernel.exception.SystemException
Removes all the social activities where groupId = ? from the database.

Specified by:
removeByGroupId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByCompanyId

public void removeByCompanyId(long companyId)
                       throws com.liferay.portal.kernel.exception.SystemException
Removes all the social activities where companyId = ? from the database.

Specified by:
removeByCompanyId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
companyId - the company ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByUserId

public void removeByUserId(long userId)
                    throws com.liferay.portal.kernel.exception.SystemException
Removes all the social activities where userId = ? from the database.

Specified by:
removeByUserId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
userId - the user ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByMirrorActivityId

public void removeByMirrorActivityId(long mirrorActivityId)
                              throws com.liferay.portlet.social.NoSuchActivityException,
                                     com.liferay.portal.kernel.exception.SystemException
Removes the social activity where mirrorActivityId = ? from the database.

Specified by:
removeByMirrorActivityId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.social.NoSuchActivityException

removeByClassNameId

public void removeByClassNameId(long classNameId)
                         throws com.liferay.portal.kernel.exception.SystemException
Removes all the social activities where classNameId = ? from the database.

Specified by:
removeByClassNameId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
classNameId - the class name ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByReceiverUserId

public void removeByReceiverUserId(long receiverUserId)
                            throws com.liferay.portal.kernel.exception.SystemException
Removes all the social activities where receiverUserId = ? from the database.

Specified by:
removeByReceiverUserId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByC_C

public void removeByC_C(long classNameId,
                        long classPK)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes all the social activities where classNameId = ? and classPK = ? from the database.

Specified by:
removeByC_C in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByM_C_C

public void removeByM_C_C(long mirrorActivityId,
                          long classNameId,
                          long classPK)
                   throws com.liferay.portal.kernel.exception.SystemException
Removes all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ? from the database.

Specified by:
removeByM_C_C in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByG_U_C_C_T_R

public void removeByG_U_C_C_T_R(long groupId,
                                long userId,
                                long classNameId,
                                long classPK,
                                int type,
                                long receiverUserId)
                         throws com.liferay.portal.kernel.exception.SystemException
Removes all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database.

Specified by:
removeByG_U_C_C_T_R in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByG_U_CD_C_C_T_R

public void removeByG_U_CD_C_C_T_R(long groupId,
                                   long userId,
                                   long createDate,
                                   long classNameId,
                                   long classPK,
                                   int type,
                                   long receiverUserId)
                            throws com.liferay.portlet.social.NoSuchActivityException,
                                   com.liferay.portal.kernel.exception.SystemException
Removes the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database.

Specified by:
removeByG_U_CD_C_C_T_R in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
createDate - the create date
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.social.NoSuchActivityException

removeAll

public void removeAll()
               throws com.liferay.portal.kernel.exception.SystemException
Removes all the social activities from the database.

Specified by:
removeAll in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByGroupId

public int countByGroupId(long groupId)
                   throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social activities where groupId = ?.

Specified by:
countByGroupId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByCompanyId

public int countByCompanyId(long companyId)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social activities where companyId = ?.

Specified by:
countByCompanyId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByUserId

public int countByUserId(long userId)
                  throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social activities where userId = ?.

Specified by:
countByUserId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
userId - the user ID
Returns:
the number of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByMirrorActivityId

public int countByMirrorActivityId(long mirrorActivityId)
                            throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social activities where mirrorActivityId = ?.

Specified by:
countByMirrorActivityId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
Returns:
the number of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByClassNameId

public int countByClassNameId(long classNameId)
                       throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social activities where classNameId = ?.

Specified by:
countByClassNameId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
classNameId - the class name ID
Returns:
the number of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByReceiverUserId

public int countByReceiverUserId(long receiverUserId)
                          throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social activities where receiverUserId = ?.

Specified by:
countByReceiverUserId in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
Returns:
the number of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_C

public int countByC_C(long classNameId,
                      long classPK)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social activities where classNameId = ? and classPK = ?.

Specified by:
countByC_C in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByM_C_C

public int countByM_C_C(long mirrorActivityId,
                        long classNameId,
                        long classPK)
                 throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Specified by:
countByM_C_C in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByG_U_C_C_T_R

public int countByG_U_C_C_T_R(long groupId,
                              long userId,
                              long classNameId,
                              long classPK,
                              int type,
                              long receiverUserId)
                       throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Specified by:
countByG_U_C_C_T_R in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the number of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByG_U_CD_C_C_T_R

public int countByG_U_CD_C_C_T_R(long groupId,
                                 long userId,
                                 long createDate,
                                 long classNameId,
                                 long classPK,
                                 int type,
                                 long receiverUserId)
                          throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social activities where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Specified by:
countByG_U_CD_C_C_T_R in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
createDate - the create date
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the number of matching social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countAll

public int countAll()
             throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social activities.

Specified by:
countAll in interface com.liferay.portlet.social.service.persistence.SocialActivityPersistence
Returns:
the number of social activities
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the social activity persistence.


destroy

public void destroy()