Class SocialActivityAchievementUtil
com.liferay.portlet.social.service.persistence.impl.SocialActivityAchievementPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(SocialActivityAchievement socialActivityAchievement) Caches the social activity achievement in the entity cache if it is enabled.static voidcacheResult(List<SocialActivityAchievement> socialActivityAchievements) Caches the social activity achievements in the entity cache if it is enabled.static voidstatic voidclearCache(SocialActivityAchievement socialActivityAchievement) static intcountAll()Returns the number of social activity achievements.static intcountByG_F(long groupId, boolean firstInGroup) Returns the number of social activity achievements where groupId = ? and firstInGroup = ?.static intcountByG_N(long groupId, String name) Returns the number of social activity achievements where groupId = ? and name = ?.static intcountByG_U(long groupId, long userId) Returns the number of social activity achievements where groupId = ? and userId = ?.static intcountByG_U_F(long groupId, long userId, boolean firstInGroup) Returns the number of social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.static intcountByG_U_N(long groupId, long userId, String name) Returns the number of social activity achievements where groupId = ? and userId = ? and name = ?.static intcountByGroupId(long groupId) Returns the number of social activity achievements where groupId = ?.static longcountWithDynamicQuery(DynamicQuery dynamicQuery) static SocialActivityAchievementcreate(long activityAchievementId) Creates a new social activity achievement with the primary key.static SocialActivityAchievementfetchByG_F_First(long groupId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.static SocialActivityAchievementfetchByG_F_Last(long groupId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.static SocialActivityAchievementfetchByG_N_First(long groupId, String name, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the first social activity achievement in the ordered set where groupId = ? and name = ?.static SocialActivityAchievementfetchByG_N_Last(long groupId, String name, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the last social activity achievement in the ordered set where groupId = ? and name = ?.static SocialActivityAchievementfetchByG_U_F_First(long groupId, long userId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.static SocialActivityAchievementfetchByG_U_F_Last(long groupId, long userId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.static SocialActivityAchievementfetchByG_U_First(long groupId, long userId, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?.static SocialActivityAchievementfetchByG_U_Last(long groupId, long userId, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?.static SocialActivityAchievementfetchByG_U_N(long groupId, long userId, String name) Returns the social activity achievement where groupId = ? and userId = ? and name = ? or returnsnullif it could not be found.static SocialActivityAchievementfetchByG_U_N(long groupId, long userId, String name, boolean useFinderCache) Returns the social activity achievement where groupId = ? and userId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.static SocialActivityAchievementfetchByGroupId_First(long groupId, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the first social activity achievement in the ordered set where groupId = ?.static SocialActivityAchievementfetchByGroupId_Last(long groupId, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the last social activity achievement in the ordered set where groupId = ?.static SocialActivityAchievementfetchByPrimaryKey(long activityAchievementId) Returns the social activity achievement with the primary key or returnsnullif it could not be found.static Map<Serializable,SocialActivityAchievement> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<SocialActivityAchievement>findAll()Returns all the social activity achievements.static List<SocialActivityAchievement>findAll(int start, int end) Returns a range of all the social activity achievements.static List<SocialActivityAchievement>findAll(int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns an ordered range of all the social activity achievements.static List<SocialActivityAchievement>findAll(int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity achievements.static List<SocialActivityAchievement>findByG_F(long groupId, boolean firstInGroup) Returns all the social activity achievements where groupId = ? and firstInGroup = ?.static List<SocialActivityAchievement>findByG_F(long groupId, boolean firstInGroup, int start, int end) Returns a range of all the social activity achievements where groupId = ? and firstInGroup = ?.static List<SocialActivityAchievement>findByG_F(long groupId, boolean firstInGroup, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?.static List<SocialActivityAchievement>findByG_F(long groupId, boolean firstInGroup, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?.static SocialActivityAchievementfindByG_F_First(long groupId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.static SocialActivityAchievementfindByG_F_Last(long groupId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.static SocialActivityAchievement[]findByG_F_PrevAndNext(long activityAchievementId, long groupId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.static List<SocialActivityAchievement>Returns all the social activity achievements where groupId = ? and name = ?.static List<SocialActivityAchievement>Returns a range of all the social activity achievements where groupId = ? and name = ?.static List<SocialActivityAchievement>findByG_N(long groupId, String name, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns an ordered range of all the social activity achievements where groupId = ? and name = ?.static List<SocialActivityAchievement>findByG_N(long groupId, String name, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity achievements where groupId = ? and name = ?.static SocialActivityAchievementfindByG_N_First(long groupId, String name, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the first social activity achievement in the ordered set where groupId = ? and name = ?.static SocialActivityAchievementfindByG_N_Last(long groupId, String name, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the last social activity achievement in the ordered set where groupId = ? and name = ?.static SocialActivityAchievement[]findByG_N_PrevAndNext(long activityAchievementId, long groupId, String name, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and name = ?.static List<SocialActivityAchievement>findByG_U(long groupId, long userId) Returns all the social activity achievements where groupId = ? and userId = ?.static List<SocialActivityAchievement>findByG_U(long groupId, long userId, int start, int end) Returns a range of all the social activity achievements where groupId = ? and userId = ?.static List<SocialActivityAchievement>findByG_U(long groupId, long userId, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?.static List<SocialActivityAchievement>findByG_U(long groupId, long userId, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?.static List<SocialActivityAchievement>findByG_U_F(long groupId, long userId, boolean firstInGroup) Returns all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.static List<SocialActivityAchievement>findByG_U_F(long groupId, long userId, boolean firstInGroup, int start, int end) Returns a range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.static List<SocialActivityAchievement>findByG_U_F(long groupId, long userId, boolean firstInGroup, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns an ordered range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.static List<SocialActivityAchievement>findByG_U_F(long groupId, long userId, boolean firstInGroup, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.static SocialActivityAchievementfindByG_U_F_First(long groupId, long userId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.static SocialActivityAchievementfindByG_U_F_Last(long groupId, long userId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.static SocialActivityAchievement[]findByG_U_F_PrevAndNext(long activityAchievementId, long groupId, long userId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.static SocialActivityAchievementfindByG_U_First(long groupId, long userId, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?.static SocialActivityAchievementfindByG_U_Last(long groupId, long userId, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?.static SocialActivityAchievementfindByG_U_N(long groupId, long userId, String name) Returns the social activity achievement where groupId = ? and userId = ? and name = ? or throws aNoSuchActivityAchievementExceptionif it could not be found.static SocialActivityAchievement[]findByG_U_PrevAndNext(long activityAchievementId, long groupId, long userId, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ?.static List<SocialActivityAchievement>findByGroupId(long groupId) Returns all the social activity achievements where groupId = ?.static List<SocialActivityAchievement>findByGroupId(long groupId, int start, int end) Returns a range of all the social activity achievements where groupId = ?.static List<SocialActivityAchievement>findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns an ordered range of all the social activity achievements where groupId = ?.static List<SocialActivityAchievement>findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity achievements where groupId = ?.static SocialActivityAchievementfindByGroupId_First(long groupId, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the first social activity achievement in the ordered set where groupId = ?.static SocialActivityAchievementfindByGroupId_Last(long groupId, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the last social activity achievement in the ordered set where groupId = ?.static SocialActivityAchievement[]findByGroupId_PrevAndNext(long activityAchievementId, long groupId, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ?.static SocialActivityAchievementfindByPrimaryKey(long activityAchievementId) Returns the social activity achievement with the primary key or throws aNoSuchActivityAchievementExceptionif it could not be found.static List<SocialActivityAchievement>findWithDynamicQuery(DynamicQuery dynamicQuery) static List<SocialActivityAchievement>findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) static List<SocialActivityAchievement>findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator) static SocialActivityAchievementremove(long activityAchievementId) Removes the social activity achievement with the primary key from the database.static voidRemoves all the social activity achievements from the database.static voidremoveByG_F(long groupId, boolean firstInGroup) Removes all the social activity achievements where groupId = ? and firstInGroup = ? from the database.static voidremoveByG_N(long groupId, String name) Removes all the social activity achievements where groupId = ? and name = ? from the database.static voidremoveByG_U(long groupId, long userId) Removes all the social activity achievements where groupId = ? and userId = ? from the database.static voidremoveByG_U_F(long groupId, long userId, boolean firstInGroup) Removes all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ? from the database.static SocialActivityAchievementremoveByG_U_N(long groupId, long userId, String name) Removes the social activity achievement where groupId = ? and userId = ? and name = ? from the database.static voidremoveByGroupId(long groupId) Removes all the social activity achievements where groupId = ? from the database.static voidsetPersistence(SocialActivityAchievementPersistence persistence) static SocialActivityAchievementupdate(SocialActivityAchievement socialActivityAchievement) static SocialActivityAchievementupdate(SocialActivityAchievement socialActivityAchievement, ServiceContext serviceContext) static SocialActivityAchievementupdateImpl(SocialActivityAchievement socialActivityAchievement)
-
Constructor Details
-
SocialActivityAchievementUtil
public SocialActivityAchievementUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
public static Map<Serializable,SocialActivityAchievement> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<SocialActivityAchievement> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) -
findWithDynamicQuery
public static List<SocialActivityAchievement> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator) -
update
-
update
public static SocialActivityAchievement update(SocialActivityAchievement socialActivityAchievement, ServiceContext serviceContext) -
findByGroupId
Returns all the social activity achievements where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching social activity achievements
-
findByGroupId
Returns a range of all the social activity achievements where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (not inclusive)- Returns:
- the range of matching social activity achievements
-
findByGroupId
public static List<SocialActivityAchievement> findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns an ordered range of all the social activity achievements where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching social activity achievements
-
findByGroupId
public static List<SocialActivityAchievement> findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity achievements where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (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 activity achievements
-
findByGroupId_First
public static SocialActivityAchievement findByGroupId_First(long groupId, OrderByComparator<SocialActivityAchievement> orderByComparator) throws NoSuchActivityAchievementException Returns the first social activity achievement 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 achievement
- Throws:
NoSuchActivityAchievementException- if a matching social activity achievement could not be foundNoSuchActivityAchievementException
-
fetchByGroupId_First
public static SocialActivityAchievement fetchByGroupId_First(long groupId, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the first social activity achievement 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 achievement, or
nullif a matching social activity achievement could not be found
-
findByGroupId_Last
public static SocialActivityAchievement findByGroupId_Last(long groupId, OrderByComparator<SocialActivityAchievement> orderByComparator) throws NoSuchActivityAchievementException Returns the last social activity achievement 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 achievement
- Throws:
NoSuchActivityAchievementException- if a matching social activity achievement could not be foundNoSuchActivityAchievementException
-
fetchByGroupId_Last
public static SocialActivityAchievement fetchByGroupId_Last(long groupId, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the last social activity achievement 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 achievement, or
nullif a matching social activity achievement could not be found
-
findByGroupId_PrevAndNext
public static SocialActivityAchievement[] findByGroupId_PrevAndNext(long activityAchievementId, long groupId, OrderByComparator<SocialActivityAchievement> orderByComparator) throws NoSuchActivityAchievementException Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ?.- Parameters:
activityAchievementId- the primary key of the current social activity achievementgroupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next social activity achievement
- Throws:
NoSuchActivityAchievementException- if a social activity achievement with the primary key could not be foundNoSuchActivityAchievementException
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the social activity achievements where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of social activity achievements where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching social activity achievements
-
findByG_U
Returns all the social activity achievements where groupId = ? and userId = ?.- Parameters:
groupId- the group IDuserId- the user ID- Returns:
- the matching social activity achievements
-
findByG_U
public static List<SocialActivityAchievement> findByG_U(long groupId, long userId, int start, int end) Returns a range of all the social activity achievements where groupId = ? and userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
groupId- the group IDuserId- the user IDstart- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (not inclusive)- Returns:
- the range of matching social activity achievements
-
findByG_U
public static List<SocialActivityAchievement> findByG_U(long groupId, long userId, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
groupId- the group IDuserId- the user IDstart- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching social activity achievements
-
findByG_U
public static List<SocialActivityAchievement> findByG_U(long groupId, long userId, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
groupId- the group IDuserId- the user IDstart- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (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 activity achievements
-
findByG_U_First
public static SocialActivityAchievement findByG_U_First(long groupId, long userId, OrderByComparator<SocialActivityAchievement> orderByComparator) throws NoSuchActivityAchievementException Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?.- Parameters:
groupId- the group IDuserId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity achievement
- Throws:
NoSuchActivityAchievementException- if a matching social activity achievement could not be foundNoSuchActivityAchievementException
-
fetchByG_U_First
public static SocialActivityAchievement fetchByG_U_First(long groupId, long userId, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?.- Parameters:
groupId- the group IDuserId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity achievement, or
nullif a matching social activity achievement could not be found
-
findByG_U_Last
public static SocialActivityAchievement findByG_U_Last(long groupId, long userId, OrderByComparator<SocialActivityAchievement> orderByComparator) throws NoSuchActivityAchievementException Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?.- Parameters:
groupId- the group IDuserId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social activity achievement
- Throws:
NoSuchActivityAchievementException- if a matching social activity achievement could not be foundNoSuchActivityAchievementException
-
fetchByG_U_Last
public static SocialActivityAchievement fetchByG_U_Last(long groupId, long userId, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?.- Parameters:
groupId- the group IDuserId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social activity achievement, or
nullif a matching social activity achievement could not be found
-
findByG_U_PrevAndNext
public static SocialActivityAchievement[] findByG_U_PrevAndNext(long activityAchievementId, long groupId, long userId, OrderByComparator<SocialActivityAchievement> orderByComparator) throws NoSuchActivityAchievementException Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ?.- Parameters:
activityAchievementId- the primary key of the current social activity achievementgroupId- the group IDuserId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next social activity achievement
- Throws:
NoSuchActivityAchievementException- if a social activity achievement with the primary key could not be foundNoSuchActivityAchievementException
-
removeByG_U
public static void removeByG_U(long groupId, long userId) Removes all the social activity achievements where groupId = ? and userId = ? from the database.- Parameters:
groupId- the group IDuserId- the user ID
-
countByG_U
public static int countByG_U(long groupId, long userId) Returns the number of social activity achievements where groupId = ? and userId = ?.- Parameters:
groupId- the group IDuserId- the user ID- Returns:
- the number of matching social activity achievements
-
findByG_N
Returns all the social activity achievements where groupId = ? and name = ?.- Parameters:
groupId- the group IDname- the name- Returns:
- the matching social activity achievements
-
findByG_N
public static List<SocialActivityAchievement> findByG_N(long groupId, String name, int start, int end) Returns a range of all the social activity achievements where groupId = ? and name = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
groupId- the group IDname- the namestart- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (not inclusive)- Returns:
- the range of matching social activity achievements
-
findByG_N
public static List<SocialActivityAchievement> findByG_N(long groupId, String name, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns an ordered range of all the social activity achievements where groupId = ? and name = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
groupId- the group IDname- the namestart- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching social activity achievements
-
findByG_N
public static List<SocialActivityAchievement> findByG_N(long groupId, String name, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity achievements where groupId = ? and name = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
groupId- the group IDname- the namestart- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (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 activity achievements
-
findByG_N_First
public static SocialActivityAchievement findByG_N_First(long groupId, String name, OrderByComparator<SocialActivityAchievement> orderByComparator) throws NoSuchActivityAchievementException Returns the first social activity achievement in the ordered set where groupId = ? and name = ?.- Parameters:
groupId- the group IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity achievement
- Throws:
NoSuchActivityAchievementException- if a matching social activity achievement could not be foundNoSuchActivityAchievementException
-
fetchByG_N_First
public static SocialActivityAchievement fetchByG_N_First(long groupId, String name, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the first social activity achievement in the ordered set where groupId = ? and name = ?.- Parameters:
groupId- the group IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity achievement, or
nullif a matching social activity achievement could not be found
-
findByG_N_Last
public static SocialActivityAchievement findByG_N_Last(long groupId, String name, OrderByComparator<SocialActivityAchievement> orderByComparator) throws NoSuchActivityAchievementException Returns the last social activity achievement in the ordered set where groupId = ? and name = ?.- Parameters:
groupId- the group IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social activity achievement
- Throws:
NoSuchActivityAchievementException- if a matching social activity achievement could not be foundNoSuchActivityAchievementException
-
fetchByG_N_Last
public static SocialActivityAchievement fetchByG_N_Last(long groupId, String name, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the last social activity achievement in the ordered set where groupId = ? and name = ?.- Parameters:
groupId- the group IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social activity achievement, or
nullif a matching social activity achievement could not be found
-
findByG_N_PrevAndNext
public static SocialActivityAchievement[] findByG_N_PrevAndNext(long activityAchievementId, long groupId, String name, OrderByComparator<SocialActivityAchievement> orderByComparator) throws NoSuchActivityAchievementException Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and name = ?.- Parameters:
activityAchievementId- the primary key of the current social activity achievementgroupId- the group IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next social activity achievement
- Throws:
NoSuchActivityAchievementException- if a social activity achievement with the primary key could not be foundNoSuchActivityAchievementException
-
removeByG_N
Removes all the social activity achievements where groupId = ? and name = ? from the database.- Parameters:
groupId- the group IDname- the name
-
countByG_N
Returns the number of social activity achievements where groupId = ? and name = ?.- Parameters:
groupId- the group IDname- the name- Returns:
- the number of matching social activity achievements
-
findByG_F
Returns all the social activity achievements where groupId = ? and firstInGroup = ?.- Parameters:
groupId- the group IDfirstInGroup- the first in group- Returns:
- the matching social activity achievements
-
findByG_F
public static List<SocialActivityAchievement> findByG_F(long groupId, boolean firstInGroup, int start, int end) Returns a range of all the social activity achievements where groupId = ? and firstInGroup = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
groupId- the group IDfirstInGroup- the first in groupstart- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (not inclusive)- Returns:
- the range of matching social activity achievements
-
findByG_F
public static List<SocialActivityAchievement> findByG_F(long groupId, boolean firstInGroup, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
groupId- the group IDfirstInGroup- the first in groupstart- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching social activity achievements
-
findByG_F
public static List<SocialActivityAchievement> findByG_F(long groupId, boolean firstInGroup, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
groupId- the group IDfirstInGroup- the first in groupstart- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (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 activity achievements
-
findByG_F_First
public static SocialActivityAchievement findByG_F_First(long groupId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) throws NoSuchActivityAchievementException Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.- Parameters:
groupId- the group IDfirstInGroup- the first in grouporderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity achievement
- Throws:
NoSuchActivityAchievementException- if a matching social activity achievement could not be foundNoSuchActivityAchievementException
-
fetchByG_F_First
public static SocialActivityAchievement fetchByG_F_First(long groupId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.- Parameters:
groupId- the group IDfirstInGroup- the first in grouporderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity achievement, or
nullif a matching social activity achievement could not be found
-
findByG_F_Last
public static SocialActivityAchievement findByG_F_Last(long groupId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) throws NoSuchActivityAchievementException Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.- Parameters:
groupId- the group IDfirstInGroup- the first in grouporderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social activity achievement
- Throws:
NoSuchActivityAchievementException- if a matching social activity achievement could not be foundNoSuchActivityAchievementException
-
fetchByG_F_Last
public static SocialActivityAchievement fetchByG_F_Last(long groupId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.- Parameters:
groupId- the group IDfirstInGroup- the first in grouporderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social activity achievement, or
nullif a matching social activity achievement could not be found
-
findByG_F_PrevAndNext
public static SocialActivityAchievement[] findByG_F_PrevAndNext(long activityAchievementId, long groupId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) throws NoSuchActivityAchievementException Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.- Parameters:
activityAchievementId- the primary key of the current social activity achievementgroupId- the group IDfirstInGroup- the first in grouporderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next social activity achievement
- Throws:
NoSuchActivityAchievementException- if a social activity achievement with the primary key could not be foundNoSuchActivityAchievementException
-
removeByG_F
public static void removeByG_F(long groupId, boolean firstInGroup) Removes all the social activity achievements where groupId = ? and firstInGroup = ? from the database.- Parameters:
groupId- the group IDfirstInGroup- the first in group
-
countByG_F
public static int countByG_F(long groupId, boolean firstInGroup) Returns the number of social activity achievements where groupId = ? and firstInGroup = ?.- Parameters:
groupId- the group IDfirstInGroup- the first in group- Returns:
- the number of matching social activity achievements
-
findByG_U_N
public static SocialActivityAchievement findByG_U_N(long groupId, long userId, String name) throws NoSuchActivityAchievementException Returns the social activity achievement where groupId = ? and userId = ? and name = ? or throws aNoSuchActivityAchievementExceptionif it could not be found.- Parameters:
groupId- the group IDuserId- the user IDname- the name- Returns:
- the matching social activity achievement
- Throws:
NoSuchActivityAchievementException- if a matching social activity achievement could not be foundNoSuchActivityAchievementException
-
fetchByG_U_N
Returns the social activity achievement where groupId = ? and userId = ? and name = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
groupId- the group IDuserId- the user IDname- the name- Returns:
- the matching social activity achievement, or
nullif a matching social activity achievement could not be found
-
fetchByG_U_N
public static SocialActivityAchievement fetchByG_U_N(long groupId, long userId, String name, boolean useFinderCache) Returns the social activity achievement where groupId = ? and userId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
groupId- the group IDuserId- the user IDname- the nameuseFinderCache- whether to use the finder cache- Returns:
- the matching social activity achievement, or
nullif a matching social activity achievement could not be found
-
removeByG_U_N
public static SocialActivityAchievement removeByG_U_N(long groupId, long userId, String name) throws NoSuchActivityAchievementException Removes the social activity achievement where groupId = ? and userId = ? and name = ? from the database.- Parameters:
groupId- the group IDuserId- the user IDname- the name- Returns:
- the social activity achievement that was removed
- Throws:
NoSuchActivityAchievementException
-
countByG_U_N
Returns the number of social activity achievements where groupId = ? and userId = ? and name = ?.- Parameters:
groupId- the group IDuserId- the user IDname- the name- Returns:
- the number of matching social activity achievements
-
findByG_U_F
public static List<SocialActivityAchievement> findByG_U_F(long groupId, long userId, boolean firstInGroup) Returns all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.- Parameters:
groupId- the group IDuserId- the user IDfirstInGroup- the first in group- Returns:
- the matching social activity achievements
-
findByG_U_F
public static List<SocialActivityAchievement> findByG_U_F(long groupId, long userId, boolean firstInGroup, int start, int end) Returns a range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
groupId- the group IDuserId- the user IDfirstInGroup- the first in groupstart- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (not inclusive)- Returns:
- the range of matching social activity achievements
-
findByG_U_F
public static List<SocialActivityAchievement> findByG_U_F(long groupId, long userId, boolean firstInGroup, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns an ordered range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
groupId- the group IDuserId- the user IDfirstInGroup- the first in groupstart- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching social activity achievements
-
findByG_U_F
public static List<SocialActivityAchievement> findByG_U_F(long groupId, long userId, boolean firstInGroup, int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
groupId- the group IDuserId- the user IDfirstInGroup- the first in groupstart- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (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 activity achievements
-
findByG_U_F_First
public static SocialActivityAchievement findByG_U_F_First(long groupId, long userId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) throws NoSuchActivityAchievementException Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.- Parameters:
groupId- the group IDuserId- the user IDfirstInGroup- the first in grouporderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity achievement
- Throws:
NoSuchActivityAchievementException- if a matching social activity achievement could not be foundNoSuchActivityAchievementException
-
fetchByG_U_F_First
public static SocialActivityAchievement fetchByG_U_F_First(long groupId, long userId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.- Parameters:
groupId- the group IDuserId- the user IDfirstInGroup- the first in grouporderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity achievement, or
nullif a matching social activity achievement could not be found
-
findByG_U_F_Last
public static SocialActivityAchievement findByG_U_F_Last(long groupId, long userId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) throws NoSuchActivityAchievementException Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.- Parameters:
groupId- the group IDuserId- the user IDfirstInGroup- the first in grouporderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social activity achievement
- Throws:
NoSuchActivityAchievementException- if a matching social activity achievement could not be foundNoSuchActivityAchievementException
-
fetchByG_U_F_Last
public static SocialActivityAchievement fetchByG_U_F_Last(long groupId, long userId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.- Parameters:
groupId- the group IDuserId- the user IDfirstInGroup- the first in grouporderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social activity achievement, or
nullif a matching social activity achievement could not be found
-
findByG_U_F_PrevAndNext
public static SocialActivityAchievement[] findByG_U_F_PrevAndNext(long activityAchievementId, long groupId, long userId, boolean firstInGroup, OrderByComparator<SocialActivityAchievement> orderByComparator) throws NoSuchActivityAchievementException Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.- Parameters:
activityAchievementId- the primary key of the current social activity achievementgroupId- the group IDuserId- the user IDfirstInGroup- the first in grouporderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next social activity achievement
- Throws:
NoSuchActivityAchievementException- if a social activity achievement with the primary key could not be foundNoSuchActivityAchievementException
-
removeByG_U_F
public static void removeByG_U_F(long groupId, long userId, boolean firstInGroup) Removes all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ? from the database.- Parameters:
groupId- the group IDuserId- the user IDfirstInGroup- the first in group
-
countByG_U_F
public static int countByG_U_F(long groupId, long userId, boolean firstInGroup) Returns the number of social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.- Parameters:
groupId- the group IDuserId- the user IDfirstInGroup- the first in group- Returns:
- the number of matching social activity achievements
-
cacheResult
Caches the social activity achievement in the entity cache if it is enabled.- Parameters:
socialActivityAchievement- the social activity achievement
-
cacheResult
Caches the social activity achievements in the entity cache if it is enabled.- Parameters:
socialActivityAchievements- the social activity achievements
-
create
Creates a new social activity achievement with the primary key. Does not add the social activity achievement to the database.- Parameters:
activityAchievementId- the primary key for the new social activity achievement- Returns:
- the new social activity achievement
-
remove
public static SocialActivityAchievement remove(long activityAchievementId) throws NoSuchActivityAchievementException Removes the social activity achievement with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
activityAchievementId- the primary key of the social activity achievement- Returns:
- the social activity achievement that was removed
- Throws:
NoSuchActivityAchievementException- if a social activity achievement with the primary key could not be foundNoSuchActivityAchievementException
-
updateImpl
public static SocialActivityAchievement updateImpl(SocialActivityAchievement socialActivityAchievement) -
findByPrimaryKey
public static SocialActivityAchievement findByPrimaryKey(long activityAchievementId) throws NoSuchActivityAchievementException Returns the social activity achievement with the primary key or throws aNoSuchActivityAchievementExceptionif it could not be found.- Parameters:
activityAchievementId- the primary key of the social activity achievement- Returns:
- the social activity achievement
- Throws:
NoSuchActivityAchievementException- if a social activity achievement with the primary key could not be foundNoSuchActivityAchievementException
-
fetchByPrimaryKey
Returns the social activity achievement with the primary key or returnsnullif it could not be found.- Parameters:
activityAchievementId- the primary key of the social activity achievement- Returns:
- the social activity achievement, or
nullif a social activity achievement with the primary key could not be found
-
findAll
Returns all the social activity achievements.- Returns:
- the social activity achievements
-
findAll
Returns a range of all the social activity achievements.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
start- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (not inclusive)- Returns:
- the range of social activity achievements
-
findAll
public static List<SocialActivityAchievement> findAll(int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator) Returns an ordered range of all the social activity achievements.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
start- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of social activity achievements
-
findAll
public static List<SocialActivityAchievement> findAll(int start, int end, OrderByComparator<SocialActivityAchievement> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity achievements.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Parameters:
start- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of social activity achievements
-
removeAll
public static void removeAll()Removes all the social activity achievements from the database. -
countAll
public static int countAll()Returns the number of social activity achievements.- Returns:
- the number of social activity achievements
-
getPersistence
-
setPersistence
-