Liferay 6.2-ce-ga5

com.liferay.portlet.social.service.persistence
Class SocialActivityAchievementPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<SocialActivityAchievement>
      extended by com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<SocialActivityAchievement>, SocialActivityAchievementPersistence

public class SocialActivityAchievementPersistenceImpl
extends BasePersistenceImpl<SocialActivityAchievement>
implements SocialActivityAchievementPersistence

The persistence implementation for the social activity achievement service.

Caching information and settings can be found in portal.properties

See Also:
SocialActivityAchievementPersistence, SocialActivityAchievementUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_G_F
           
static FinderPath FINDER_PATH_COUNT_BY_G_N
           
static FinderPath FINDER_PATH_COUNT_BY_G_U
           
static FinderPath FINDER_PATH_COUNT_BY_G_U_F
           
static FinderPath FINDER_PATH_COUNT_BY_G_U_N
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_FETCH_BY_G_U_N
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_F
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_F
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_F
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_F
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
SocialActivityAchievementPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the social activity achievement persistence.
 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.
protected  void cacheUniqueFindersCache(SocialActivityAchievement socialActivityAchievement)
           
 void clearCache()
          Clears the cache for all social activity achievements.
 void clearCache(List<SocialActivityAchievement> socialActivityAchievements)
          Clears the cache for a List instances of this model.
 void clearCache(SocialActivityAchievement socialActivityAchievement)
          Clears the cache for the social activity achievement.
protected  void clearUniqueFindersCache(SocialActivityAchievement socialActivityAchievement)
           
 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.
 void destroy()
           
 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.
 SocialActivityAchievement fetchByPrimaryKey(Serializable primaryKey)
          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 findByPrimaryKey(Serializable primaryKey)
          Returns the social activity achievement with the primary key or throws a NoSuchModelException if it could not be found.
protected  SocialActivityAchievement getByG_F_PrevAndNext(Session session, SocialActivityAchievement socialActivityAchievement, long groupId, boolean firstInGroup, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialActivityAchievement getByG_N_PrevAndNext(Session session, SocialActivityAchievement socialActivityAchievement, long groupId, String name, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialActivityAchievement getByG_U_F_PrevAndNext(Session session, SocialActivityAchievement socialActivityAchievement, long groupId, long userId, boolean firstInGroup, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialActivityAchievement getByG_U_PrevAndNext(Session session, SocialActivityAchievement socialActivityAchievement, long groupId, long userId, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialActivityAchievement getByGroupId_PrevAndNext(Session session, SocialActivityAchievement socialActivityAchievement, long groupId, OrderByComparator orderByComparator, boolean previous)
           
 SocialActivityAchievement remove(long activityAchievementId)
          Removes the social activity achievement with the primary key from the database.
 SocialActivityAchievement remove(Serializable primaryKey)
          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.
protected  SocialActivityAchievement removeImpl(SocialActivityAchievement socialActivityAchievement)
          Removes the model instance from the database.
protected  SocialActivityAchievement toUnwrappedModel(SocialActivityAchievement socialActivityAchievement)
           
 SocialActivityAchievement updateImpl(SocialActivityAchievement socialActivityAchievement)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U

FINDER_PATH_COUNT_BY_G_U

public static final FinderPath FINDER_PATH_COUNT_BY_G_U

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N

FINDER_PATH_COUNT_BY_G_N

public static final FinderPath FINDER_PATH_COUNT_BY_G_N

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_F

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_F

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_F

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_F

FINDER_PATH_COUNT_BY_G_F

public static final FinderPath FINDER_PATH_COUNT_BY_G_F

FINDER_PATH_FETCH_BY_G_U_N

public static final FinderPath FINDER_PATH_FETCH_BY_G_U_N

FINDER_PATH_COUNT_BY_G_U_N

public static final FinderPath FINDER_PATH_COUNT_BY_G_U_N

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_F

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_F

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_F

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_F

FINDER_PATH_COUNT_BY_G_U_F

public static final FinderPath FINDER_PATH_COUNT_BY_G_U_F
Constructor Detail

SocialActivityAchievementPersistenceImpl

public SocialActivityAchievementPersistenceImpl()
Method Detail

findByGroupId

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

Specified by:
findByGroupId in interface SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
Returns:
the matching social activity achievements
Throws:
SystemException - if a system exception occurred

findByGroupId

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByGroupId in interface SocialActivityAchievementPersistence
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

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByGroupId in interface SocialActivityAchievementPersistence
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

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

Specified by:
findByGroupId_First in interface SocialActivityAchievementPersistence
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

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

Specified by:
fetchByGroupId_First in interface SocialActivityAchievementPersistence
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

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

Specified by:
findByGroupId_Last in interface SocialActivityAchievementPersistence
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

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

Specified by:
fetchByGroupId_Last in interface SocialActivityAchievementPersistence
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

public SocialActivityAchievement[] findByGroupId_PrevAndNext(long activityAchievementId,
                                                             long groupId,
                                                             OrderByComparator orderByComparator)
                                                      throws NoSuchActivityAchievementException,
                                                             SystemException
Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ?.

Specified by:
findByGroupId_PrevAndNext in interface SocialActivityAchievementPersistence
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

getByGroupId_PrevAndNext

protected SocialActivityAchievement getByGroupId_PrevAndNext(Session session,
                                                             SocialActivityAchievement socialActivityAchievement,
                                                             long groupId,
                                                             OrderByComparator orderByComparator,
                                                             boolean previous)

removeByGroupId

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

Specified by:
removeByGroupId in interface SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

countByGroupId

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

Specified by:
countByGroupId in interface SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching social activity achievements
Throws:
SystemException - if a system exception occurred

findByG_U

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

Specified by:
findByG_U in interface SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
userId - the user ID
Returns:
the matching social activity achievements
Throws:
SystemException - if a system exception occurred

findByG_U

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_U in interface SocialActivityAchievementPersistence
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

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_U in interface SocialActivityAchievementPersistence
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

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

Specified by:
findByG_U_First in interface SocialActivityAchievementPersistence
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

public 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 = ?.

Specified by:
fetchByG_U_First in interface SocialActivityAchievementPersistence
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

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

Specified by:
findByG_U_Last in interface SocialActivityAchievementPersistence
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

public 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 = ?.

Specified by:
fetchByG_U_Last in interface SocialActivityAchievementPersistence
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

public SocialActivityAchievement[] findByG_U_PrevAndNext(long activityAchievementId,
                                                         long groupId,
                                                         long userId,
                                                         OrderByComparator orderByComparator)
                                                  throws NoSuchActivityAchievementException,
                                                         SystemException
Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ?.

Specified by:
findByG_U_PrevAndNext in interface SocialActivityAchievementPersistence
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

getByG_U_PrevAndNext

protected SocialActivityAchievement getByG_U_PrevAndNext(Session session,
                                                         SocialActivityAchievement socialActivityAchievement,
                                                         long groupId,
                                                         long userId,
                                                         OrderByComparator orderByComparator,
                                                         boolean previous)

removeByG_U

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

Specified by:
removeByG_U in interface SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
userId - the user ID
Throws:
SystemException - if a system exception occurred

countByG_U

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

Specified by:
countByG_U in interface SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
userId - the user ID
Returns:
the number of matching social activity achievements
Throws:
SystemException - if a system exception occurred

findByG_N

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

Specified by:
findByG_N in interface SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
name - the name
Returns:
the matching social activity achievements
Throws:
SystemException - if a system exception occurred

findByG_N

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_N in interface SocialActivityAchievementPersistence
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

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_N in interface SocialActivityAchievementPersistence
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

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

Specified by:
findByG_N_First in interface SocialActivityAchievementPersistence
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

public 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 = ?.

Specified by:
fetchByG_N_First in interface SocialActivityAchievementPersistence
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

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

Specified by:
findByG_N_Last in interface SocialActivityAchievementPersistence
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

public 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 = ?.

Specified by:
fetchByG_N_Last in interface SocialActivityAchievementPersistence
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

public SocialActivityAchievement[] findByG_N_PrevAndNext(long activityAchievementId,
                                                         long groupId,
                                                         String name,
                                                         OrderByComparator orderByComparator)
                                                  throws NoSuchActivityAchievementException,
                                                         SystemException
Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and name = ?.

Specified by:
findByG_N_PrevAndNext in interface SocialActivityAchievementPersistence
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

getByG_N_PrevAndNext

protected SocialActivityAchievement getByG_N_PrevAndNext(Session session,
                                                         SocialActivityAchievement socialActivityAchievement,
                                                         long groupId,
                                                         String name,
                                                         OrderByComparator orderByComparator,
                                                         boolean previous)

removeByG_N

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

Specified by:
removeByG_N in interface SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
name - the name
Throws:
SystemException - if a system exception occurred

countByG_N

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

Specified by:
countByG_N in interface SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
name - the name
Returns:
the number of matching social activity achievements
Throws:
SystemException - if a system exception occurred

findByG_F

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

Specified by:
findByG_F in interface SocialActivityAchievementPersistence
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

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_F in interface SocialActivityAchievementPersistence
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

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_F in interface SocialActivityAchievementPersistence
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

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

Specified by:
findByG_F_First in interface SocialActivityAchievementPersistence
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

public 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 = ?.

Specified by:
fetchByG_F_First in interface SocialActivityAchievementPersistence
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

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

Specified by:
findByG_F_Last in interface SocialActivityAchievementPersistence
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

public 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 = ?.

Specified by:
fetchByG_F_Last in interface SocialActivityAchievementPersistence
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

public SocialActivityAchievement[] findByG_F_PrevAndNext(long activityAchievementId,
                                                         long groupId,
                                                         boolean firstInGroup,
                                                         OrderByComparator orderByComparator)
                                                  throws NoSuchActivityAchievementException,
                                                         SystemException
Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.

Specified by:
findByG_F_PrevAndNext in interface SocialActivityAchievementPersistence
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

getByG_F_PrevAndNext

protected SocialActivityAchievement getByG_F_PrevAndNext(Session session,
                                                         SocialActivityAchievement socialActivityAchievement,
                                                         long groupId,
                                                         boolean firstInGroup,
                                                         OrderByComparator orderByComparator,
                                                         boolean previous)

removeByG_F

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

Specified by:
removeByG_F in interface SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
firstInGroup - the first in group
Throws:
SystemException - if a system exception occurred

countByG_F

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

Specified by:
countByG_F in interface SocialActivityAchievementPersistence
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

findByG_U_N

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

Specified by:
findByG_U_N in interface SocialActivityAchievementPersistence
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

public 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.

Specified by:
fetchByG_U_N in interface SocialActivityAchievementPersistence
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

public 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.

Specified by:
fetchByG_U_N in interface SocialActivityAchievementPersistence
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

removeByG_U_N

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

Specified by:
removeByG_U_N in interface SocialActivityAchievementPersistence
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

countByG_U_N

public 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 = ?.

Specified by:
countByG_U_N in interface SocialActivityAchievementPersistence
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

findByG_U_F

public 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 = ?.

Specified by:
findByG_U_F in interface SocialActivityAchievementPersistence
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

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_U_F in interface SocialActivityAchievementPersistence
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

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_U_F in interface SocialActivityAchievementPersistence
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

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

Specified by:
findByG_U_F_First in interface SocialActivityAchievementPersistence
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

public 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 = ?.

Specified by:
fetchByG_U_F_First in interface SocialActivityAchievementPersistence
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

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

Specified by:
findByG_U_F_Last in interface SocialActivityAchievementPersistence
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

public 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 = ?.

Specified by:
fetchByG_U_F_Last in interface SocialActivityAchievementPersistence
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

public SocialActivityAchievement[] findByG_U_F_PrevAndNext(long activityAchievementId,
                                                           long groupId,
                                                           long userId,
                                                           boolean firstInGroup,
                                                           OrderByComparator orderByComparator)
                                                    throws NoSuchActivityAchievementException,
                                                           SystemException
Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.

Specified by:
findByG_U_F_PrevAndNext in interface SocialActivityAchievementPersistence
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

getByG_U_F_PrevAndNext

protected SocialActivityAchievement getByG_U_F_PrevAndNext(Session session,
                                                           SocialActivityAchievement socialActivityAchievement,
                                                           long groupId,
                                                           long userId,
                                                           boolean firstInGroup,
                                                           OrderByComparator orderByComparator,
                                                           boolean previous)

removeByG_U_F

public 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.

Specified by:
removeByG_U_F in interface SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
userId - the user ID
firstInGroup - the first in group
Throws:
SystemException - if a system exception occurred

countByG_U_F

public 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 = ?.

Specified by:
countByG_U_F in interface SocialActivityAchievementPersistence
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

cacheResult

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

Specified by:
cacheResult in interface SocialActivityAchievementPersistence
Parameters:
socialActivityAchievement - the social activity achievement

cacheResult

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

Specified by:
cacheResult in interface SocialActivityAchievementPersistence
Parameters:
socialActivityAchievements - the social activity achievements

clearCache

public void clearCache()
Clears the cache for all social activity achievements.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialActivityAchievement>
Overrides:
clearCache in class BasePersistenceImpl<SocialActivityAchievement>

clearCache

public void clearCache(SocialActivityAchievement socialActivityAchievement)
Clears the cache for the social activity achievement.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialActivityAchievement>
Overrides:
clearCache in class BasePersistenceImpl<SocialActivityAchievement>
Parameters:
socialActivityAchievement - the instance of this model to clear the cache for

clearCache

public void clearCache(List<SocialActivityAchievement> socialActivityAchievements)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialActivityAchievement>
Overrides:
clearCache in class BasePersistenceImpl<SocialActivityAchievement>
Parameters:
socialActivityAchievements - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(SocialActivityAchievement socialActivityAchievement)

clearUniqueFindersCache

protected void clearUniqueFindersCache(SocialActivityAchievement socialActivityAchievement)

create

public SocialActivityAchievement create(long activityAchievementId)
Creates a new social activity achievement with the primary key. Does not add the social activity achievement to the database.

Specified by:
create in interface SocialActivityAchievementPersistence
Parameters:
activityAchievementId - the primary key for the new social activity achievement
Returns:
the new social activity achievement

remove

public SocialActivityAchievement remove(long activityAchievementId)
                                 throws NoSuchActivityAchievementException,
                                        SystemException
Removes the social activity achievement with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface SocialActivityAchievementPersistence
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

remove

public SocialActivityAchievement remove(Serializable primaryKey)
                                 throws NoSuchActivityAchievementException,
                                        SystemException
Removes the social activity achievement with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<SocialActivityAchievement>
Overrides:
remove in class BasePersistenceImpl<SocialActivityAchievement>
Parameters:
primaryKey - 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

removeImpl

protected SocialActivityAchievement removeImpl(SocialActivityAchievement socialActivityAchievement)
                                        throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<SocialActivityAchievement>
Parameters:
socialActivityAchievement - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public SocialActivityAchievement updateImpl(SocialActivityAchievement socialActivityAchievement)
                                     throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface SocialActivityAchievementPersistence
Overrides:
updateImpl in class BasePersistenceImpl<SocialActivityAchievement>
Parameters:
socialActivityAchievement - the model instance to update
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected SocialActivityAchievement toUnwrappedModel(SocialActivityAchievement socialActivityAchievement)

findByPrimaryKey

public SocialActivityAchievement findByPrimaryKey(Serializable primaryKey)
                                           throws NoSuchActivityAchievementException,
                                                  SystemException
Returns the social activity achievement with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<SocialActivityAchievement>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<SocialActivityAchievement>
Parameters:
primaryKey - 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

findByPrimaryKey

public SocialActivityAchievement findByPrimaryKey(long activityAchievementId)
                                           throws NoSuchActivityAchievementException,
                                                  SystemException
Returns the social activity achievement with the primary key or throws a NoSuchActivityAchievementException if it could not be found.

Specified by:
findByPrimaryKey in interface SocialActivityAchievementPersistence
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

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

Specified by:
fetchByPrimaryKey in interface BasePersistence<SocialActivityAchievement>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<SocialActivityAchievement>
Parameters:
primaryKey - 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

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface SocialActivityAchievementPersistence
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

findAll

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

Specified by:
findAll in interface SocialActivityAchievementPersistence
Returns:
the social activity achievements
Throws:
SystemException - if a system exception occurred

findAll

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface SocialActivityAchievementPersistence
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

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface SocialActivityAchievementPersistence
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

removeAll

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

Specified by:
removeAll in interface SocialActivityAchievementPersistence
Throws:
SystemException - if a system exception occurred

countAll

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

Specified by:
countAll in interface SocialActivityAchievementPersistence
Returns:
the number of social activity achievements
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the social activity achievement persistence.


destroy

public void destroy()

Liferay 6.2-ce-ga5