Liferay 6.1.2-ce-ga3

com.liferay.portlet.social.service.persistence
Interface SocialActivityAchievementPersistence

All Superinterfaces:
BasePersistence<SocialActivityAchievement>

public interface SocialActivityAchievementPersistence
extends BasePersistence<SocialActivityAchievement>

The persistence interface for the social activity achievement service.

Caching information and settings can be found in portal.properties

See Also:
SocialActivityAchievementPersistenceImpl, SocialActivityAchievementUtil

Method Summary
 void cacheResult(List<SocialActivityAchievement> socialActivityAchievements)
          Caches the social activity achievements in the entity cache if it is enabled.
 void cacheResult(SocialActivityAchievement socialActivityAchievement)
          Caches the social activity achievement in the entity cache if it is enabled.
 int countAll()
          Returns the number of social activity achievements.
 int countByG_F(long groupId, boolean firstInGroup)
          Returns the number of social activity achievements where groupId = ? and firstInGroup = ?.
 int countByG_N(long groupId, String name)
          Returns the number of social activity achievements where groupId = ? and name = ?.
 int countByG_U_F(long groupId, long userId, boolean firstInGroup)
          Returns the number of social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.
 int countByG_U_N(long groupId, long userId, String name)
          Returns the number of social activity achievements where groupId = ? and userId = ? and name = ?.
 int countByG_U(long groupId, long userId)
          Returns the number of social activity achievements where groupId = ? and userId = ?.
 int countByGroupId(long groupId)
          Returns the number of social activity achievements where groupId = ?.
 SocialActivityAchievement create(long activityAchievementId)
          Creates a new social activity achievement with the primary key.
 SocialActivityAchievement fetchByG_F_First(long groupId, boolean firstInGroup, OrderByComparator orderByComparator)
          Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
 SocialActivityAchievement fetchByG_F_Last(long groupId, boolean firstInGroup, OrderByComparator orderByComparator)
          Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
 SocialActivityAchievement fetchByG_N_First(long groupId, String name, OrderByComparator orderByComparator)
          Returns the first social activity achievement in the ordered set where groupId = ? and name = ?.
 SocialActivityAchievement fetchByG_N_Last(long groupId, String name, OrderByComparator orderByComparator)
          Returns the last social activity achievement in the ordered set where groupId = ? and name = ?.
 SocialActivityAchievement fetchByG_U_F_First(long groupId, long userId, boolean firstInGroup, OrderByComparator orderByComparator)
          Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
 SocialActivityAchievement fetchByG_U_F_Last(long groupId, long userId, boolean firstInGroup, OrderByComparator orderByComparator)
          Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
 SocialActivityAchievement fetchByG_U_First(long groupId, long userId, OrderByComparator orderByComparator)
          Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?.
 SocialActivityAchievement fetchByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator)
          Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?.
 SocialActivityAchievement fetchByG_U_N(long groupId, long userId, String name)
          Returns the social activity achievement where groupId = ? and userId = ? and name = ? or returns null if it could not be found.
 SocialActivityAchievement fetchByG_U_N(long groupId, long userId, String name, boolean retrieveFromCache)
          Returns the social activity achievement where groupId = ? and userId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
 SocialActivityAchievement fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first social activity achievement in the ordered set where groupId = ?.
 SocialActivityAchievement fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last social activity achievement in the ordered set where groupId = ?.
 SocialActivityAchievement fetchByPrimaryKey(long activityAchievementId)
          Returns the social activity achievement with the primary key or returns null if it could not be found.
 List<SocialActivityAchievement> findAll()
          Returns all the social activity achievements.
 List<SocialActivityAchievement> findAll(int start, int end)
          Returns a range of all the social activity achievements.
 List<SocialActivityAchievement> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity achievements.
 SocialActivityAchievement findByG_F_First(long groupId, boolean firstInGroup, OrderByComparator orderByComparator)
          Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
 SocialActivityAchievement findByG_F_Last(long groupId, boolean firstInGroup, OrderByComparator orderByComparator)
          Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
 SocialActivityAchievement[] findByG_F_PrevAndNext(long activityAchievementId, long groupId, boolean firstInGroup, OrderByComparator orderByComparator)
          Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
 List<SocialActivityAchievement> findByG_F(long groupId, boolean firstInGroup)
          Returns all the social activity achievements where groupId = ? and firstInGroup = ?.
 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 = ?.
 List<SocialActivityAchievement> findByG_F(long groupId, boolean firstInGroup, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?.
 SocialActivityAchievement findByG_N_First(long groupId, String name, OrderByComparator orderByComparator)
          Returns the first social activity achievement in the ordered set where groupId = ? and name = ?.
 SocialActivityAchievement findByG_N_Last(long groupId, String name, OrderByComparator orderByComparator)
          Returns the last social activity achievement in the ordered set where groupId = ? and name = ?.
 SocialActivityAchievement[] findByG_N_PrevAndNext(long activityAchievementId, long groupId, String name, OrderByComparator orderByComparator)
          Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and name = ?.
 List<SocialActivityAchievement> findByG_N(long groupId, String name)
          Returns all the social activity achievements where groupId = ? and name = ?.
 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 = ?.
 List<SocialActivityAchievement> findByG_N(long groupId, String name, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity achievements where groupId = ? and name = ?.
 SocialActivityAchievement findByG_U_F_First(long groupId, long userId, boolean firstInGroup, OrderByComparator orderByComparator)
          Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
 SocialActivityAchievement findByG_U_F_Last(long groupId, long userId, boolean firstInGroup, OrderByComparator orderByComparator)
          Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
 SocialActivityAchievement[] findByG_U_F_PrevAndNext(long activityAchievementId, long groupId, long userId, boolean firstInGroup, OrderByComparator orderByComparator)
          Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
 List<SocialActivityAchievement> findByG_U_F(long groupId, long userId, boolean firstInGroup)
          Returns all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.
 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 = ?.
 List<SocialActivityAchievement> findByG_U_F(long groupId, long userId, boolean firstInGroup, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.
 SocialActivityAchievement findByG_U_First(long groupId, long userId, OrderByComparator orderByComparator)
          Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?.
 SocialActivityAchievement findByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator)
          Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?.
 SocialActivityAchievement findByG_U_N(long groupId, long userId, String name)
          Returns the social activity achievement where groupId = ? and userId = ? and name = ? or throws a NoSuchActivityAchievementException if it could not be found.
 SocialActivityAchievement[] findByG_U_PrevAndNext(long activityAchievementId, long groupId, long userId, OrderByComparator orderByComparator)
          Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ?.
 List<SocialActivityAchievement> findByG_U(long groupId, long userId)
          Returns all the social activity achievements where groupId = ? and userId = ?.
 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 = ?.
 List<SocialActivityAchievement> findByG_U(long groupId, long userId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?.
 SocialActivityAchievement findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first social activity achievement in the ordered set where groupId = ?.
 SocialActivityAchievement findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last social activity achievement in the ordered set where groupId = ?.
 SocialActivityAchievement[] findByGroupId_PrevAndNext(long activityAchievementId, long groupId, OrderByComparator orderByComparator)
          Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ?.
 List<SocialActivityAchievement> findByGroupId(long groupId)
          Returns all the social activity achievements where groupId = ?.
 List<SocialActivityAchievement> findByGroupId(long groupId, int start, int end)
          Returns a range of all the social activity achievements where groupId = ?.
 List<SocialActivityAchievement> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity achievements where groupId = ?.
 SocialActivityAchievement findByPrimaryKey(long activityAchievementId)
          Returns the social activity achievement with the primary key or throws a NoSuchActivityAchievementException if it could not be found.
 SocialActivityAchievement remove(long activityAchievementId)
          Removes the social activity achievement with the primary key from the database.
 void removeAll()
          Removes all the social activity achievements from the database.
 void removeByG_F(long groupId, boolean firstInGroup)
          Removes all the social activity achievements where groupId = ? and firstInGroup = ? from the database.
 void removeByG_N(long groupId, String name)
          Removes all the social activity achievements where groupId = ? and name = ? from the database.
 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.
 SocialActivityAchievement removeByG_U_N(long groupId, long userId, String name)
          Removes the social activity achievement where groupId = ? and userId = ? and name = ? from the database.
 void removeByG_U(long groupId, long userId)
          Removes all the social activity achievements where groupId = ? and userId = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the social activity achievements where groupId = ? from the database.
 SocialActivityAchievement updateImpl(SocialActivityAchievement socialActivityAchievement, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

void cacheResult(SocialActivityAchievement socialActivityAchievement)
Caches the social activity achievement in the entity cache if it is enabled.

Parameters:
socialActivityAchievement - the social activity achievement

cacheResult

void cacheResult(List<SocialActivityAchievement> socialActivityAchievements)
Caches the social activity achievements in the entity cache if it is enabled.

Parameters:
socialActivityAchievements - the social activity achievements

create

SocialActivityAchievement create(long activityAchievementId)
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

SocialActivityAchievement remove(long activityAchievementId)
                                 throws SystemException,
                                        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 found
SystemException - if a system exception occurred

updateImpl

SocialActivityAchievement updateImpl(SocialActivityAchievement socialActivityAchievement,
                                     boolean merge)
                                     throws SystemException
Throws:
SystemException

findByPrimaryKey

SocialActivityAchievement findByPrimaryKey(long activityAchievementId)
                                           throws SystemException,
                                                  NoSuchActivityAchievementException
Returns the social activity achievement with the primary key or throws a NoSuchActivityAchievementException if 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 found
SystemException - if a system exception occurred

fetchByPrimaryKey

SocialActivityAchievement fetchByPrimaryKey(long activityAchievementId)
                                            throws SystemException
Returns the social activity achievement with the primary key or returns null if it could not be found.

Parameters:
activityAchievementId - the primary key of the social activity achievement
Returns:
the social activity achievement, or null if a social activity achievement with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

List<SocialActivityAchievement> findByGroupId(long groupId)
                                              throws SystemException
Returns all the social activity achievements where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching social activity achievements
Throws:
SystemException - if a system exception occurred

findByGroupId

List<SocialActivityAchievement> findByGroupId(long groupId,
                                              int start,
                                              int end)
                                              throws SystemException
Returns a range of all the social activity achievements where groupId = ?.

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

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

findByGroupId

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

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

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

findByGroupId_First

SocialActivityAchievement findByGroupId_First(long groupId,
                                              OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchActivityAchievementException
Returns the first social activity achievement in the ordered set where groupId = ?.

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

fetchByGroupId_First

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

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

findByGroupId_Last

SocialActivityAchievement findByGroupId_Last(long groupId,
                                             OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchActivityAchievementException
Returns the last social activity achievement in the ordered set where groupId = ?.

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

fetchByGroupId_Last

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

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

findByGroupId_PrevAndNext

SocialActivityAchievement[] findByGroupId_PrevAndNext(long activityAchievementId,
                                                      long groupId,
                                                      OrderByComparator orderByComparator)
                                                      throws SystemException,
                                                             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 achievement
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity achievement
Throws:
NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
SystemException - if a system exception occurred

findByG_U

List<SocialActivityAchievement> findByG_U(long groupId,
                                          long userId)
                                          throws SystemException
Returns all the social activity achievements where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
Returns:
the matching social activity achievements
Throws:
SystemException - if a system exception occurred

findByG_U

List<SocialActivityAchievement> findByG_U(long groupId,
                                          long userId,
                                          int start,
                                          int end)
                                          throws SystemException
Returns a range of all the social activity achievements where groupId = ? and userId = ?.

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

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

findByG_U

List<SocialActivityAchievement> findByG_U(long groupId,
                                          long userId,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                          throws SystemException
Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?.

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

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

findByG_U_First

SocialActivityAchievement findByG_U_First(long groupId,
                                          long userId,
                                          OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchActivityAchievementException
Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?.

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

fetchByG_U_First

SocialActivityAchievement fetchByG_U_First(long groupId,
                                           long userId,
                                           OrderByComparator orderByComparator)
                                           throws SystemException
Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?.

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

findByG_U_Last

SocialActivityAchievement findByG_U_Last(long groupId,
                                         long userId,
                                         OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchActivityAchievementException
Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?.

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

fetchByG_U_Last

SocialActivityAchievement fetchByG_U_Last(long groupId,
                                          long userId,
                                          OrderByComparator orderByComparator)
                                          throws SystemException
Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?.

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

findByG_U_PrevAndNext

SocialActivityAchievement[] findByG_U_PrevAndNext(long activityAchievementId,
                                                  long groupId,
                                                  long userId,
                                                  OrderByComparator orderByComparator)
                                                  throws SystemException,
                                                         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 achievement
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity achievement
Throws:
NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
SystemException - if a system exception occurred

findByG_N

List<SocialActivityAchievement> findByG_N(long groupId,
                                          String name)
                                          throws SystemException
Returns all the social activity achievements where groupId = ? and name = ?.

Parameters:
groupId - the group ID
name - the name
Returns:
the matching social activity achievements
Throws:
SystemException - if a system exception occurred

findByG_N

List<SocialActivityAchievement> findByG_N(long groupId,
                                          String name,
                                          int start,
                                          int end)
                                          throws SystemException
Returns a range of all the social activity achievements where groupId = ? and name = ?.

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

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

findByG_N

List<SocialActivityAchievement> findByG_N(long groupId,
                                          String name,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                          throws SystemException
Returns an ordered range of all the social activity achievements where groupId = ? and name = ?.

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

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

findByG_N_First

SocialActivityAchievement findByG_N_First(long groupId,
                                          String name,
                                          OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchActivityAchievementException
Returns the first social activity achievement in the ordered set where groupId = ? and name = ?.

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

fetchByG_N_First

SocialActivityAchievement fetchByG_N_First(long groupId,
                                           String name,
                                           OrderByComparator orderByComparator)
                                           throws SystemException
Returns the first social activity achievement in the ordered set where groupId = ? and name = ?.

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

findByG_N_Last

SocialActivityAchievement findByG_N_Last(long groupId,
                                         String name,
                                         OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchActivityAchievementException
Returns the last social activity achievement in the ordered set where groupId = ? and name = ?.

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

fetchByG_N_Last

SocialActivityAchievement fetchByG_N_Last(long groupId,
                                          String name,
                                          OrderByComparator orderByComparator)
                                          throws SystemException
Returns the last social activity achievement in the ordered set where groupId = ? and name = ?.

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

findByG_N_PrevAndNext

SocialActivityAchievement[] findByG_N_PrevAndNext(long activityAchievementId,
                                                  long groupId,
                                                  String name,
                                                  OrderByComparator orderByComparator)
                                                  throws SystemException,
                                                         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 achievement
groupId - the group ID
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity achievement
Throws:
NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
SystemException - if a system exception occurred

findByG_F

List<SocialActivityAchievement> findByG_F(long groupId,
                                          boolean firstInGroup)
                                          throws SystemException
Returns all the social activity achievements where groupId = ? and firstInGroup = ?.

Parameters:
groupId - the group ID
firstInGroup - the first in group
Returns:
the matching social activity achievements
Throws:
SystemException - if a system exception occurred

findByG_F

List<SocialActivityAchievement> findByG_F(long groupId,
                                          boolean firstInGroup,
                                          int start,
                                          int end)
                                          throws SystemException
Returns a range of all the social activity achievements where groupId = ? and firstInGroup = ?.

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

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

findByG_F

List<SocialActivityAchievement> findByG_F(long groupId,
                                          boolean firstInGroup,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                          throws SystemException
Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?.

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

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

findByG_F_First

SocialActivityAchievement findByG_F_First(long groupId,
                                          boolean firstInGroup,
                                          OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchActivityAchievementException
Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.

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

fetchByG_F_First

SocialActivityAchievement fetchByG_F_First(long groupId,
                                           boolean firstInGroup,
                                           OrderByComparator orderByComparator)
                                           throws SystemException
Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.

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

findByG_F_Last

SocialActivityAchievement findByG_F_Last(long groupId,
                                         boolean firstInGroup,
                                         OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchActivityAchievementException
Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.

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

fetchByG_F_Last

SocialActivityAchievement fetchByG_F_Last(long groupId,
                                          boolean firstInGroup,
                                          OrderByComparator orderByComparator)
                                          throws SystemException
Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.

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

findByG_F_PrevAndNext

SocialActivityAchievement[] findByG_F_PrevAndNext(long activityAchievementId,
                                                  long groupId,
                                                  boolean firstInGroup,
                                                  OrderByComparator orderByComparator)
                                                  throws SystemException,
                                                         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 achievement
groupId - the group ID
firstInGroup - the first in group
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity achievement
Throws:
NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
SystemException - if a system exception occurred

findByG_U_N

SocialActivityAchievement findByG_U_N(long groupId,
                                      long userId,
                                      String name)
                                      throws SystemException,
                                             NoSuchActivityAchievementException
Returns the social activity achievement where groupId = ? and userId = ? and name = ? or throws a NoSuchActivityAchievementException if it could not be found.

Parameters:
groupId - the group ID
userId - the user ID
name - the name
Returns:
the matching social activity achievement
Throws:
NoSuchActivityAchievementException - if a matching social activity achievement could not be found
SystemException - if a system exception occurred

fetchByG_U_N

SocialActivityAchievement fetchByG_U_N(long groupId,
                                       long userId,
                                       String name)
                                       throws SystemException
Returns the social activity achievement where groupId = ? and userId = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
userId - the user ID
name - the name
Returns:
the matching social activity achievement, or null if a matching social activity achievement could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_U_N

SocialActivityAchievement fetchByG_U_N(long groupId,
                                       long userId,
                                       String name,
                                       boolean retrieveFromCache)
                                       throws SystemException
Returns the social activity achievement where groupId = ? and userId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group ID
userId - the user ID
name - the name
retrieveFromCache - whether to use the finder cache
Returns:
the matching social activity achievement, or null if a matching social activity achievement could not be found
Throws:
SystemException - if a system exception occurred

findByG_U_F

List<SocialActivityAchievement> findByG_U_F(long groupId,
                                            long userId,
                                            boolean firstInGroup)
                                            throws SystemException
Returns all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.

Parameters:
groupId - the group ID
userId - the user ID
firstInGroup - the first in group
Returns:
the matching social activity achievements
Throws:
SystemException - if a system exception occurred

findByG_U_F

List<SocialActivityAchievement> findByG_U_F(long groupId,
                                            long userId,
                                            boolean firstInGroup,
                                            int start,
                                            int end)
                                            throws SystemException
Returns a range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.

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

Parameters:
groupId - the group ID
userId - the user ID
firstInGroup - the first in group
start - the lower bound of the range of social activity achievements
end - the upper bound of the range of social activity achievements (not inclusive)
Returns:
the range of matching social activity achievements
Throws:
SystemException - if a system exception occurred

findByG_U_F

List<SocialActivityAchievement> findByG_U_F(long groupId,
                                            long userId,
                                            boolean firstInGroup,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                            throws SystemException
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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findByG_U_F_First

SocialActivityAchievement findByG_U_F_First(long groupId,
                                            long userId,
                                            boolean firstInGroup,
                                            OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchActivityAchievementException
Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.

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

fetchByG_U_F_First

SocialActivityAchievement fetchByG_U_F_First(long groupId,
                                             long userId,
                                             boolean firstInGroup,
                                             OrderByComparator orderByComparator)
                                             throws SystemException
Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.

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

findByG_U_F_Last

SocialActivityAchievement findByG_U_F_Last(long groupId,
                                           long userId,
                                           boolean firstInGroup,
                                           OrderByComparator orderByComparator)
                                           throws SystemException,
                                                  NoSuchActivityAchievementException
Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.

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

fetchByG_U_F_Last

SocialActivityAchievement fetchByG_U_F_Last(long groupId,
                                            long userId,
                                            boolean firstInGroup,
                                            OrderByComparator orderByComparator)
                                            throws SystemException
Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.

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

findByG_U_F_PrevAndNext

SocialActivityAchievement[] findByG_U_F_PrevAndNext(long activityAchievementId,
                                                    long groupId,
                                                    long userId,
                                                    boolean firstInGroup,
                                                    OrderByComparator orderByComparator)
                                                    throws SystemException,
                                                           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 achievement
groupId - the group ID
userId - the user ID
firstInGroup - the first in group
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity achievement
Throws:
NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
SystemException - if a system exception occurred

findAll

List<SocialActivityAchievement> findAll()
                                        throws SystemException
Returns all the social activity achievements.

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

findAll

List<SocialActivityAchievement> findAll(int start,
                                        int end)
                                        throws SystemException
Returns a range of all the social activity achievements.

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

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

findAll

List<SocialActivityAchievement> findAll(int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                        throws SystemException
Returns an ordered range of all the social activity achievements.

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

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

removeByGroupId

void removeByGroupId(long groupId)
                     throws SystemException
Removes all the social activity achievements where groupId = ? from the database.

Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

removeByG_U

void removeByG_U(long groupId,
                 long userId)
                 throws SystemException
Removes all the social activity achievements where groupId = ? and userId = ? from the database.

Parameters:
groupId - the group ID
userId - the user ID
Throws:
SystemException - if a system exception occurred

removeByG_N

void removeByG_N(long groupId,
                 String name)
                 throws SystemException
Removes all the social activity achievements where groupId = ? and name = ? from the database.

Parameters:
groupId - the group ID
name - the name
Throws:
SystemException - if a system exception occurred

removeByG_F

void removeByG_F(long groupId,
                 boolean firstInGroup)
                 throws SystemException
Removes all the social activity achievements where groupId = ? and firstInGroup = ? from the database.

Parameters:
groupId - the group ID
firstInGroup - the first in group
Throws:
SystemException - if a system exception occurred

removeByG_U_N

SocialActivityAchievement removeByG_U_N(long groupId,
                                        long userId,
                                        String name)
                                        throws SystemException,
                                               NoSuchActivityAchievementException
Removes the social activity achievement where groupId = ? and userId = ? and name = ? from the database.

Parameters:
groupId - the group ID
userId - the user ID
name - the name
Returns:
the social activity achievement that was removed
Throws:
SystemException - if a system exception occurred
NoSuchActivityAchievementException

removeByG_U_F

void removeByG_U_F(long groupId,
                   long userId,
                   boolean firstInGroup)
                   throws SystemException
Removes all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ? from the database.

Parameters:
groupId - the group ID
userId - the user ID
firstInGroup - the first in group
Throws:
SystemException - if a system exception occurred

removeAll

void removeAll()
               throws SystemException
Removes all the social activity achievements from the database.

Throws:
SystemException - if a system exception occurred

countByGroupId

int countByGroupId(long groupId)
                   throws SystemException
Returns the number of social activity achievements where groupId = ?.

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

countByG_U

int countByG_U(long groupId,
               long userId)
               throws SystemException
Returns the number of social activity achievements where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
Returns:
the number of matching social activity achievements
Throws:
SystemException - if a system exception occurred

countByG_N

int countByG_N(long groupId,
               String name)
               throws SystemException
Returns the number of social activity achievements where groupId = ? and name = ?.

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

countByG_F

int countByG_F(long groupId,
               boolean firstInGroup)
               throws SystemException
Returns the number of social activity achievements where groupId = ? and firstInGroup = ?.

Parameters:
groupId - the group ID
firstInGroup - the first in group
Returns:
the number of matching social activity achievements
Throws:
SystemException - if a system exception occurred

countByG_U_N

int countByG_U_N(long groupId,
                 long userId,
                 String name)
                 throws SystemException
Returns the number of social activity achievements where groupId = ? and userId = ? and name = ?.

Parameters:
groupId - the group ID
userId - the user ID
name - the name
Returns:
the number of matching social activity achievements
Throws:
SystemException - if a system exception occurred

countByG_U_F

int countByG_U_F(long groupId,
                 long userId,
                 boolean firstInGroup)
                 throws SystemException
Returns the number of social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.

Parameters:
groupId - the group ID
userId - the user ID
firstInGroup - the first in group
Returns:
the number of matching social activity achievements
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of social activity achievements.

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

Liferay 6.1.2-ce-ga3