Liferay 6.0.5

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

java.lang.Object
  extended by com.liferay.portlet.social.service.persistence.SocialActivityUtil

public class SocialActivityUtil
extends Object

The persistence utility for the social activity service. This utility wraps SocialActivityPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

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

Constructor Summary
SocialActivityUtil()
           
 
Method Summary
static void cacheResult(List<SocialActivity> socialActivities)
          Caches the social activities in the entity cache if it is enabled.
static void cacheResult(SocialActivity socialActivity)
          Caches the social activity in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(SocialActivity socialActivity)
           
static int countAll()
          Counts all the social activities.
static int countByC_C(long classNameId, long classPK)
          Counts all the social activities where classNameId = ? and classPK = ?.
static int countByClassNameId(long classNameId)
          Counts all the social activities where classNameId = ?.
static int countByCompanyId(long companyId)
          Counts all the social activities where companyId = ?.
static 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 = ?.
static int countByGroupId(long groupId)
          Counts all the social activities where groupId = ?.
static int countByM_C_C(long mirrorActivityId, long classNameId, long classPK)
          Counts all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
static int countByMirrorActivityId(long mirrorActivityId)
          Counts all the social activities where mirrorActivityId = ?.
static int countByReceiverUserId(long receiverUserId)
          Counts all the social activities where receiverUserId = ?.
static int countByUserId(long userId)
          Counts all the social activities where userId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static SocialActivity create(long activityId)
          Creates a new social activity with the primary key.
static 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.
static 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.
static SocialActivity fetchByMirrorActivityId(long mirrorActivityId)
          Finds the social activity where mirrorActivityId = ? or returns null if it could not be found.
static 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.
static SocialActivity fetchByPrimaryKey(long activityId)
          Finds the social activity with the primary key or returns null if it could not be found.
static List<SocialActivity> findAll()
          Finds all the social activities.
static List<SocialActivity> findAll(int start, int end)
          Finds a range of all the social activities.
static List<SocialActivity> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities.
static SocialActivity findByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where classNameId = ? and classPK = ?.
static SocialActivity findByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where classNameId = ? and classPK = ?.
static 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 = ?.
static List<SocialActivity> findByC_C(long classNameId, long classPK)
          Finds all the social activities where classNameId = ? and classPK = ?.
static List<SocialActivity> findByC_C(long classNameId, long classPK, int start, int end)
          Finds a range of all the social activities where classNameId = ? and classPK = ?.
static 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 = ?.
static SocialActivity findByClassNameId_First(long classNameId, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where classNameId = ?.
static SocialActivity findByClassNameId_Last(long classNameId, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where classNameId = ?.
static 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 = ?.
static List<SocialActivity> findByClassNameId(long classNameId)
          Finds all the social activities where classNameId = ?.
static List<SocialActivity> findByClassNameId(long classNameId, int start, int end)
          Finds a range of all the social activities where classNameId = ?.
static List<SocialActivity> findByClassNameId(long classNameId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where classNameId = ?.
static SocialActivity findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where companyId = ?.
static SocialActivity findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where companyId = ?.
static 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 = ?.
static List<SocialActivity> findByCompanyId(long companyId)
          Finds all the social activities where companyId = ?.
static List<SocialActivity> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the social activities where companyId = ?.
static List<SocialActivity> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where companyId = ?.
static 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.
static SocialActivity findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where groupId = ?.
static SocialActivity findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where groupId = ?.
static 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 = ?.
static List<SocialActivity> findByGroupId(long groupId)
          Finds all the social activities where groupId = ?.
static List<SocialActivity> findByGroupId(long groupId, int start, int end)
          Finds a range of all the social activities where groupId = ?.
static List<SocialActivity> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where groupId = ?.
static 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 = ?.
static 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 = ?.
static 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 = ?.
static List<SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK)
          Finds all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
static 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 = ?.
static 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 = ?.
static SocialActivity findByMirrorActivityId(long mirrorActivityId)
          Finds the social activity where mirrorActivityId = ? or throws a NoSuchActivityException if it could not be found.
static SocialActivity findByPrimaryKey(long activityId)
          Finds the social activity with the primary key or throws a NoSuchActivityException if it could not be found.
static SocialActivity findByReceiverUserId_First(long receiverUserId, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where receiverUserId = ?.
static SocialActivity findByReceiverUserId_Last(long receiverUserId, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where receiverUserId = ?.
static 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 = ?.
static List<SocialActivity> findByReceiverUserId(long receiverUserId)
          Finds all the social activities where receiverUserId = ?.
static List<SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end)
          Finds a range of all the social activities where receiverUserId = ?.
static List<SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where receiverUserId = ?.
static SocialActivity findByUserId_First(long userId, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where userId = ?.
static SocialActivity findByUserId_Last(long userId, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where userId = ?.
static 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 = ?.
static List<SocialActivity> findByUserId(long userId)
          Finds all the social activities where userId = ?.
static List<SocialActivity> findByUserId(long userId, int start, int end)
          Finds a range of all the social activities where userId = ?.
static List<SocialActivity> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where userId = ?.
static List<SocialActivity> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<SocialActivity> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<SocialActivity> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static SocialActivityPersistence getPersistence()
           
static SocialActivity remove(long activityId)
          Removes the social activity with the primary key from the database.
static SocialActivity remove(SocialActivity socialActivity)
           
static void removeAll()
          Removes all the social activities from the database.
static void removeByC_C(long classNameId, long classPK)
          Removes all the social activities where classNameId = ? and classPK = ? from the database.
static void removeByClassNameId(long classNameId)
          Removes all the social activities where classNameId = ? from the database.
static void removeByCompanyId(long companyId)
          Removes all the social activities where companyId = ? from the database.
static 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.
static void removeByGroupId(long groupId)
          Removes all the social activities where groupId = ? from the database.
static void removeByM_C_C(long mirrorActivityId, long classNameId, long classPK)
          Removes all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ? from the database.
static void removeByMirrorActivityId(long mirrorActivityId)
          Removes the social activity where mirrorActivityId = ? from the database.
static void removeByReceiverUserId(long receiverUserId)
          Removes all the social activities where receiverUserId = ? from the database.
static void removeByUserId(long userId)
          Removes all the social activities where userId = ? from the database.
 void setPersistence(SocialActivityPersistence persistence)
           
static SocialActivity update(SocialActivity socialActivity, boolean merge)
           
static SocialActivity update(SocialActivity socialActivity, boolean merge, ServiceContext serviceContext)
           
static SocialActivity updateImpl(SocialActivity socialActivity, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocialActivityUtil

public SocialActivityUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(SocialActivity socialActivity)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<SocialActivity> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                 throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<SocialActivity> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                        int start,
                                                        int end)
                                                 throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<SocialActivity> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                        int start,
                                                        int end,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static SocialActivity remove(SocialActivity socialActivity)
                             throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static SocialActivity update(SocialActivity socialActivity,
                                    boolean merge)
                             throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static SocialActivity update(SocialActivity socialActivity,
                                    boolean merge,
                                    ServiceContext serviceContext)
                             throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

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

Parameters:
socialActivity - the social activity to cache

cacheResult

public static 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

public static 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

public static 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

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

findByPrimaryKey

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

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

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

findAll

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

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

Throws:
SystemException - if a system exception occurred

countByGroupId

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

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

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

getPersistence

public static SocialActivityPersistence getPersistence()

setPersistence

public void setPersistence(SocialActivityPersistence persistence)

Liferay 6.0.5