Liferay 6.1.2-ce-ga3

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.

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 it 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()
          Returns the number of social activities.
static int countByC_C(long classNameId, long classPK)
          Returns the number of social activities where classNameId = ? and classPK = ?.
static int countByClassNameId(long classNameId)
          Returns the number of social activities where classNameId = ?.
static int countByCompanyId(long companyId)
          Returns the number of social activities where companyId = ?.
static int countByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId)
          Returns the number of social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
static int countByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Returns the number of social activities where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
static int countByGroupId(long groupId)
          Returns the number of social activities where groupId = ?.
static int countByM_C_C(long mirrorActivityId, long classNameId, long classPK)
          Returns the number of social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
static int countByMirrorActivityId(long mirrorActivityId)
          Returns the number of social activities where mirrorActivityId = ?.
static int countByReceiverUserId(long receiverUserId)
          Returns the number of social activities where receiverUserId = ?.
static int countByUserId(long userId)
          Returns the number of social activities where userId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static SocialActivity create(long activityId)
          Creates a new social activity with the primary key.
static SocialActivity fetchByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.
static SocialActivity fetchByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where classNameId = ? and classPK = ?.
static SocialActivity fetchByClassNameId_First(long classNameId, OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where classNameId = ?.
static SocialActivity fetchByClassNameId_Last(long classNameId, OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where classNameId = ?.
static SocialActivity fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where companyId = ?.
static SocialActivity fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where companyId = ?.
static SocialActivity fetchByG_U_C_C_T_R_First(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
static SocialActivity fetchByG_U_C_C_T_R_Last(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
static SocialActivity fetchByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found.
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)
          Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found, optionally using the finder cache.
static SocialActivity fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where groupId = ?.
static SocialActivity fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where groupId = ?.
static SocialActivity fetchByM_C_C_First(long mirrorActivityId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.
static SocialActivity fetchByM_C_C_Last(long mirrorActivityId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.
static SocialActivity fetchByMirrorActivityId(long mirrorActivityId)
          Returns the social activity where mirrorActivityId = ? or returns null if it could not be found.
static SocialActivity fetchByMirrorActivityId(long mirrorActivityId, boolean retrieveFromCache)
          Returns the social activity where mirrorActivityId = ? or returns null if it could not be found, optionally using the finder cache.
static SocialActivity fetchByPrimaryKey(long activityId)
          Returns the social activity with the primary key or returns null if it could not be found.
static SocialActivity fetchByReceiverUserId_First(long receiverUserId, OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where receiverUserId = ?.
static SocialActivity fetchByReceiverUserId_Last(long receiverUserId, OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where receiverUserId = ?.
static SocialActivity fetchByUserId_First(long userId, OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where userId = ?.
static SocialActivity fetchByUserId_Last(long userId, OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where userId = ?.
static List<SocialActivity> findAll()
          Returns all the social activities.
static List<SocialActivity> findAll(int start, int end)
          Returns a range of all the social activities.
static List<SocialActivity> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activities.
static SocialActivity findByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.
static SocialActivity findByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns 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)
          Returns 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)
          Returns all the social activities where classNameId = ? and classPK = ?.
static List<SocialActivity> findByC_C(long classNameId, long classPK, int start, int end)
          Returns 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)
          Returns an ordered range of all the social activities where classNameId = ? and classPK = ?.
static SocialActivity findByClassNameId_First(long classNameId, OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where classNameId = ?.
static SocialActivity findByClassNameId_Last(long classNameId, OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where classNameId = ?.
static SocialActivity[] findByClassNameId_PrevAndNext(long activityId, long classNameId, OrderByComparator orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where classNameId = ?.
static List<SocialActivity> findByClassNameId(long classNameId)
          Returns all the social activities where classNameId = ?.
static List<SocialActivity> findByClassNameId(long classNameId, int start, int end)
          Returns a range of all the social activities where classNameId = ?.
static List<SocialActivity> findByClassNameId(long classNameId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activities where classNameId = ?.
static SocialActivity findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where companyId = ?.
static SocialActivity findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where companyId = ?.
static SocialActivity[] findByCompanyId_PrevAndNext(long activityId, long companyId, OrderByComparator orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where companyId = ?.
static List<SocialActivity> findByCompanyId(long companyId)
          Returns all the social activities where companyId = ?.
static List<SocialActivity> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the social activities where companyId = ?.
static List<SocialActivity> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activities where companyId = ?.
static SocialActivity findByG_U_C_C_T_R_First(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
static SocialActivity findByG_U_C_C_T_R_Last(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
static SocialActivity[] findByG_U_C_C_T_R_PrevAndNext(long activityId, long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
static List<SocialActivity> findByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId)
          Returns all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
static List<SocialActivity> findByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, int start, int end)
          Returns a range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
static List<SocialActivity> findByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
static SocialActivity findByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or throws a NoSuchActivityException if it could not be found.
static SocialActivity findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where groupId = ?.
static SocialActivity findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where groupId = ?.
static SocialActivity[] findByGroupId_PrevAndNext(long activityId, long groupId, OrderByComparator orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where groupId = ?.
static List<SocialActivity> findByGroupId(long groupId)
          Returns all the social activities where groupId = ?.
static List<SocialActivity> findByGroupId(long groupId, int start, int end)
          Returns a range of all the social activities where groupId = ?.
static List<SocialActivity> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activities where groupId = ?.
static SocialActivity findByM_C_C_First(long mirrorActivityId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns 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)
          Returns 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)
          Returns 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)
          Returns 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)
          Returns 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)
          Returns an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
static SocialActivity findByMirrorActivityId(long mirrorActivityId)
          Returns the social activity where mirrorActivityId = ? or throws a NoSuchActivityException if it could not be found.
static SocialActivity findByPrimaryKey(long activityId)
          Returns 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)
          Returns the first social activity in the ordered set where receiverUserId = ?.
static SocialActivity findByReceiverUserId_Last(long receiverUserId, OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where receiverUserId = ?.
static SocialActivity[] findByReceiverUserId_PrevAndNext(long activityId, long receiverUserId, OrderByComparator orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where receiverUserId = ?.
static List<SocialActivity> findByReceiverUserId(long receiverUserId)
          Returns all the social activities where receiverUserId = ?.
static List<SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end)
          Returns a range of all the social activities where receiverUserId = ?.
static List<SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activities where receiverUserId = ?.
static SocialActivity findByUserId_First(long userId, OrderByComparator orderByComparator)
          Returns the first social activity in the ordered set where userId = ?.
static SocialActivity findByUserId_Last(long userId, OrderByComparator orderByComparator)
          Returns the last social activity in the ordered set where userId = ?.
static SocialActivity[] findByUserId_PrevAndNext(long activityId, long userId, OrderByComparator orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where userId = ?.
static List<SocialActivity> findByUserId(long userId)
          Returns all the social activities where userId = ?.
static List<SocialActivity> findByUserId(long userId, int start, int end)
          Returns a range of all the social activities where userId = ?.
static List<SocialActivity> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
          Returns 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 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_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId)
          Removes all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database.
static SocialActivity 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 SocialActivity 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)
          Deprecated.  
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)

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

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

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
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
Returns 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
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
Returns 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
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
Returns all the social activities where groupId = ?.

Parameters:
groupId - the group ID
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
Returns a range of all the social activities where groupId = ?.

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

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

findByGroupId

public static List<SocialActivity> findByGroupId(long groupId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Returns an ordered range of all the social activities where groupId = ?.

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

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

findByGroupId_First

public static SocialActivity findByGroupId_First(long groupId,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchActivityException
Returns the first social activity in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByGroupId_First

public static SocialActivity fetchByGroupId_First(long groupId,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException
Returns the first social activity in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_Last

public static SocialActivity findByGroupId_Last(long groupId,
                                                OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchActivityException
Returns the last social activity in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByGroupId_Last

public static SocialActivity fetchByGroupId_Last(long groupId,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Returns the last social activity in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public static SocialActivity[] findByGroupId_PrevAndNext(long activityId,
                                                         long groupId,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException,
                                                         NoSuchActivityException
Returns the social activities before and after the current social activity in the ordered set where groupId = ?.

Parameters:
activityId - the primary key of the current social activity
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
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
Returns all the social activities where companyId = ?.

Parameters:
companyId - the company ID
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
Returns a range of all the social activities where companyId = ?.

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

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

findByCompanyId

public static List<SocialActivity> findByCompanyId(long companyId,
                                                   int start,
                                                   int end,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException
Returns an ordered range of all the social activities where companyId = ?.

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

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

findByCompanyId_First

public static SocialActivity findByCompanyId_First(long companyId,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchActivityException
Returns the first social activity in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByCompanyId_First

public static SocialActivity fetchByCompanyId_First(long companyId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns the first social activity in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_Last

public static SocialActivity findByCompanyId_Last(long companyId,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException,
                                                  NoSuchActivityException
Returns the last social activity in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByCompanyId_Last

public static SocialActivity fetchByCompanyId_Last(long companyId,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException
Returns the last social activity in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public static SocialActivity[] findByCompanyId_PrevAndNext(long activityId,
                                                           long companyId,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException,
                                                           NoSuchActivityException
Returns the social activities before and after the current social activity in the ordered set where companyId = ?.

Parameters:
activityId - the primary key of the current social activity
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
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
Returns all the social activities where userId = ?.

Parameters:
userId - the user ID
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
Returns a range of all the social activities where userId = ?.

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

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

findByUserId

public static List<SocialActivity> findByUserId(long userId,
                                                int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Returns an ordered range of all the social activities where userId = ?.

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

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

findByUserId_First

public static SocialActivity findByUserId_First(long userId,
                                                OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchActivityException
Returns the first social activity in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByUserId_First

public static SocialActivity fetchByUserId_First(long userId,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Returns the first social activity in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findByUserId_Last

public static SocialActivity findByUserId_Last(long userId,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchActivityException
Returns the last social activity in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByUserId_Last

public static SocialActivity fetchByUserId_Last(long userId,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Returns the last social activity in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findByUserId_PrevAndNext

public static SocialActivity[] findByUserId_PrevAndNext(long activityId,
                                                        long userId,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException,
                                                        NoSuchActivityException
Returns the social activities before and after the current social activity in the ordered set where userId = ?.

Parameters:
activityId - the primary key of the current social activity
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
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
Returns the social activity where mirrorActivityId = ? or throws a NoSuchActivityException if it could not be found.

Parameters:
mirrorActivityId - the mirror activity ID
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
Returns the social activity where mirrorActivityId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
mirrorActivityId - the mirror activity ID
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
Returns 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
retrieveFromCache - whether to use the finder cache
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
Returns all the social activities where classNameId = ?.

Parameters:
classNameId - the class name ID
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
Returns a range of all the social activities where classNameId = ?.

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

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

findByClassNameId

public static List<SocialActivity> findByClassNameId(long classNameId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Returns an ordered range of all the social activities where classNameId = ?.

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

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

findByClassNameId_First

public static SocialActivity findByClassNameId_First(long classNameId,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchActivityException
Returns the first social activity in the ordered set where classNameId = ?.

Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByClassNameId_First

public static SocialActivity fetchByClassNameId_First(long classNameId,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException
Returns the first social activity in the ordered set where classNameId = ?.

Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findByClassNameId_Last

public static SocialActivity findByClassNameId_Last(long classNameId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchActivityException
Returns the last social activity in the ordered set where classNameId = ?.

Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByClassNameId_Last

public static SocialActivity fetchByClassNameId_Last(long classNameId,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Returns the last social activity in the ordered set where classNameId = ?.

Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findByClassNameId_PrevAndNext

public static SocialActivity[] findByClassNameId_PrevAndNext(long activityId,
                                                             long classNameId,
                                                             OrderByComparator orderByComparator)
                                                      throws SystemException,
                                                             NoSuchActivityException
Returns the social activities before and after the current social activity in the ordered set where classNameId = ?.

Parameters:
activityId - the primary key of the current social activity
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
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
Returns all the social activities where receiverUserId = ?.

Parameters:
receiverUserId - the receiver user ID
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
Returns a range of all the social activities where receiverUserId = ?.

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

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

findByReceiverUserId

public static List<SocialActivity> findByReceiverUserId(long receiverUserId,
                                                        int start,
                                                        int end,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException
Returns an ordered range of all the social activities where receiverUserId = ?.

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

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

findByReceiverUserId_First

public static SocialActivity findByReceiverUserId_First(long receiverUserId,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException,
                                                        NoSuchActivityException
Returns the first social activity in the ordered set where receiverUserId = ?.

Parameters:
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByReceiverUserId_First

public static SocialActivity fetchByReceiverUserId_First(long receiverUserId,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException
Returns the first social activity in the ordered set where receiverUserId = ?.

Parameters:
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findByReceiverUserId_Last

public static SocialActivity findByReceiverUserId_Last(long receiverUserId,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       NoSuchActivityException
Returns the last social activity in the ordered set where receiverUserId = ?.

Parameters:
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByReceiverUserId_Last

public static SocialActivity fetchByReceiverUserId_Last(long receiverUserId,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException
Returns the last social activity in the ordered set where receiverUserId = ?.

Parameters:
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findByReceiverUserId_PrevAndNext

public static SocialActivity[] findByReceiverUserId_PrevAndNext(long activityId,
                                                                long receiverUserId,
                                                                OrderByComparator orderByComparator)
                                                         throws SystemException,
                                                                NoSuchActivityException
Returns the social activities before and after the current social activity in the ordered set where receiverUserId = ?.

Parameters:
activityId - the primary key of the current social activity
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
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
Returns all the social activities where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
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
Returns a range of all the social activities where classNameId = ? and classPK = ?.

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

Parameters:
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities
Throws:
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
Returns an ordered range of all the social activities where classNameId = ? and classPK = ?.

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

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

findByC_C_First

public static SocialActivity findByC_C_First(long classNameId,
                                             long classPK,
                                             OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchActivityException
Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.

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

fetchByC_C_First

public static SocialActivity fetchByC_C_First(long classNameId,
                                              long classPK,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_Last

public static SocialActivity findByC_C_Last(long classNameId,
                                            long classPK,
                                            OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchActivityException
Returns the last social activity in the ordered set where classNameId = ? and classPK = ?.

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

fetchByC_C_Last

public static SocialActivity fetchByC_C_Last(long classNameId,
                                             long classPK,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns the last social activity in the ordered set where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found
Throws:
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
Returns the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ?.

Parameters:
activityId - the primary key of the current social activity
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
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
Returns all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
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
Returns a range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.

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

Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities
Throws:
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
Returns an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.

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

Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities
Throws:
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
Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.

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

fetchByM_C_C_First

public static SocialActivity fetchByM_C_C_First(long mirrorActivityId,
                                                long classNameId,
                                                long classPK,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found
Throws:
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
Returns the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.

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

fetchByM_C_C_Last

public static SocialActivity fetchByM_C_C_Last(long mirrorActivityId,
                                               long classNameId,
                                               long classPK,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Returns the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found
Throws:
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
Returns the social activities before and after the current social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.

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

findByG_U_C_C_T_R

public static List<SocialActivity> findByG_U_C_C_T_R(long groupId,
                                                     long userId,
                                                     long classNameId,
                                                     long classPK,
                                                     int type,
                                                     long receiverUserId)
                                              throws SystemException
Returns all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the matching social activities
Throws:
SystemException - if a system exception occurred

findByG_U_C_C_T_R

public static List<SocialActivity> findByG_U_C_C_T_R(long groupId,
                                                     long userId,
                                                     long classNameId,
                                                     long classPK,
                                                     int type,
                                                     long receiverUserId,
                                                     int start,
                                                     int end)
                                              throws SystemException
Returns a range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

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

Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities
Throws:
SystemException - if a system exception occurred

findByG_U_C_C_T_R

public static List<SocialActivity> findByG_U_C_C_T_R(long groupId,
                                                     long userId,
                                                     long classNameId,
                                                     long classPK,
                                                     int type,
                                                     long receiverUserId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Returns an ordered range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

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

Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities
Throws:
SystemException - if a system exception occurred

findByG_U_C_C_T_R_First

public static SocialActivity findByG_U_C_C_T_R_First(long groupId,
                                                     long userId,
                                                     long classNameId,
                                                     long classPK,
                                                     int type,
                                                     long receiverUserId,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchActivityException
Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByG_U_C_C_T_R_First

public static SocialActivity fetchByG_U_C_C_T_R_First(long groupId,
                                                      long userId,
                                                      long classNameId,
                                                      long classPK,
                                                      int type,
                                                      long receiverUserId,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException
Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findByG_U_C_C_T_R_Last

public static SocialActivity findByG_U_C_C_T_R_Last(long groupId,
                                                    long userId,
                                                    long classNameId,
                                                    long classPK,
                                                    int type,
                                                    long receiverUserId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchActivityException
Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByG_U_C_C_T_R_Last

public static SocialActivity fetchByG_U_C_C_T_R_Last(long groupId,
                                                     long userId,
                                                     long classNameId,
                                                     long classPK,
                                                     int type,
                                                     long receiverUserId,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findByG_U_C_C_T_R_PrevAndNext

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

Parameters:
activityId - the primary key of the current social activity
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
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
Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or throws a NoSuchActivityException if it could not be found.

Parameters:
groupId - the group ID
userId - the user ID
createDate - the create date
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the matching social activity
Throws:
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
Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
userId - the user ID
createDate - the create date
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the matching social activity, or null if a matching social activity could not be found
Throws:
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
Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found, optionally using the finder cache.

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

findAll

public static List<SocialActivity> findAll()
                                    throws SystemException
Returns 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
Returns a range of all the social activities.

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

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

findAll

public static List<SocialActivity> findAll(int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns an ordered range of all the social activities.

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

Parameters:
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of social activities
Throws:
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
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
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
Throws:
SystemException - if a system exception occurred

removeByMirrorActivityId

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

Parameters:
mirrorActivityId - the mirror activity ID
Returns:
the social activity that was removed
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
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
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
classPK - the class p k
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
classNameId - the class name ID
classPK - the class p k
Throws:
SystemException - if a system exception occurred

removeByG_U_C_C_T_R

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

Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Throws:
SystemException - if a system exception occurred

removeByG_U_CD_C_C_T_R

public static SocialActivity 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
userId - the user ID
createDate - the create date
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the social activity that was removed
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
Returns the number of social activities where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByCompanyId

public static int countByCompanyId(long companyId)
                            throws SystemException
Returns the number of social activities where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByUserId

public static int countByUserId(long userId)
                         throws SystemException
Returns the number of social activities where userId = ?.

Parameters:
userId - the user ID
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByMirrorActivityId

public static int countByMirrorActivityId(long mirrorActivityId)
                                   throws SystemException
Returns the number of social activities where mirrorActivityId = ?.

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

countByClassNameId

public static int countByClassNameId(long classNameId)
                              throws SystemException
Returns the number of social activities where classNameId = ?.

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

countByReceiverUserId

public static int countByReceiverUserId(long receiverUserId)
                                 throws SystemException
Returns the number of social activities where receiverUserId = ?.

Parameters:
receiverUserId - the receiver user ID
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
Returns the number of social activities where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
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
Returns the number of social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.

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

countByG_U_C_C_T_R

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

Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the number of matching social activities
Throws:
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
Returns the number of social activities where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

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

countAll

public static int countAll()
                    throws SystemException
Returns the number of 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)
Deprecated. 


Liferay 6.1.2-ce-ga3