Liferay 6.0-ee

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

All Superinterfaces:
BasePersistence<SocialActivity>
All Known Implementing Classes:
SocialActivityPersistenceImpl

public interface SocialActivityPersistence
extends BasePersistence<SocialActivity>

The persistence interface for the social activity service.

Never modify or reference this interface directly. Always use SocialActivityUtil to access the social activity persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface.

Caching information and settings can be found in portal.properties

See Also:
SocialActivityPersistenceImpl, SocialActivityUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 void cacheResult(List<SocialActivity> socialActivities)
          Caches the social activities in the entity cache if it is enabled.
 void cacheResult(SocialActivity socialActivity)
          Caches the social activity in the entity cache if it is enabled.
 int countAll()
          Counts all the social activities.
 int countByC_C(long classNameId, long classPK)
          Counts all the social activities where classNameId = ? and classPK = ?.
 int countByClassNameId(long classNameId)
          Counts all the social activities where classNameId = ?.
 int countByCompanyId(long companyId)
          Counts all the social activities where companyId = ?.
 int countByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Counts all the social activities where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 int countByGroupId(long groupId)
          Counts all the social activities where groupId = ?.
 int countByM_C_C(long mirrorActivityId, long classNameId, long classPK)
          Counts all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 int countByMirrorActivityId(long mirrorActivityId)
          Counts all the social activities where mirrorActivityId = ?.
 int countByReceiverUserId(long receiverUserId)
          Counts all the social activities where receiverUserId = ?.
 int countByUserId(long userId)
          Counts all the social activities where userId = ?.
 SocialActivity create(long activityId)
          Creates a new social activity with the primary key.
 SocialActivity fetchByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Finds 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.
 SocialActivity fetchByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId, boolean retrieveFromCache)
          Finds 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.
 SocialActivity fetchByMirrorActivityId(long mirrorActivityId)
          Finds the social activity where mirrorActivityId = ? or returns null if it could not be found.
 SocialActivity fetchByMirrorActivityId(long mirrorActivityId, boolean retrieveFromCache)
          Finds the social activity where mirrorActivityId = ? or returns null if it could not be found, optionally using the finder cache.
 SocialActivity fetchByPrimaryKey(long activityId)
          Finds the social activity with the primary key or returns null if it could not be found.
 List<SocialActivity> findAll()
          Finds all the social activities.
 List<SocialActivity> findAll(int start, int end)
          Finds a range of all the social activities.
 List<SocialActivity> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities.
 SocialActivity findByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where classNameId = ? and classPK = ?.
 SocialActivity findByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where classNameId = ? and classPK = ?.
 SocialActivity[] findByC_C_PrevAndNext(long activityId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ?.
 List<SocialActivity> findByC_C(long classNameId, long classPK)
          Finds all the social activities where classNameId = ? and classPK = ?.
 List<SocialActivity> findByC_C(long classNameId, long classPK, int start, int end)
          Finds a range of all the social activities where classNameId = ? and classPK = ?.
 List<SocialActivity> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where classNameId = ? and classPK = ?.
 SocialActivity findByClassNameId_First(long classNameId, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where classNameId = ?.
 SocialActivity findByClassNameId_Last(long classNameId, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where classNameId = ?.
 SocialActivity[] findByClassNameId_PrevAndNext(long activityId, long classNameId, OrderByComparator orderByComparator)
          Finds the social activities before and after the current social activity in the ordered set where classNameId = ?.
 List<SocialActivity> findByClassNameId(long classNameId)
          Finds all the social activities where classNameId = ?.
 List<SocialActivity> findByClassNameId(long classNameId, int start, int end)
          Finds a range of all the social activities where classNameId = ?.
 List<SocialActivity> findByClassNameId(long classNameId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where classNameId = ?.
 SocialActivity findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where companyId = ?.
 SocialActivity findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where companyId = ?.
 SocialActivity[] findByCompanyId_PrevAndNext(long activityId, long companyId, OrderByComparator orderByComparator)
          Finds the social activities before and after the current social activity in the ordered set where companyId = ?.
 List<SocialActivity> findByCompanyId(long companyId)
          Finds all the social activities where companyId = ?.
 List<SocialActivity> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the social activities where companyId = ?.
 List<SocialActivity> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where companyId = ?.
 SocialActivity findByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Finds 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.
 SocialActivity findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where groupId = ?.
 SocialActivity findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where groupId = ?.
 SocialActivity[] findByGroupId_PrevAndNext(long activityId, long groupId, OrderByComparator orderByComparator)
          Finds the social activities before and after the current social activity in the ordered set where groupId = ?.
 List<SocialActivity> findByGroupId(long groupId)
          Finds all the social activities where groupId = ?.
 List<SocialActivity> findByGroupId(long groupId, int start, int end)
          Finds a range of all the social activities where groupId = ?.
 List<SocialActivity> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where groupId = ?.
 SocialActivity findByM_C_C_First(long mirrorActivityId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 SocialActivity findByM_C_C_Last(long mirrorActivityId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 SocialActivity[] findByM_C_C_PrevAndNext(long activityId, long mirrorActivityId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the social activities before and after the current social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 List<SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK)
          Finds all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 List<SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK, int start, int end)
          Finds a range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 List<SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 SocialActivity findByMirrorActivityId(long mirrorActivityId)
          Finds the social activity where mirrorActivityId = ? or throws a NoSuchActivityException if it could not be found.
 SocialActivity findByPrimaryKey(long activityId)
          Finds the social activity with the primary key or throws a NoSuchActivityException if it could not be found.
 SocialActivity findByReceiverUserId_First(long receiverUserId, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where receiverUserId = ?.
 SocialActivity findByReceiverUserId_Last(long receiverUserId, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where receiverUserId = ?.
 SocialActivity[] findByReceiverUserId_PrevAndNext(long activityId, long receiverUserId, OrderByComparator orderByComparator)
          Finds the social activities before and after the current social activity in the ordered set where receiverUserId = ?.
 List<SocialActivity> findByReceiverUserId(long receiverUserId)
          Finds all the social activities where receiverUserId = ?.
 List<SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end)
          Finds a range of all the social activities where receiverUserId = ?.
 List<SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where receiverUserId = ?.
 SocialActivity findByUserId_First(long userId, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where userId = ?.
 SocialActivity findByUserId_Last(long userId, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where userId = ?.
 SocialActivity[] findByUserId_PrevAndNext(long activityId, long userId, OrderByComparator orderByComparator)
          Finds the social activities before and after the current social activity in the ordered set where userId = ?.
 List<SocialActivity> findByUserId(long userId)
          Finds all the social activities where userId = ?.
 List<SocialActivity> findByUserId(long userId, int start, int end)
          Finds a range of all the social activities where userId = ?.
 List<SocialActivity> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where userId = ?.
 SocialActivity remove(long activityId)
          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_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.
 SocialActivity updateImpl(SocialActivity socialActivity, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

void cacheResult(SocialActivity socialActivity)
Caches the social activity in the entity cache if it is enabled.

Parameters:
socialActivity - the social activity to cache

cacheResult

void cacheResult(List<SocialActivity> socialActivities)
Caches the social activities in the entity cache if it is enabled.

Parameters:
socialActivities - the social activities to cache

create

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

Parameters:
activityId - the primary key for the new social activity
Returns:
the new social activity

remove

SocialActivity remove(long activityId)
                      throws SystemException,
                             NoSuchActivityException
Removes the social activity with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
activityId - the primary key of the social activity to remove
Returns:
the social activity that was removed
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

SocialActivity updateImpl(SocialActivity socialActivity,
                          boolean merge)
                          throws SystemException
Throws:
SystemException

findByPrimaryKey

SocialActivity findByPrimaryKey(long activityId)
                                throws SystemException,
                                       NoSuchActivityException
Finds the social activity with the primary key or throws a NoSuchActivityException if it could not be found.

Parameters:
activityId - the primary key of the social activity to find
Returns:
the social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

SocialActivity fetchByPrimaryKey(long activityId)
                                 throws SystemException
Finds the social activity with the primary key or returns null if it could not be found.

Parameters:
activityId - the primary key of the social activity to find
Returns:
the social activity, or null if a social activity with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

List<SocialActivity> findByGroupId(long groupId)
                                   throws SystemException
Finds all the social activities where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching social activities
Throws:
SystemException - if a system exception occurred

findByGroupId

List<SocialActivity> findByGroupId(long groupId,
                                   int start,
                                   int end)
                                   throws SystemException
Finds 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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of matching social activities
Throws:
SystemException - if a system exception occurred

findByGroupId

List<SocialActivity> findByGroupId(long groupId,
                                   int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
Finds 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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social activities
Throws:
SystemException - if a system exception occurred

findByGroupId_First

SocialActivity findByGroupId_First(long groupId,
                                   OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchActivityException
Finds 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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByGroupId_Last

SocialActivity findByGroupId_Last(long groupId,
                                  OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchActivityException
Finds 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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

SocialActivity[] findByGroupId_PrevAndNext(long activityId,
                                           long groupId,
                                           OrderByComparator orderByComparator)
                                           throws SystemException,
                                                  NoSuchActivityException
Finds 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.

Parameters:
activityId - the primary key of the current social activity
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

findByCompanyId

List<SocialActivity> findByCompanyId(long companyId)
                                     throws SystemException
Finds all the social activities where companyId = ?.

Parameters:
companyId - the company id to search with
Returns:
the matching social activities
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<SocialActivity> findByCompanyId(long companyId,
                                     int start,
                                     int end)
                                     throws SystemException
Finds 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.

Parameters:
companyId - the company id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of matching social activities
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<SocialActivity> findByCompanyId(long companyId,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                                     throws SystemException
Finds 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.

Parameters:
companyId - the company id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social activities
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

SocialActivity findByCompanyId_First(long companyId,
                                     OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchActivityException
Finds 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.

Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByCompanyId_Last

SocialActivity findByCompanyId_Last(long companyId,
                                    OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchActivityException
Finds 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.

Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

SocialActivity[] findByCompanyId_PrevAndNext(long activityId,
                                             long companyId,
                                             OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchActivityException
Finds 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.

Parameters:
activityId - the primary key of the current social activity
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

findByUserId

List<SocialActivity> findByUserId(long userId)
                                  throws SystemException
Finds all the social activities where userId = ?.

Parameters:
userId - the user id to search with
Returns:
the matching social activities
Throws:
SystemException - if a system exception occurred

findByUserId

List<SocialActivity> findByUserId(long userId,
                                  int start,
                                  int end)
                                  throws SystemException
Finds 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.

Parameters:
userId - the user id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of matching social activities
Throws:
SystemException - if a system exception occurred

findByUserId

List<SocialActivity> findByUserId(long userId,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Finds 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.

Parameters:
userId - the user id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social activities
Throws:
SystemException - if a system exception occurred

findByUserId_First

SocialActivity findByUserId_First(long userId,
                                  OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchActivityException
Finds 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.

Parameters:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByUserId_Last

SocialActivity findByUserId_Last(long userId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchActivityException
Finds 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.

Parameters:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByUserId_PrevAndNext

SocialActivity[] findByUserId_PrevAndNext(long activityId,
                                          long userId,
                                          OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchActivityException
Finds 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.

Parameters:
activityId - the primary key of the current social activity
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

findByMirrorActivityId

SocialActivity findByMirrorActivityId(long mirrorActivityId)
                                      throws SystemException,
                                             NoSuchActivityException
Finds the social activity where mirrorActivityId = ? or throws a NoSuchActivityException if it could not be found.

Parameters:
mirrorActivityId - the mirror activity id to search with
Returns:
the matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByMirrorActivityId

SocialActivity fetchByMirrorActivityId(long mirrorActivityId)
                                       throws SystemException
Finds the social activity where mirrorActivityId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
mirrorActivityId - the mirror activity id to search with
Returns:
the matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

fetchByMirrorActivityId

SocialActivity fetchByMirrorActivityId(long mirrorActivityId,
                                       boolean retrieveFromCache)
                                       throws SystemException
Finds the social activity where mirrorActivityId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
mirrorActivityId - the mirror activity id to search with
Returns:
the matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findByClassNameId

List<SocialActivity> findByClassNameId(long classNameId)
                                       throws SystemException
Finds all the social activities where classNameId = ?.

Parameters:
classNameId - the class name id to search with
Returns:
the matching social activities
Throws:
SystemException - if a system exception occurred

findByClassNameId

List<SocialActivity> findByClassNameId(long classNameId,
                                       int start,
                                       int end)
                                       throws SystemException
Finds 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.

Parameters:
classNameId - the class name id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of matching social activities
Throws:
SystemException - if a system exception occurred

findByClassNameId

List<SocialActivity> findByClassNameId(long classNameId,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                       throws SystemException
Finds 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.

Parameters:
classNameId - the class name id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social activities
Throws:
SystemException - if a system exception occurred

findByClassNameId_First

SocialActivity findByClassNameId_First(long classNameId,
                                       OrderByComparator orderByComparator)
                                       throws SystemException,
                                              NoSuchActivityException
Finds 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.

Parameters:
classNameId - the class name id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByClassNameId_Last

SocialActivity findByClassNameId_Last(long classNameId,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchActivityException
Finds 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.

Parameters:
classNameId - the class name id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByClassNameId_PrevAndNext

SocialActivity[] findByClassNameId_PrevAndNext(long activityId,
                                               long classNameId,
                                               OrderByComparator orderByComparator)
                                               throws SystemException,
                                                      NoSuchActivityException
Finds 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.

Parameters:
activityId - the primary key of the current social activity
classNameId - the class name id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

findByReceiverUserId

List<SocialActivity> findByReceiverUserId(long receiverUserId)
                                          throws SystemException
Finds all the social activities where receiverUserId = ?.

Parameters:
receiverUserId - the receiver user id to search with
Returns:
the matching social activities
Throws:
SystemException - if a system exception occurred

findByReceiverUserId

List<SocialActivity> findByReceiverUserId(long receiverUserId,
                                          int start,
                                          int end)
                                          throws SystemException
Finds 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.

Parameters:
receiverUserId - the receiver user id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of matching social activities
Throws:
SystemException - if a system exception occurred

findByReceiverUserId

List<SocialActivity> findByReceiverUserId(long receiverUserId,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                          throws SystemException
Finds 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.

Parameters:
receiverUserId - the receiver user id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social activities
Throws:
SystemException - if a system exception occurred

findByReceiverUserId_First

SocialActivity findByReceiverUserId_First(long receiverUserId,
                                          OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchActivityException
Finds 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.

Parameters:
receiverUserId - the receiver user id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByReceiverUserId_Last

SocialActivity findByReceiverUserId_Last(long receiverUserId,
                                         OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchActivityException
Finds 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.

Parameters:
receiverUserId - the receiver user id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByReceiverUserId_PrevAndNext

SocialActivity[] findByReceiverUserId_PrevAndNext(long activityId,
                                                  long receiverUserId,
                                                  OrderByComparator orderByComparator)
                                                  throws SystemException,
                                                         NoSuchActivityException
Finds 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.

Parameters:
activityId - the primary key of the current social activity
receiverUserId - the receiver user id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

findByC_C

List<SocialActivity> findByC_C(long classNameId,
                               long classPK)
                               throws SystemException
Finds all the social activities where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the matching social activities
Throws:
SystemException - if a system exception occurred

findByC_C

List<SocialActivity> findByC_C(long classNameId,
                               long classPK,
                               int start,
                               int end)
                               throws SystemException
Finds 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.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of matching social activities
Throws:
SystemException - if a system exception occurred

findByC_C

List<SocialActivity> findByC_C(long classNameId,
                               long classPK,
                               int start,
                               int end,
                               OrderByComparator orderByComparator)
                               throws SystemException
Finds 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.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social activities
Throws:
SystemException - if a system exception occurred

findByC_C_First

SocialActivity findByC_C_First(long classNameId,
                               long classPK,
                               OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchActivityException
Finds 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.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByC_C_Last

SocialActivity findByC_C_Last(long classNameId,
                              long classPK,
                              OrderByComparator orderByComparator)
                              throws SystemException,
                                     NoSuchActivityException
Finds 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.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByC_C_PrevAndNext

SocialActivity[] findByC_C_PrevAndNext(long activityId,
                                       long classNameId,
                                       long classPK,
                                       OrderByComparator orderByComparator)
                                       throws SystemException,
                                              NoSuchActivityException
Finds 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.

Parameters:
activityId - the primary key of the current social activity
classNameId - the class name id to search with
classPK - the class p k to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

findByM_C_C

List<SocialActivity> findByM_C_C(long mirrorActivityId,
                                 long classNameId,
                                 long classPK)
                                 throws SystemException
Finds all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Parameters:
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the matching social activities
Throws:
SystemException - if a system exception occurred

findByM_C_C

List<SocialActivity> findByM_C_C(long mirrorActivityId,
                                 long classNameId,
                                 long classPK,
                                 int start,
                                 int end)
                                 throws SystemException
Finds 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.

Parameters:
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of matching social activities
Throws:
SystemException - if a system exception occurred

findByM_C_C

List<SocialActivity> findByM_C_C(long mirrorActivityId,
                                 long classNameId,
                                 long classPK,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Finds 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.

Parameters:
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social activities
Throws:
SystemException - if a system exception occurred

findByM_C_C_First

SocialActivity findByM_C_C_First(long mirrorActivityId,
                                 long classNameId,
                                 long classPK,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchActivityException
Finds 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.

Parameters:
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByM_C_C_Last

SocialActivity findByM_C_C_Last(long mirrorActivityId,
                                long classNameId,
                                long classPK,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchActivityException
Finds 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.

Parameters:
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByM_C_C_PrevAndNext

SocialActivity[] findByM_C_C_PrevAndNext(long activityId,
                                         long mirrorActivityId,
                                         long classNameId,
                                         long classPK,
                                         OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchActivityException
Finds 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.

Parameters:
activityId - the primary key of the current social activity
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

findByG_U_CD_C_C_T_R

SocialActivity findByG_U_CD_C_C_T_R(long groupId,
                                    long userId,
                                    long createDate,
                                    long classNameId,
                                    long classPK,
                                    int type,
                                    long receiverUserId)
                                    throws SystemException,
                                           NoSuchActivityException
Finds 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.

Parameters:
groupId - the group id to search with
userId - the user id to search with
createDate - the create date to search with
classNameId - the class name id to search with
classPK - the class p k to search with
type - the type to search with
receiverUserId - the receiver user id to search with
Returns:
the matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByG_U_CD_C_C_T_R

SocialActivity fetchByG_U_CD_C_C_T_R(long groupId,
                                     long userId,
                                     long createDate,
                                     long classNameId,
                                     long classPK,
                                     int type,
                                     long receiverUserId)
                                     throws SystemException
Finds 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.

Parameters:
groupId - the group id to search with
userId - the user id to search with
createDate - the create date to search with
classNameId - the class name id to search with
classPK - the class p k to search with
type - the type to search with
receiverUserId - the receiver user id to search with
Returns:
the matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_U_CD_C_C_T_R

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 SystemException
Finds 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.

Parameters:
groupId - the group id to search with
userId - the user id to search with
createDate - the create date to search with
classNameId - the class name id to search with
classPK - the class p k to search with
type - the type to search with
receiverUserId - the receiver user id to search with
Returns:
the matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<SocialActivity> findAll()
                             throws SystemException
Finds all the social activities.

Returns:
the social activities
Throws:
SystemException - if a system exception occurred

findAll

List<SocialActivity> findAll(int start,
                             int end)
                             throws SystemException
Finds 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.

Parameters:
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of social activities
Throws:
SystemException - if a system exception occurred

findAll

List<SocialActivity> findAll(int start,
                             int end,
                             OrderByComparator orderByComparator)
                             throws SystemException
Finds 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.

Parameters:
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of social activities
Throws:
SystemException - if a system exception occurred

removeByGroupId

void removeByGroupId(long groupId)
                     throws SystemException
Removes all the social activities where groupId = ? from the database.

Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByCompanyId

void removeByCompanyId(long companyId)
                       throws SystemException
Removes all the social activities where companyId = ? from the database.

Parameters:
companyId - the company id to search with
Throws:
SystemException - if a system exception occurred

removeByUserId

void removeByUserId(long userId)
                    throws SystemException
Removes all the social activities where userId = ? from the database.

Parameters:
userId - the user id to search with
Throws:
SystemException - if a system exception occurred

removeByMirrorActivityId

void removeByMirrorActivityId(long mirrorActivityId)
                              throws SystemException,
                                     NoSuchActivityException
Removes the social activity where mirrorActivityId = ? from the database.

Parameters:
mirrorActivityId - the mirror activity id to search with
Throws:
SystemException - if a system exception occurred
NoSuchActivityException

removeByClassNameId

void removeByClassNameId(long classNameId)
                         throws SystemException
Removes all the social activities where classNameId = ? from the database.

Parameters:
classNameId - the class name id to search with
Throws:
SystemException - if a system exception occurred

removeByReceiverUserId

void removeByReceiverUserId(long receiverUserId)
                            throws SystemException
Removes all the social activities where receiverUserId = ? from the database.

Parameters:
receiverUserId - the receiver user id to search with
Throws:
SystemException - if a system exception occurred

removeByC_C

void removeByC_C(long classNameId,
                 long classPK)
                 throws SystemException
Removes all the social activities where classNameId = ? and classPK = ? from the database.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Throws:
SystemException - if a system exception occurred

removeByM_C_C

void removeByM_C_C(long mirrorActivityId,
                   long classNameId,
                   long classPK)
                   throws SystemException
Removes all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ? from the database.

Parameters:
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
Throws:
SystemException - if a system exception occurred

removeByG_U_CD_C_C_T_R

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

Parameters:
groupId - the group id to search with
userId - the user id to search with
createDate - the create date to search with
classNameId - the class name id to search with
classPK - the class p k to search with
type - the type to search with
receiverUserId - the receiver user id to search with
Throws:
SystemException - if a system exception occurred
NoSuchActivityException

removeAll

void removeAll()
               throws SystemException
Removes all the social activities from the database.

Throws:
SystemException - if a system exception occurred

countByGroupId

int countByGroupId(long groupId)
                   throws SystemException
Counts all the social activities where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByCompanyId

int countByCompanyId(long companyId)
                     throws SystemException
Counts all the social activities where companyId = ?.

Parameters:
companyId - the company id to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByUserId

int countByUserId(long userId)
                  throws SystemException
Counts all the social activities where userId = ?.

Parameters:
userId - the user id to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByMirrorActivityId

int countByMirrorActivityId(long mirrorActivityId)
                            throws SystemException
Counts all the social activities where mirrorActivityId = ?.

Parameters:
mirrorActivityId - the mirror activity id to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByClassNameId

int countByClassNameId(long classNameId)
                       throws SystemException
Counts all the social activities where classNameId = ?.

Parameters:
classNameId - the class name id to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByReceiverUserId

int countByReceiverUserId(long receiverUserId)
                          throws SystemException
Counts all the social activities where receiverUserId = ?.

Parameters:
receiverUserId - the receiver user id to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByC_C

int countByC_C(long classNameId,
               long classPK)
               throws SystemException
Counts all the social activities where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByM_C_C

int countByM_C_C(long mirrorActivityId,
                 long classNameId,
                 long classPK)
                 throws SystemException
Counts all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Parameters:
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByG_U_CD_C_C_T_R

int countByG_U_CD_C_C_T_R(long groupId,
                          long userId,
                          long createDate,
                          long classNameId,
                          long classPK,
                          int type,
                          long receiverUserId)
                          throws SystemException
Counts all the social activities where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Parameters:
groupId - the group id to search with
userId - the user id to search with
createDate - the create date to search with
classNameId - the class name id to search with
classPK - the class p k to search with
type - the type to search with
receiverUserId - the receiver user id to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Counts all the social activities.

Returns:
the number of social activities
Throws:
SystemException - if a system exception occurred

Liferay 6.0-ee