|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.social.service.persistence.SocialActivityUtil
public class SocialActivityUtil
The persistence utility for the social activity service. This utility wraps SocialActivityPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Never modify this class directly. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
SocialActivityPersistence
,
SocialActivityPersistenceImpl
Constructor Summary | |
---|---|
SocialActivityUtil()
|
Method Summary | |
---|---|
static void |
cacheResult(List<SocialActivity> socialActivities)
Caches the social activities in the entity cache if it is enabled. |
static void |
cacheResult(SocialActivity socialActivity)
Caches the social activity in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(SocialActivity socialActivity)
|
static int |
countAll()
Counts all the social activities. |
static int |
countByC_C(long classNameId,
long classPK)
Counts all the social activities where classNameId = ? and classPK = ?. |
static int |
countByClassNameId(long classNameId)
Counts all the social activities where classNameId = ?. |
static int |
countByCompanyId(long companyId)
Counts all the social activities where companyId = ?. |
static int |
countByG_U_CD_C_C_T_R(long groupId,
long userId,
long createDate,
long classNameId,
long classPK,
int type,
long receiverUserId)
Counts all the social activities where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. |
static int |
countByGroupId(long groupId)
Counts all the social activities where groupId = ?. |
static int |
countByM_C_C(long mirrorActivityId,
long classNameId,
long classPK)
Counts all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. |
static int |
countByMirrorActivityId(long mirrorActivityId)
Counts all the social activities where mirrorActivityId = ?. |
static int |
countByReceiverUserId(long receiverUserId)
Counts all the social activities where receiverUserId = ?. |
static int |
countByUserId(long userId)
Counts all the social activities where userId = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static SocialActivity |
create(long activityId)
Creates a new social activity with the primary key. |
static SocialActivity |
fetchByG_U_CD_C_C_T_R(long groupId,
long userId,
long createDate,
long classNameId,
long classPK,
int type,
long receiverUserId)
Finds the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found. |
static SocialActivity |
fetchByG_U_CD_C_C_T_R(long groupId,
long userId,
long createDate,
long classNameId,
long classPK,
int type,
long receiverUserId,
boolean retrieveFromCache)
Finds the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found, optionally using the finder cache. |
static SocialActivity |
fetchByMirrorActivityId(long mirrorActivityId)
Finds the social activity where mirrorActivityId = ? or returns null if it could not be found. |
static SocialActivity |
fetchByMirrorActivityId(long mirrorActivityId,
boolean retrieveFromCache)
Finds the social activity where mirrorActivityId = ? or returns null if it could not be found, optionally using the finder cache. |
static SocialActivity |
fetchByPrimaryKey(long activityId)
Finds the social activity with the primary key or returns null if it could not be found. |
static List<SocialActivity> |
findAll()
Finds all the social activities. |
static List<SocialActivity> |
findAll(int start,
int end)
Finds a range of all the social activities. |
static List<SocialActivity> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social activities. |
static SocialActivity |
findByC_C_First(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Finds the first social activity in the ordered set where classNameId = ? and classPK = ?. |
static SocialActivity |
findByC_C_Last(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Finds the last social activity in the ordered set where classNameId = ? and classPK = ?. |
static SocialActivity[] |
findByC_C_PrevAndNext(long activityId,
long classNameId,
long classPK,
OrderByComparator orderByComparator)
Finds the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ?. |
static List<SocialActivity> |
findByC_C(long classNameId,
long classPK)
Finds all the social activities where classNameId = ? and classPK = ?. |
static List<SocialActivity> |
findByC_C(long classNameId,
long classPK,
int start,
int end)
Finds a range of all the social activities where classNameId = ? and classPK = ?. |
static List<SocialActivity> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social activities where classNameId = ? and classPK = ?. |
static SocialActivity |
findByClassNameId_First(long classNameId,
OrderByComparator orderByComparator)
Finds the first social activity in the ordered set where classNameId = ?. |
static SocialActivity |
findByClassNameId_Last(long classNameId,
OrderByComparator orderByComparator)
Finds the last social activity in the ordered set where classNameId = ?. |
static SocialActivity[] |
findByClassNameId_PrevAndNext(long activityId,
long classNameId,
OrderByComparator orderByComparator)
Finds the social activities before and after the current social activity in the ordered set where classNameId = ?. |
static List<SocialActivity> |
findByClassNameId(long classNameId)
Finds all the social activities where classNameId = ?. |
static List<SocialActivity> |
findByClassNameId(long classNameId,
int start,
int end)
Finds a range of all the social activities where classNameId = ?. |
static List<SocialActivity> |
findByClassNameId(long classNameId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social activities where classNameId = ?. |
static SocialActivity |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Finds the first social activity in the ordered set where companyId = ?. |
static SocialActivity |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Finds the last social activity in the ordered set where companyId = ?. |
static SocialActivity[] |
findByCompanyId_PrevAndNext(long activityId,
long companyId,
OrderByComparator orderByComparator)
Finds the social activities before and after the current social activity in the ordered set where companyId = ?. |
static List<SocialActivity> |
findByCompanyId(long companyId)
Finds all the social activities where companyId = ?. |
static List<SocialActivity> |
findByCompanyId(long companyId,
int start,
int end)
Finds a range of all the social activities where companyId = ?. |
static List<SocialActivity> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social activities where companyId = ?. |
static SocialActivity |
findByG_U_CD_C_C_T_R(long groupId,
long userId,
long createDate,
long classNameId,
long classPK,
int type,
long receiverUserId)
Finds the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or throws a NoSuchActivityException if it could not be found. |
static SocialActivity |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Finds the first social activity in the ordered set where groupId = ?. |
static SocialActivity |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Finds the last social activity in the ordered set where groupId = ?. |
static SocialActivity[] |
findByGroupId_PrevAndNext(long activityId,
long groupId,
OrderByComparator orderByComparator)
Finds the social activities before and after the current social activity in the ordered set where groupId = ?. |
static List<SocialActivity> |
findByGroupId(long groupId)
Finds all the social activities where groupId = ?. |
static List<SocialActivity> |
findByGroupId(long groupId,
int start,
int end)
Finds a range of all the social activities where groupId = ?. |
static List<SocialActivity> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social activities where groupId = ?. |
static SocialActivity |
findByM_C_C_First(long mirrorActivityId,
long classNameId,
long classPK,
OrderByComparator orderByComparator)
Finds the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. |
static SocialActivity |
findByM_C_C_Last(long mirrorActivityId,
long classNameId,
long classPK,
OrderByComparator orderByComparator)
Finds the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. |
static SocialActivity[] |
findByM_C_C_PrevAndNext(long activityId,
long mirrorActivityId,
long classNameId,
long classPK,
OrderByComparator orderByComparator)
Finds the social activities before and after the current social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. |
static List<SocialActivity> |
findByM_C_C(long mirrorActivityId,
long classNameId,
long classPK)
Finds all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. |
static List<SocialActivity> |
findByM_C_C(long mirrorActivityId,
long classNameId,
long classPK,
int start,
int end)
Finds a range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. |
static List<SocialActivity> |
findByM_C_C(long mirrorActivityId,
long classNameId,
long classPK,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. |
static SocialActivity |
findByMirrorActivityId(long mirrorActivityId)
Finds the social activity where mirrorActivityId = ? or throws a NoSuchActivityException if it could not be found. |
static SocialActivity |
findByPrimaryKey(long activityId)
Finds the social activity with the primary key or throws a NoSuchActivityException if it could not be found. |
static SocialActivity |
findByReceiverUserId_First(long receiverUserId,
OrderByComparator orderByComparator)
Finds the first social activity in the ordered set where receiverUserId = ?. |
static SocialActivity |
findByReceiverUserId_Last(long receiverUserId,
OrderByComparator orderByComparator)
Finds the last social activity in the ordered set where receiverUserId = ?. |
static SocialActivity[] |
findByReceiverUserId_PrevAndNext(long activityId,
long receiverUserId,
OrderByComparator orderByComparator)
Finds the social activities before and after the current social activity in the ordered set where receiverUserId = ?. |
static List<SocialActivity> |
findByReceiverUserId(long receiverUserId)
Finds all the social activities where receiverUserId = ?. |
static List<SocialActivity> |
findByReceiverUserId(long receiverUserId,
int start,
int end)
Finds a range of all the social activities where receiverUserId = ?. |
static List<SocialActivity> |
findByReceiverUserId(long receiverUserId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social activities where receiverUserId = ?. |
static SocialActivity |
findByUserId_First(long userId,
OrderByComparator orderByComparator)
Finds the first social activity in the ordered set where userId = ?. |
static SocialActivity |
findByUserId_Last(long userId,
OrderByComparator orderByComparator)
Finds the last social activity in the ordered set where userId = ?. |
static SocialActivity[] |
findByUserId_PrevAndNext(long activityId,
long userId,
OrderByComparator orderByComparator)
Finds the social activities before and after the current social activity in the ordered set where userId = ?. |
static List<SocialActivity> |
findByUserId(long userId)
Finds all the social activities where userId = ?. |
static List<SocialActivity> |
findByUserId(long userId,
int start,
int end)
Finds a range of all the social activities where userId = ?. |
static List<SocialActivity> |
findByUserId(long userId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social activities where userId = ?. |
static List<SocialActivity> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<SocialActivity> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<SocialActivity> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static SocialActivityPersistence |
getPersistence()
|
static SocialActivity |
remove(long activityId)
Removes the social activity with the primary key from the database. |
static SocialActivity |
remove(SocialActivity socialActivity)
|
static void |
removeAll()
Removes all the social activities from the database. |
static void |
removeByC_C(long classNameId,
long classPK)
Removes all the social activities where classNameId = ? and classPK = ? from the database. |
static void |
removeByClassNameId(long classNameId)
Removes all the social activities where classNameId = ? from the database. |
static void |
removeByCompanyId(long companyId)
Removes all the social activities where companyId = ? from the database. |
static void |
removeByG_U_CD_C_C_T_R(long groupId,
long userId,
long createDate,
long classNameId,
long classPK,
int type,
long receiverUserId)
Removes the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database. |
static void |
removeByGroupId(long groupId)
Removes all the social activities where groupId = ? from the database. |
static void |
removeByM_C_C(long mirrorActivityId,
long classNameId,
long classPK)
Removes all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ? from the database. |
static void |
removeByMirrorActivityId(long mirrorActivityId)
Removes the social activity where mirrorActivityId = ? from the database. |
static void |
removeByReceiverUserId(long receiverUserId)
Removes all the social activities where receiverUserId = ? from the database. |
static void |
removeByUserId(long userId)
Removes all the social activities where userId = ? from the database. |
void |
setPersistence(SocialActivityPersistence persistence)
|
static SocialActivity |
update(SocialActivity socialActivity,
boolean merge)
|
static SocialActivity |
update(SocialActivity socialActivity,
boolean merge,
ServiceContext serviceContext)
|
static SocialActivity |
updateImpl(SocialActivity socialActivity,
boolean merge)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocialActivityUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SocialActivity socialActivity)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<SocialActivity> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<SocialActivity> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<SocialActivity> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static SocialActivity remove(SocialActivity socialActivity) throws SystemException
SystemException
BasePersistence.remove(com.liferay.portal.model.BaseModel)
public static SocialActivity update(SocialActivity socialActivity, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static SocialActivity update(SocialActivity socialActivity, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(SocialActivity socialActivity)
socialActivity
- the social activity to cachepublic static void cacheResult(List<SocialActivity> socialActivities)
socialActivities
- the social activities to cachepublic static SocialActivity create(long activityId)
activityId
- the primary key for the new social activity
public static SocialActivity remove(long activityId) throws SystemException, NoSuchActivityException
activityId
- the primary key of the social activity to remove
NoSuchActivityException
- if a social activity with the primary key could not be found
SystemException
- if a system exception occurredpublic static SocialActivity updateImpl(SocialActivity socialActivity, boolean merge) throws SystemException
SystemException
public static SocialActivity findByPrimaryKey(long activityId) throws SystemException, NoSuchActivityException
NoSuchActivityException
if it could not be found.
activityId
- the primary key of the social activity to find
NoSuchActivityException
- if a social activity with the primary key could not be found
SystemException
- if a system exception occurredpublic static SocialActivity fetchByPrimaryKey(long activityId) throws SystemException
null
if it could not be found.
activityId
- the primary key of the social activity to find
null
if a social activity with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByGroupId(long groupId, int start, int end) throws SystemException
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.
groupId
- the group id to search withstart
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
groupId
- the group id to search withstart
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static SocialActivity findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
groupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
groupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity[] findByGroupId_PrevAndNext(long activityId, long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
activityId
- the primary key of the current social activitygroupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a social activity with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByCompanyId(long companyId, int start, int end) throws SystemException
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.
companyId
- the company id to search withstart
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
companyId
- the company id to search withstart
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static SocialActivity findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
companyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
companyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity[] findByCompanyId_PrevAndNext(long activityId, long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
activityId
- the primary key of the current social activitycompanyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a social activity with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByUserId(long userId) throws SystemException
userId
- the user id to search with
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByUserId(long userId, int start, int end) throws SystemException
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.
userId
- the user id to search withstart
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
userId
- the user id to search withstart
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static SocialActivity findByUserId_First(long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
userId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity findByUserId_Last(long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
userId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity[] findByUserId_PrevAndNext(long activityId, long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
activityId
- the primary key of the current social activityuserId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a social activity with the primary key could not be found
SystemException
- if a system exception occurredpublic static SocialActivity findByMirrorActivityId(long mirrorActivityId) throws SystemException, NoSuchActivityException
NoSuchActivityException
if it could not be found.
mirrorActivityId
- the mirror activity id to search with
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity fetchByMirrorActivityId(long mirrorActivityId) throws SystemException
null
if it could not be found. Uses the finder cache.
mirrorActivityId
- the mirror activity id to search with
null
if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity fetchByMirrorActivityId(long mirrorActivityId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
mirrorActivityId
- the mirror activity id to search with
null
if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByClassNameId(long classNameId) throws SystemException
classNameId
- the class name id to search with
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByClassNameId(long classNameId, int start, int end) throws SystemException
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.
classNameId
- the class name id to search withstart
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByClassNameId(long classNameId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
classNameId
- the class name id to search withstart
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static SocialActivity findByClassNameId_First(long classNameId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
classNameId
- the class name id to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity findByClassNameId_Last(long classNameId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
classNameId
- the class name id to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity[] findByClassNameId_PrevAndNext(long activityId, long classNameId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
activityId
- the primary key of the current social activityclassNameId
- the class name id to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a social activity with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByReceiverUserId(long receiverUserId) throws SystemException
receiverUserId
- the receiver user id to search with
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end) throws SystemException
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.
receiverUserId
- the receiver user id to search withstart
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
receiverUserId
- the receiver user id to search withstart
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static SocialActivity findByReceiverUserId_First(long receiverUserId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
receiverUserId
- the receiver user id to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity findByReceiverUserId_Last(long receiverUserId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
receiverUserId
- the receiver user id to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity[] findByReceiverUserId_PrevAndNext(long activityId, long receiverUserId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
activityId
- the primary key of the current social activityreceiverUserId
- the receiver user id to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a social activity with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name id to search withclassPK
- the class p k to search with
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByC_C(long classNameId, long classPK, int start, int end) throws SystemException
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.
classNameId
- the class name id to search withclassPK
- the class p k to search withstart
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
classNameId
- the class name id to search withclassPK
- the class p k to search withstart
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static SocialActivity findByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
classNameId
- the class name id to search withclassPK
- the class p k to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity findByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
classNameId
- the class name id to search withclassPK
- the class p k to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity[] findByC_C_PrevAndNext(long activityId, long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
activityId
- the primary key of the current social activityclassNameId
- the class name id to search withclassPK
- the class p k to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a social activity with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK) throws SystemException
mirrorActivityId
- the mirror activity id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search with
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK, int start, int end) throws SystemException
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.
mirrorActivityId
- the mirror activity id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withstart
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
mirrorActivityId
- the mirror activity id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withstart
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static SocialActivity findByM_C_C_First(long mirrorActivityId, long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
mirrorActivityId
- the mirror activity id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity findByM_C_C_Last(long mirrorActivityId, long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
mirrorActivityId
- the mirror activity id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static SocialActivity[] findByM_C_C_PrevAndNext(long activityId, long mirrorActivityId, long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityException
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.
activityId
- the primary key of the current social activitymirrorActivityId
- the mirror activity id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withorderByComparator
- the comparator to order the set by
NoSuchActivityException
- if a social activity with the primary key could not be found
SystemException
- if a system exception occurredpublic 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
NoSuchActivityException
if it could not be found.
groupId
- the group id to search withuserId
- the user id to search withcreateDate
- the create date to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withtype
- the type to search withreceiverUserId
- the receiver user id to search with
NoSuchActivityException
- if a matching social activity could not be found
SystemException
- if a system exception occurredpublic 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
null
if it could not be found. Uses the finder cache.
groupId
- the group id to search withuserId
- the user id to search withcreateDate
- the create date to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withtype
- the type to search withreceiverUserId
- the receiver user id to search with
null
if a matching social activity could not be found
SystemException
- if a system exception occurredpublic 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
null
if it could not be found, optionally using the finder cache.
groupId
- the group id to search withuserId
- the user id to search withcreateDate
- the create date to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withtype
- the type to search withreceiverUserId
- the receiver user id to search with
null
if a matching social activity could not be found
SystemException
- if a system exception occurredpublic static List<SocialActivity> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<SocialActivity> findAll(int start, int end) throws SystemException
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.
start
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialActivity> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
start
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static void removeByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic static void removeByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic static void removeByUserId(long userId) throws SystemException
userId
- the user id to search with
SystemException
- if a system exception occurredpublic static void removeByMirrorActivityId(long mirrorActivityId) throws SystemException, NoSuchActivityException
mirrorActivityId
- the mirror activity id to search with
SystemException
- if a system exception occurred
NoSuchActivityException
public static void removeByClassNameId(long classNameId) throws SystemException
classNameId
- the class name id to search with
SystemException
- if a system exception occurredpublic static void removeByReceiverUserId(long receiverUserId) throws SystemException
receiverUserId
- the receiver user id to search with
SystemException
- if a system exception occurredpublic static void removeByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name id to search withclassPK
- the class p k to search with
SystemException
- if a system exception occurredpublic static void removeByM_C_C(long mirrorActivityId, long classNameId, long classPK) throws SystemException
mirrorActivityId
- the mirror activity id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search with
SystemException
- if a system exception occurredpublic static void removeByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId) throws SystemException, NoSuchActivityException
groupId
- the group id to search withuserId
- the user id to search withcreateDate
- the create date to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withtype
- the type to search withreceiverUserId
- the receiver user id to search with
SystemException
- if a system exception occurred
NoSuchActivityException
public static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic static int countByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic static int countByUserId(long userId) throws SystemException
userId
- the user id to search with
SystemException
- if a system exception occurredpublic static int countByMirrorActivityId(long mirrorActivityId) throws SystemException
mirrorActivityId
- the mirror activity id to search with
SystemException
- if a system exception occurredpublic static int countByClassNameId(long classNameId) throws SystemException
classNameId
- the class name id to search with
SystemException
- if a system exception occurredpublic static int countByReceiverUserId(long receiverUserId) throws SystemException
receiverUserId
- the receiver user id to search with
SystemException
- if a system exception occurredpublic static int countByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name id to search withclassPK
- the class p k to search with
SystemException
- if a system exception occurredpublic static int countByM_C_C(long mirrorActivityId, long classNameId, long classPK) throws SystemException
mirrorActivityId
- the mirror activity id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search with
SystemException
- if a system exception occurredpublic 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
groupId
- the group id to search withuserId
- the user id to search withcreateDate
- the create date to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withtype
- the type to search withreceiverUserId
- the receiver user id to search with
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static SocialActivityPersistence getPersistence()
public void setPersistence(SocialActivityPersistence persistence)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |