Interface SocialActivityPersistence
- All Superinterfaces:
BasePersistence<SocialActivity>
,CTPersistence<SocialActivity>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(SocialActivity socialActivity) Caches the social activity in the entity cache if it is enabled.void
cacheResult
(List<SocialActivity> socialActivities) Caches the social activities in the entity cache if it is enabled.int
countAll()
Returns the number of social activities.int
countByActivitySetId
(long activitySetId) Returns the number of social activities where activitySetId = ?.int
countByC_C
(long classNameId, long classPK) Returns the number of social activities where classNameId = ? and classPK = ?.int
countByC_C_T
(long classNameId, long classPK, int type) Returns the number of social activities where classNameId = ? and classPK = ? and type = ?.int
countByC_CN
(long companyId, long classNameId) Returns the number of social activities where companyId = ? and classNameId = ?.int
countByCompanyId
(long companyId) Returns the number of social activities where companyId = ?.int
countByG_U_C_C_T_R
(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId) Returns the number of social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.int
countByG_U_CD_C_C_T_R
(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId) Returns the number of social activities where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.int
countByGroupId
(long groupId) Returns the number of social activities where groupId = ?.int
countByM_C_C
(long mirrorActivityId, long classNameId, long classPK) Returns the number of social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.int
countByMirrorActivityId
(long mirrorActivityId) Returns the number of social activities where mirrorActivityId = ?.int
countByReceiverUserId
(long receiverUserId) Returns the number of social activities where receiverUserId = ?.int
countByUserId
(long userId) Returns the number of social activities where userId = ?.create
(long activityId) Creates a new social activity with the primary key.fetchByActivitySetId_First
(long activitySetId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where activitySetId = ?.fetchByActivitySetId_Last
(long activitySetId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where activitySetId = ?.fetchByC_C_First
(long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.fetchByC_C_Last
(long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where classNameId = ? and classPK = ?.fetchByC_C_T_First
(long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.fetchByC_C_T_Last
(long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.fetchByC_CN_First
(long companyId, long classNameId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where companyId = ? and classNameId = ?.fetchByC_CN_Last
(long companyId, long classNameId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where companyId = ? and classNameId = ?.fetchByCompanyId_First
(long companyId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where companyId = ?.fetchByCompanyId_Last
(long companyId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where companyId = ?.fetchByG_U_C_C_T_R_First
(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.fetchByG_U_C_C_T_R_Last
(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.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 returnsnull
if it could not be found.fetchByG_U_CD_C_C_T_R
(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId, boolean useFinderCache) Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByGroupId_First
(long groupId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where groupId = ?.fetchByGroupId_Last
(long groupId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where groupId = ?.fetchByM_C_C_First
(long mirrorActivityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.fetchByM_C_C_Last
(long mirrorActivityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.fetchByMirrorActivityId
(long mirrorActivityId) Returns the social activity where mirrorActivityId = ? or returnsnull
if it could not be found.fetchByMirrorActivityId
(long mirrorActivityId, boolean useFinderCache) Returns the social activity where mirrorActivityId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByPrimaryKey
(long activityId) Returns the social activity with the primary key or returnsnull
if it could not be found.fetchByReceiverUserId_First
(long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where receiverUserId = ?.fetchByReceiverUserId_Last
(long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where receiverUserId = ?.fetchByUserId_First
(long userId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where userId = ?.fetchByUserId_Last
(long userId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where userId = ?.findAll()
Returns all the social activities.findAll
(int start, int end) Returns a range of all the social activities.findAll
(int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities.findAll
(int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities.findByActivitySetId
(long activitySetId) Returns all the social activities where activitySetId = ?.findByActivitySetId
(long activitySetId, int start, int end) Returns a range of all the social activities where activitySetId = ?.findByActivitySetId
(long activitySetId, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where activitySetId = ?.findByActivitySetId
(long activitySetId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where activitySetId = ?.findByActivitySetId_First
(long activitySetId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where activitySetId = ?.findByActivitySetId_Last
(long activitySetId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where activitySetId = ?.findByActivitySetId_PrevAndNext
(long activityId, long activitySetId, OrderByComparator<SocialActivity> orderByComparator) Returns the social activities before and after the current social activity in the ordered set where activitySetId = ?.findByC_C
(long classNameId, long classPK) Returns all the social activities where classNameId = ? and classPK = ?.findByC_C
(long classNameId, long classPK, int start, int end) Returns a range of all the social activities where classNameId = ? and classPK = ?.findByC_C
(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where classNameId = ? and classPK = ?.findByC_C
(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where classNameId = ? and classPK = ?.findByC_C_First
(long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.findByC_C_Last
(long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where classNameId = ? and classPK = ?.findByC_C_PrevAndNext
(long activityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) Returns the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ?.findByC_C_T
(long classNameId, long classPK, int type) Returns all the social activities where classNameId = ? and classPK = ? and type = ?.findByC_C_T
(long classNameId, long classPK, int type, int start, int end) Returns a range of all the social activities where classNameId = ? and classPK = ? and type = ?.findByC_C_T
(long classNameId, long classPK, int type, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where classNameId = ? and classPK = ? and type = ?.findByC_C_T
(long classNameId, long classPK, int type, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where classNameId = ? and classPK = ? and type = ?.findByC_C_T_First
(long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.findByC_C_T_Last
(long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.findByC_C_T_PrevAndNext
(long activityId, long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator) Returns the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.findByC_CN
(long companyId, long classNameId) Returns all the social activities where companyId = ? and classNameId = ?.findByC_CN
(long companyId, long classNameId, int start, int end) Returns a range of all the social activities where companyId = ? and classNameId = ?.findByC_CN
(long companyId, long classNameId, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where companyId = ? and classNameId = ?.findByC_CN
(long companyId, long classNameId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where companyId = ? and classNameId = ?.findByC_CN_First
(long companyId, long classNameId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where companyId = ? and classNameId = ?.findByC_CN_Last
(long companyId, long classNameId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where companyId = ? and classNameId = ?.findByC_CN_PrevAndNext
(long activityId, long companyId, long classNameId, OrderByComparator<SocialActivity> orderByComparator) Returns the social activities before and after the current social activity in the ordered set where companyId = ? and classNameId = ?.findByCompanyId
(long companyId) Returns all the social activities where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the social activities where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where companyId = ?.findByCompanyId_First
(long companyId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where companyId = ?.findByCompanyId_Last
(long companyId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where companyId = ?.findByCompanyId_PrevAndNext
(long activityId, long companyId, OrderByComparator<SocialActivity> orderByComparator) Returns the social activities before and after the current social activity in the ordered set where companyId = ?.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 = ?.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 = ?.findByG_U_C_C_T_R
(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.findByG_U_C_C_T_R
(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.findByG_U_C_C_T_R_First
(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.findByG_U_C_C_T_R_Last
(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.findByG_U_C_C_T_R_PrevAndNext
(long activityId, long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> 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 = ?.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 aNoSuchActivityException
if it could not be found.findByGroupId
(long groupId) Returns all the social activities where groupId = ?.findByGroupId
(long groupId, int start, int end) Returns a range of all the social activities where groupId = ?.findByGroupId
(long groupId, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where groupId = ?.findByGroupId
(long groupId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where groupId = ?.findByGroupId_First
(long groupId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where groupId = ?.findByGroupId_Last
(long groupId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where groupId = ?.findByGroupId_PrevAndNext
(long activityId, long groupId, OrderByComparator<SocialActivity> orderByComparator) Returns the social activities before and after the current social activity in the ordered set where groupId = ?.findByM_C_C
(long mirrorActivityId, long classNameId, long classPK) Returns all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.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 = ?.findByM_C_C
(long mirrorActivityId, long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.findByM_C_C
(long mirrorActivityId, long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.findByM_C_C_First
(long mirrorActivityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.findByM_C_C_Last
(long mirrorActivityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.findByM_C_C_PrevAndNext
(long activityId, long mirrorActivityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) Returns the social activities before and after the current social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.findByMirrorActivityId
(long mirrorActivityId) Returns the social activity where mirrorActivityId = ? or throws aNoSuchActivityException
if it could not be found.findByPrimaryKey
(long activityId) Returns the social activity with the primary key or throws aNoSuchActivityException
if it could not be found.findByReceiverUserId
(long receiverUserId) Returns all the social activities where receiverUserId = ?.findByReceiverUserId
(long receiverUserId, int start, int end) Returns a range of all the social activities where receiverUserId = ?.findByReceiverUserId
(long receiverUserId, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where receiverUserId = ?.findByReceiverUserId
(long receiverUserId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where receiverUserId = ?.findByReceiverUserId_First
(long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where receiverUserId = ?.findByReceiverUserId_Last
(long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where receiverUserId = ?.findByReceiverUserId_PrevAndNext
(long activityId, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) Returns the social activities before and after the current social activity in the ordered set where receiverUserId = ?.findByUserId
(long userId) Returns all the social activities where userId = ?.findByUserId
(long userId, int start, int end) Returns a range of all the social activities where userId = ?.findByUserId
(long userId, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where userId = ?.findByUserId
(long userId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where userId = ?.findByUserId_First
(long userId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where userId = ?.findByUserId_Last
(long userId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where userId = ?.findByUserId_PrevAndNext
(long activityId, long userId, OrderByComparator<SocialActivity> orderByComparator) Returns the social activities before and after the current social activity in the ordered set where userId = ?.remove
(long activityId) Removes the social activity with the primary key from the database.void
Removes all the social activities from the database.void
removeByActivitySetId
(long activitySetId) Removes all the social activities where activitySetId = ? from the database.void
removeByC_C
(long classNameId, long classPK) Removes all the social activities where classNameId = ? and classPK = ? from the database.void
removeByC_C_T
(long classNameId, long classPK, int type) Removes all the social activities where classNameId = ? and classPK = ? and type = ? from the database.void
removeByC_CN
(long companyId, long classNameId) Removes all the social activities where companyId = ? and classNameId = ? from the database.void
removeByCompanyId
(long companyId) Removes all the social activities where companyId = ? from the database.void
removeByG_U_C_C_T_R
(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId) Removes all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database.removeByG_U_CD_C_C_T_R
(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId) Removes the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database.void
removeByGroupId
(long groupId) Removes all the social activities where groupId = ? from the database.void
removeByM_C_C
(long mirrorActivityId, long classNameId, long classPK) Removes all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ? from the database.removeByMirrorActivityId
(long mirrorActivityId) Removes the social activity where mirrorActivityId = ? from the database.void
removeByReceiverUserId
(long receiverUserId) Removes all the social activities where receiverUserId = ? from the database.void
removeByUserId
(long userId) Removes all the social activities where userId = ? from the database.updateImpl
(SocialActivity socialActivity) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByGroupId
Returns all the social activities where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching social activities
-
findByGroupId
Returns a range of all the social activities where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)- Returns:
- the range of matching social activities
-
findByGroupId
List<SocialActivity> findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activities
-
findByGroupId
List<SocialActivity> findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByGroupId_First
SocialActivity findByGroupId_First(long groupId, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the first social activity in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByGroupId_First
SocialActivity fetchByGroupId_First(long groupId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity, or
null
if a matching social activity could not be found
-
findByGroupId_Last
SocialActivity findByGroupId_Last(long groupId, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the last social activity in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByGroupId_Last
SocialActivity fetchByGroupId_Last(long groupId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity, or
null
if a matching social activity could not be found
-
findByGroupId_PrevAndNext
SocialActivity[] findByGroupId_PrevAndNext(long activityId, long groupId, OrderByComparator<SocialActivity> orderByComparator) throws 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 activitygroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity
- Throws:
NoSuchActivityException
- if a social activity with the primary key could not be found
-
removeByGroupId
void removeByGroupId(long groupId) Removes all the social activities where groupId = ? from the database.- Parameters:
groupId
- the group ID
-
countByGroupId
int countByGroupId(long groupId) Returns the number of social activities where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching social activities
-
findByCompanyId
Returns all the social activities where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching social activities
-
findByCompanyId
Returns a range of all the social activities where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)- Returns:
- the range of matching social activities
-
findByCompanyId
List<SocialActivity> findByCompanyId(long companyId, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activities
-
findByCompanyId
List<SocialActivity> findByCompanyId(long companyId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByCompanyId_First
SocialActivity findByCompanyId_First(long companyId, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the first social activity in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByCompanyId_First
SocialActivity fetchByCompanyId_First(long companyId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity, or
null
if a matching social activity could not be found
-
findByCompanyId_Last
SocialActivity findByCompanyId_Last(long companyId, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the last social activity in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByCompanyId_Last
SocialActivity fetchByCompanyId_Last(long companyId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity, or
null
if a matching social activity could not be found
-
findByCompanyId_PrevAndNext
SocialActivity[] findByCompanyId_PrevAndNext(long activityId, long companyId, OrderByComparator<SocialActivity> orderByComparator) throws 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 activitycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity
- Throws:
NoSuchActivityException
- if a social activity with the primary key could not be found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the social activities where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of social activities where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching social activities
-
findByUserId
Returns all the social activities where userId = ?.- Parameters:
userId
- the user ID- Returns:
- the matching social activities
-
findByUserId
Returns a range of all the social activities where userId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
userId
- the user IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)- Returns:
- the range of matching social activities
-
findByUserId
List<SocialActivity> findByUserId(long userId, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where userId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
userId
- the user IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activities
-
findByUserId
List<SocialActivity> findByUserId(long userId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where userId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
userId
- the user IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByUserId_First
SocialActivity findByUserId_First(long userId, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the first social activity in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByUserId_First
SocialActivity fetchByUserId_First(long userId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity, or
null
if a matching social activity could not be found
-
findByUserId_Last
SocialActivity findByUserId_Last(long userId, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the last social activity in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByUserId_Last
Returns the last social activity in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity, or
null
if a matching social activity could not be found
-
findByUserId_PrevAndNext
SocialActivity[] findByUserId_PrevAndNext(long activityId, long userId, OrderByComparator<SocialActivity> orderByComparator) throws 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 activityuserId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity
- Throws:
NoSuchActivityException
- if a social activity with the primary key could not be found
-
removeByUserId
void removeByUserId(long userId) Removes all the social activities where userId = ? from the database.- Parameters:
userId
- the user ID
-
countByUserId
int countByUserId(long userId) Returns the number of social activities where userId = ?.- Parameters:
userId
- the user ID- Returns:
- the number of matching social activities
-
findByActivitySetId
Returns all the social activities where activitySetId = ?.- Parameters:
activitySetId
- the activity set ID- Returns:
- the matching social activities
-
findByActivitySetId
Returns a range of all the social activities where activitySetId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
activitySetId
- the activity set IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)- Returns:
- the range of matching social activities
-
findByActivitySetId
List<SocialActivity> findByActivitySetId(long activitySetId, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where activitySetId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
activitySetId
- the activity set IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activities
-
findByActivitySetId
List<SocialActivity> findByActivitySetId(long activitySetId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where activitySetId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
activitySetId
- the activity set IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByActivitySetId_First
SocialActivity findByActivitySetId_First(long activitySetId, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the first social activity in the ordered set where activitySetId = ?.- Parameters:
activitySetId
- the activity set IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByActivitySetId_First
SocialActivity fetchByActivitySetId_First(long activitySetId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where activitySetId = ?.- Parameters:
activitySetId
- the activity set IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity, or
null
if a matching social activity could not be found
-
findByActivitySetId_Last
SocialActivity findByActivitySetId_Last(long activitySetId, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the last social activity in the ordered set where activitySetId = ?.- Parameters:
activitySetId
- the activity set IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByActivitySetId_Last
SocialActivity fetchByActivitySetId_Last(long activitySetId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where activitySetId = ?.- Parameters:
activitySetId
- the activity set IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity, or
null
if a matching social activity could not be found
-
findByActivitySetId_PrevAndNext
SocialActivity[] findByActivitySetId_PrevAndNext(long activityId, long activitySetId, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the social activities before and after the current social activity in the ordered set where activitySetId = ?.- Parameters:
activityId
- the primary key of the current social activityactivitySetId
- the activity set IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity
- Throws:
NoSuchActivityException
- if a social activity with the primary key could not be found
-
removeByActivitySetId
void removeByActivitySetId(long activitySetId) Removes all the social activities where activitySetId = ? from the database.- Parameters:
activitySetId
- the activity set ID
-
countByActivitySetId
int countByActivitySetId(long activitySetId) Returns the number of social activities where activitySetId = ?.- Parameters:
activitySetId
- the activity set ID- Returns:
- the number of matching social activities
-
findByMirrorActivityId
Returns the social activity where mirrorActivityId = ? or throws aNoSuchActivityException
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
-
fetchByMirrorActivityId
Returns the social activity where mirrorActivityId = ? or returnsnull
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
-
fetchByMirrorActivityId
Returns the social activity where mirrorActivityId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
mirrorActivityId
- the mirror activity IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching social activity, or
null
if a matching social activity could not be found
-
removeByMirrorActivityId
Removes the social activity where mirrorActivityId = ? from the database.- Parameters:
mirrorActivityId
- the mirror activity ID- Returns:
- the social activity that was removed
- Throws:
NoSuchActivityException
-
countByMirrorActivityId
int countByMirrorActivityId(long mirrorActivityId) Returns the number of social activities where mirrorActivityId = ?.- Parameters:
mirrorActivityId
- the mirror activity ID- Returns:
- the number of matching social activities
-
findByReceiverUserId
Returns all the social activities where receiverUserId = ?.- Parameters:
receiverUserId
- the receiver user ID- Returns:
- the matching social activities
-
findByReceiverUserId
Returns a range of all the social activities where receiverUserId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
receiverUserId
- the receiver user IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)- Returns:
- the range of matching social activities
-
findByReceiverUserId
List<SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where receiverUserId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
receiverUserId
- the receiver user IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activities
-
findByReceiverUserId
List<SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where receiverUserId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
receiverUserId
- the receiver user IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByReceiverUserId_First
SocialActivity findByReceiverUserId_First(long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the first social activity in the ordered set where receiverUserId = ?.- Parameters:
receiverUserId
- the receiver user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByReceiverUserId_First
SocialActivity fetchByReceiverUserId_First(long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where receiverUserId = ?.- Parameters:
receiverUserId
- the receiver user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity, or
null
if a matching social activity could not be found
-
findByReceiverUserId_Last
SocialActivity findByReceiverUserId_Last(long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the last social activity in the ordered set where receiverUserId = ?.- Parameters:
receiverUserId
- the receiver user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByReceiverUserId_Last
SocialActivity fetchByReceiverUserId_Last(long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where receiverUserId = ?.- Parameters:
receiverUserId
- the receiver user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity, or
null
if a matching social activity could not be found
-
findByReceiverUserId_PrevAndNext
SocialActivity[] findByReceiverUserId_PrevAndNext(long activityId, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) throws 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 activityreceiverUserId
- the receiver user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity
- Throws:
NoSuchActivityException
- if a social activity with the primary key could not be found
-
removeByReceiverUserId
void removeByReceiverUserId(long receiverUserId) Removes all the social activities where receiverUserId = ? from the database.- Parameters:
receiverUserId
- the receiver user ID
-
countByReceiverUserId
int countByReceiverUserId(long receiverUserId) Returns the number of social activities where receiverUserId = ?.- Parameters:
receiverUserId
- the receiver user ID- Returns:
- the number of matching social activities
-
findByC_CN
Returns all the social activities where companyId = ? and classNameId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name ID- Returns:
- the matching social activities
-
findByC_CN
Returns a range of all the social activities where companyId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
companyId
- the company IDclassNameId
- the class name IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)- Returns:
- the range of matching social activities
-
findByC_CN
List<SocialActivity> findByC_CN(long companyId, long classNameId, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where companyId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
companyId
- the company IDclassNameId
- the class name IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activities
-
findByC_CN
List<SocialActivity> findByC_CN(long companyId, long classNameId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where companyId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
companyId
- the company IDclassNameId
- the class name IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByC_CN_First
SocialActivity findByC_CN_First(long companyId, long classNameId, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the first social activity in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByC_CN_First
SocialActivity fetchByC_CN_First(long companyId, long classNameId, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity, or
null
if a matching social activity could not be found
-
findByC_CN_Last
SocialActivity findByC_CN_Last(long companyId, long classNameId, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the last social activity in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByC_CN_Last
SocialActivity fetchByC_CN_Last(long companyId, long classNameId, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity, or
null
if a matching social activity could not be found
-
findByC_CN_PrevAndNext
SocialActivity[] findByC_CN_PrevAndNext(long activityId, long companyId, long classNameId, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the social activities before and after the current social activity in the ordered set where companyId = ? and classNameId = ?.- Parameters:
activityId
- the primary key of the current social activitycompanyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity
- Throws:
NoSuchActivityException
- if a social activity with the primary key could not be found
-
removeByC_CN
void removeByC_CN(long companyId, long classNameId) Removes all the social activities where companyId = ? and classNameId = ? from the database.- Parameters:
companyId
- the company IDclassNameId
- the class name ID
-
countByC_CN
int countByC_CN(long companyId, long classNameId) Returns the number of social activities where companyId = ? and classNameId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name ID- Returns:
- the number of matching social activities
-
findByC_C
Returns all the social activities where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching social activities
-
findByC_C
Returns a range of all the social activities where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)- Returns:
- the range of matching social activities
-
findByC_C
List<SocialActivity> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivity> orderByComparator) 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activities
-
findByC_C
List<SocialActivity> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByC_C_First
SocialActivity findByC_C_First(long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByC_C_First
SocialActivity fetchByC_C_First(long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity, or
null
if a matching social activity could not be found
-
findByC_C_Last
SocialActivity findByC_C_Last(long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the last social activity in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByC_C_Last
SocialActivity fetchByC_C_Last(long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity, or
null
if a matching social activity could not be found
-
findByC_C_PrevAndNext
SocialActivity[] findByC_C_PrevAndNext(long activityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) throws 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 activityclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity
- Throws:
NoSuchActivityException
- if a social activity with the primary key could not be found
-
removeByC_C
void removeByC_C(long classNameId, long classPK) Removes all the social activities where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pk
-
countByC_C
int countByC_C(long classNameId, long classPK) Returns the number of social activities where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching social activities
-
findByM_C_C
Returns all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.- Parameters:
mirrorActivityId
- the mirror activity IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching social activities
-
findByM_C_C
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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
mirrorActivityId
- the mirror activity IDclassNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)- Returns:
- the range of matching social activities
-
findByM_C_C
List<SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivity> orderByComparator) 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
mirrorActivityId
- the mirror activity IDclassNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activities
-
findByM_C_C
List<SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
mirrorActivityId
- the mirror activity IDclassNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByM_C_C_First
SocialActivity findByM_C_C_First(long mirrorActivityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.- Parameters:
mirrorActivityId
- the mirror activity IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByM_C_C_First
SocialActivity fetchByM_C_C_First(long mirrorActivityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.- Parameters:
mirrorActivityId
- the mirror activity IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity, or
null
if a matching social activity could not be found
-
findByM_C_C_Last
SocialActivity findByM_C_C_Last(long mirrorActivityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.- Parameters:
mirrorActivityId
- the mirror activity IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByM_C_C_Last
SocialActivity fetchByM_C_C_Last(long mirrorActivityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.- Parameters:
mirrorActivityId
- the mirror activity IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity, or
null
if a matching social activity could not be found
-
findByM_C_C_PrevAndNext
SocialActivity[] findByM_C_C_PrevAndNext(long activityId, long mirrorActivityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator) throws 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 activitymirrorActivityId
- the mirror activity IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity
- Throws:
NoSuchActivityException
- if a social activity with the primary key could not be found
-
removeByM_C_C
void removeByM_C_C(long mirrorActivityId, long classNameId, long classPK) Removes all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ? from the database.- Parameters:
mirrorActivityId
- the mirror activity IDclassNameId
- the class name IDclassPK
- the class pk
-
countByM_C_C
int countByM_C_C(long mirrorActivityId, long classNameId, long classPK) Returns the number of social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.- Parameters:
mirrorActivityId
- the mirror activity IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching social activities
-
findByC_C_T
Returns all the social activities where classNameId = ? and classPK = ? and type = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pktype
- the type- Returns:
- the matching social activities
-
findByC_C_T
Returns a range of all the social activities where classNameId = ? and classPK = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pktype
- the typestart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)- Returns:
- the range of matching social activities
-
findByC_C_T
List<SocialActivity> findByC_C_T(long classNameId, long classPK, int type, int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities where classNameId = ? and classPK = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pktype
- the typestart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activities
-
findByC_C_T
List<SocialActivity> findByC_C_T(long classNameId, long classPK, int type, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where classNameId = ? and classPK = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pktype
- the typestart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByC_C_T_First
SocialActivity findByC_C_T_First(long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the first social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pktype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByC_C_T_First
SocialActivity fetchByC_C_T_First(long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator) Returns the first social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pktype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity, or
null
if a matching social activity could not be found
-
findByC_C_T_Last
SocialActivity findByC_C_T_Last(long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the last social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pktype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByC_C_T_Last
SocialActivity fetchByC_C_T_Last(long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator) Returns the last social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pktype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity, or
null
if a matching social activity could not be found
-
findByC_C_T_PrevAndNext
SocialActivity[] findByC_C_T_PrevAndNext(long activityId, long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator) throws NoSuchActivityException Returns the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.- Parameters:
activityId
- the primary key of the current social activityclassNameId
- the class name IDclassPK
- the class pktype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity
- Throws:
NoSuchActivityException
- if a social activity with the primary key could not be found
-
removeByC_C_T
void removeByC_C_T(long classNameId, long classPK, int type) Removes all the social activities where classNameId = ? and classPK = ? and type = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pktype
- the type
-
countByC_C_T
int countByC_C_T(long classNameId, long classPK, int type) Returns the number of social activities where classNameId = ? and classPK = ? and type = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pktype
- the type- Returns:
- the number of matching social activities
-
findByG_U_C_C_T_R
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 = ?.- Parameters:
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user ID- Returns:
- the matching social activities
-
findByG_U_C_C_T_R
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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)- Returns:
- the range of matching social activities
-
findByG_U_C_C_T_R
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<SocialActivity> orderByComparator) 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activities
-
findByG_U_C_C_T_R
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<SocialActivity> orderByComparator, boolean useFinderCache) 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user IDstart
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByG_U_C_C_T_R_First
SocialActivity findByG_U_C_C_T_R_First(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) throws 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 IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByG_U_C_C_T_R_First
SocialActivity fetchByG_U_C_C_T_R_First(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) 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 IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity, or
null
if a matching social activity could not be found
-
findByG_U_C_C_T_R_Last
SocialActivity findByG_U_C_C_T_R_Last(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) throws 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 IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByG_U_C_C_T_R_Last
SocialActivity fetchByG_U_C_C_T_R_Last(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) 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 IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity, or
null
if a matching social activity could not be found
-
findByG_U_C_C_T_R_PrevAndNext
SocialActivity[] findByG_U_C_C_T_R_PrevAndNext(long activityId, long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator) throws 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 activitygroupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity
- Throws:
NoSuchActivityException
- if a social activity with the primary key could not be found
-
removeByG_U_C_C_T_R
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.- Parameters:
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user ID
-
countByG_U_C_C_T_R
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 = ?.- Parameters:
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user ID- Returns:
- the number of matching social activities
-
findByG_U_CD_C_C_T_R
SocialActivity findByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId) throws NoSuchActivityException Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or throws aNoSuchActivityException
if it could not be found.- Parameters:
groupId
- the group IDuserId
- the user IDcreateDate
- the create dateclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user ID- Returns:
- the matching social activity
- Throws:
NoSuchActivityException
- if a matching social activity could not be found
-
fetchByG_U_CD_C_C_T_R
SocialActivity fetchByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId) Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
groupId
- the group IDuserId
- the user IDcreateDate
- the create dateclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user ID- Returns:
- the matching social activity, or
null
if a matching social activity could not be found
-
fetchByG_U_CD_C_C_T_R
SocialActivity fetchByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId, boolean useFinderCache) Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
groupId
- the group IDuserId
- the user IDcreateDate
- the create dateclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching social activity, or
null
if a matching social activity could not be found
-
removeByG_U_CD_C_C_T_R
SocialActivity removeByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId) throws 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 IDuserId
- the user IDcreateDate
- the create dateclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user ID- Returns:
- the social activity that was removed
- Throws:
NoSuchActivityException
-
countByG_U_CD_C_C_T_R
int countByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId) Returns the number of social activities where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.- Parameters:
groupId
- the group IDuserId
- the user IDcreateDate
- the create dateclassNameId
- the class name IDclassPK
- the class pktype
- the typereceiverUserId
- the receiver user ID- Returns:
- the number of matching social activities
-
cacheResult
Caches the social activity in the entity cache if it is enabled.- Parameters:
socialActivity
- the social activity
-
cacheResult
Caches the social activities in the entity cache if it is enabled.- Parameters:
socialActivities
- the social activities
-
create
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
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
-
updateImpl
-
findByPrimaryKey
Returns the social activity with the primary key or throws aNoSuchActivityException
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
-
fetchByPrimaryKey
Returns the social activity with the primary key or returnsnull
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
-
findAll
List<SocialActivity> findAll()Returns all the social activities.- Returns:
- the social activities
-
findAll
Returns a range of all the social activities.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
start
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)- Returns:
- the range of social activities
-
findAll
List<SocialActivity> findAll(int start, int end, OrderByComparator<SocialActivity> orderByComparator) Returns an ordered range of all the social activities.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
start
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of social activities
-
findAll
List<SocialActivity> findAll(int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl
.- Parameters:
start
- the lower bound of the range of social activitiesend
- the upper bound of the range of social activities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of social activities
-
removeAll
void removeAll()Removes all the social activities from the database. -
countAll
int countAll()Returns the number of social activities.- Returns:
- the number of social activities
-