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

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

public class SocialActivityAchievementPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivityAchievement>
implements com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence

The persistence implementation for the social activity achievement service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
SocialActivityAchievementPersistence, SocialActivityAchievementUtil
Generated:

Field Summary
static java.lang.String FINDER_CLASS_NAME_ENTITY
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_F
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_N
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_U
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_U_F
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_U_N
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_G_U_N
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_F
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_F
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_F
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_F
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
protected  com.liferay.portal.service.persistence.GroupPersistence groupPersistence
           
protected  com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence socialActivityAchievementPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence socialActivityCounterPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence socialActivityLimitPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivityPersistence socialActivityPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence socialActivitySettingPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialRelationPersistence socialRelationPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialRequestPersistence socialRequestPersistence
           
protected  com.liferay.portal.service.persistence.UserPersistence userPersistence
           
 
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(java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> socialActivityAchievements)
          Caches the social activity achievements in the entity cache if it is enabled.
 void cacheResult(com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement)
          Caches the social activity achievement in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all social activity achievements.
 void clearCache(java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> socialActivityAchievements)
           
 void clearCache(com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement)
          Clears the cache for the social activity achievement.
protected  void clearUniqueFindersCache(com.liferay.portlet.social.model.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, java.lang.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, java.lang.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 = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement create(long activityAchievementId)
          Creates a new social activity achievement with the primary key.
 void destroy()
           
 com.liferay.portlet.social.model.SocialActivityAchievement fetchByG_U_N(long groupId, long userId, java.lang.String name)
          Returns the social activity achievement where groupId = ? and userId = ? and name = ? or returns null if it could not be found.
 com.liferay.portlet.social.model.SocialActivityAchievement fetchByG_U_N(long groupId, long userId, java.lang.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.
 com.liferay.portlet.social.model.SocialActivityAchievement fetchByPrimaryKey(long activityAchievementId)
          Returns the social activity achievement with the primary key or returns null if it could not be found.
 com.liferay.portlet.social.model.SocialActivityAchievement fetchByPrimaryKey(java.io.Serializable primaryKey)
          Returns the social activity achievement with the primary key or returns null if it could not be found.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findAll()
          Returns all the social activity achievements.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findAll(int start, int end)
          Returns a range of all the social activity achievements.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity achievements.
 com.liferay.portlet.social.model.SocialActivityAchievement findByG_F_First(long groupId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement findByG_F_Last(long groupId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement[] findByG_F_PrevAndNext(long activityAchievementId, long groupId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_F(long groupId, boolean firstInGroup)
          Returns all the social activity achievements where groupId = ? and firstInGroup = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_F(long groupId, boolean firstInGroup, int start, int end)
          Returns a range of all the social activity achievements where groupId = ? and firstInGroup = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_F(long groupId, boolean firstInGroup, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement findByG_N_First(long groupId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social activity achievement in the ordered set where groupId = ? and name = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement findByG_N_Last(long groupId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social activity achievement in the ordered set where groupId = ? and name = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement[] findByG_N_PrevAndNext(long activityAchievementId, long groupId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and name = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_N(long groupId, java.lang.String name)
          Returns all the social activity achievements where groupId = ? and name = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_N(long groupId, java.lang.String name, int start, int end)
          Returns a range of all the social activity achievements where groupId = ? and name = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_N(long groupId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity achievements where groupId = ? and name = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement findByG_U_F_First(long groupId, long userId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement findByG_U_F_Last(long groupId, long userId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement[] findByG_U_F_PrevAndNext(long activityAchievementId, long groupId, long userId, boolean firstInGroup, com.liferay.portal.kernel.util.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 = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U_F(long groupId, long userId, boolean firstInGroup)
          Returns all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.
 java.util.List<com.liferay.portlet.social.model.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 = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U_F(long groupId, long userId, boolean firstInGroup, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement findByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement findByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement findByG_U_N(long groupId, long userId, java.lang.String name)
          Returns the social activity achievement where groupId = ? and userId = ? and name = ? or throws a NoSuchActivityAchievementException if it could not be found.
 com.liferay.portlet.social.model.SocialActivityAchievement[] findByG_U_PrevAndNext(long activityAchievementId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U(long groupId, long userId)
          Returns all the social activity achievements where groupId = ? and userId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U(long groupId, long userId, int start, int end)
          Returns a range of all the social activity achievements where groupId = ? and userId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social activity achievement in the ordered set where groupId = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social activity achievement in the ordered set where groupId = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement[] findByGroupId_PrevAndNext(long activityAchievementId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByGroupId(long groupId)
          Returns all the social activity achievements where groupId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByGroupId(long groupId, int start, int end)
          Returns a range of all the social activity achievements where groupId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity achievements where groupId = ?.
 com.liferay.portlet.social.model.SocialActivityAchievement findByPrimaryKey(long activityAchievementId)
          Returns the social activity achievement with the primary key or throws a NoSuchActivityAchievementException if it could not be found.
 com.liferay.portlet.social.model.SocialActivityAchievement findByPrimaryKey(java.io.Serializable primaryKey)
          Returns the social activity achievement with the primary key or throws a NoSuchModelException if it could not be found.
protected  com.liferay.portlet.social.model.SocialActivityAchievement getByG_F_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement, long groupId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialActivityAchievement getByG_N_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement, long groupId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialActivityAchievement getByG_U_F_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement, long groupId, long userId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialActivityAchievement getByG_U_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialActivityAchievement getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 com.liferay.portlet.social.model.SocialActivityAchievement remove(long activityAchievementId)
          Removes the social activity achievement with the primary key from the database.
 com.liferay.portlet.social.model.SocialActivityAchievement remove(java.io.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, java.lang.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.
 void removeByG_U_N(long groupId, long userId, java.lang.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  com.liferay.portlet.social.model.SocialActivityAchievement removeImpl(com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement)
           
protected  com.liferay.portlet.social.model.SocialActivityAchievement toUnwrappedModel(com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement)
           
 com.liferay.portlet.social.model.SocialActivityAchievement updateImpl(com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
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, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final java.lang.String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U

FINDER_PATH_COUNT_BY_G_U

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_U

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N

FINDER_PATH_COUNT_BY_G_N

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_N

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_F

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_F

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_F

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_F

FINDER_PATH_COUNT_BY_G_F

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_F

FINDER_PATH_FETCH_BY_G_U_N

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_G_U_N

FINDER_PATH_COUNT_BY_G_U_N

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_U_N

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_F

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_F

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_F

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_F

FINDER_PATH_COUNT_BY_G_U_F

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_U_F

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL

socialActivityPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivityPersistence socialActivityPersistence

socialActivityAchievementPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence socialActivityAchievementPersistence

socialActivityCounterPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence socialActivityCounterPersistence

socialActivityLimitPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence socialActivityLimitPersistence

socialActivitySettingPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence socialActivitySettingPersistence

socialRelationPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialRelationPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialRelationPersistence socialRelationPersistence

socialRequestPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialRequestPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialRequestPersistence socialRequestPersistence

groupPersistence

@BeanReference(type=com.liferay.portal.service.persistence.GroupPersistence.class)
protected com.liferay.portal.service.persistence.GroupPersistence groupPersistence

resourcePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePersistence.class)
protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class)
protected com.liferay.portal.service.persistence.UserPersistence userPersistence
Constructor Detail

SocialActivityAchievementPersistenceImpl

public SocialActivityAchievementPersistenceImpl()
Method Detail

cacheResult

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

Specified by:
cacheResult in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
socialActivityAchievement - the social activity achievement

cacheResult

public void cacheResult(java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> socialActivityAchievements)
Caches the social activity achievements in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.social.service.persistence.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 com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialActivityAchievement>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivityAchievement>

clearCache

public void clearCache(com.liferay.portlet.social.model.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 com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialActivityAchievement>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivityAchievement>

clearCache

public void clearCache(java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> socialActivityAchievements)
Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialActivityAchievement>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivityAchievement>

clearUniqueFindersCache

protected void clearUniqueFindersCache(com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement)

create

public com.liferay.portlet.social.model.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 com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
activityAchievementId - the primary key for the new social activity achievement
Returns:
the new social activity achievement

remove

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

Specified by:
remove in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
activityAchievementId - the primary key of the social activity achievement
Returns:
the social activity achievement that was removed
Throws:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

remove

public com.liferay.portlet.social.model.SocialActivityAchievement remove(java.io.Serializable primaryKey)
                                                                  throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                         com.liferay.portal.kernel.exception.SystemException
Removes the social activity achievement with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialActivityAchievement>
Overrides:
remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivityAchievement>
Parameters:
primaryKey - the primary key of the social activity achievement
Returns:
the social activity achievement that was removed
Throws:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeImpl

protected com.liferay.portlet.social.model.SocialActivityAchievement removeImpl(com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement)
                                                                         throws com.liferay.portal.kernel.exception.SystemException
Overrides:
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivityAchievement>
Throws:
com.liferay.portal.kernel.exception.SystemException

updateImpl

public com.liferay.portlet.social.model.SocialActivityAchievement updateImpl(com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement,
                                                                             boolean merge)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Specified by:
updateImpl in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Overrides:
updateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivityAchievement>
Throws:
com.liferay.portal.kernel.exception.SystemException

toUnwrappedModel

protected com.liferay.portlet.social.model.SocialActivityAchievement toUnwrappedModel(com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement)

findByPrimaryKey

public com.liferay.portlet.social.model.SocialActivityAchievement findByPrimaryKey(java.io.Serializable primaryKey)
                                                                            throws com.liferay.portal.NoSuchModelException,
                                                                                   com.liferay.portal.kernel.exception.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 com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialActivityAchievement>
Overrides:
findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialActivityAchievement>
Parameters:
primaryKey - the primary key of the social activity achievement
Returns:
the social activity achievement
Throws:
com.liferay.portal.NoSuchModelException - if a social activity achievement with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByPrimaryKey

public com.liferay.portlet.social.model.SocialActivityAchievement findByPrimaryKey(long activityAchievementId)
                                                                            throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                   com.liferay.portal.kernel.exception.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 com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
activityAchievementId - the primary key of the social activity achievement
Returns:
the social activity achievement
Throws:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.social.model.SocialActivityAchievement fetchByPrimaryKey(java.io.Serializable primaryKey)
                                                                             throws com.liferay.portal.kernel.exception.SystemException
Returns the social activity achievement with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialActivityAchievement>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.social.model.SocialActivityAchievement fetchByPrimaryKey(long activityAchievementId)
                                                                             throws com.liferay.portal.kernel.exception.SystemException
Returns the social activity achievement with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByGroupId(long groupId)
                                                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns all the social activity achievements where groupId = ?.

Specified by:
findByGroupId in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
Returns:
the matching social activity achievements
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByGroupId(long groupId,
                                                                                                int start,
                                                                                                int end)
                                                                                         throws com.liferay.portal.kernel.exception.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.

Specified by:
findByGroupId in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByGroupId(long groupId,
                                                                                                int start,
                                                                                                int end,
                                                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                         throws com.liferay.portal.kernel.exception.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.

Specified by:
findByGroupId in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId_First

public com.liferay.portlet.social.model.SocialActivityAchievement findByGroupId_First(long groupId,
                                                                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                               throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                      com.liferay.portal.kernel.exception.SystemException
Returns the first social activity achievement in the ordered set 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.

Specified by:
findByGroupId_First in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity achievement
Throws:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId_Last

public com.liferay.portlet.social.model.SocialActivityAchievement findByGroupId_Last(long groupId,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                              throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                     com.liferay.portal.kernel.exception.SystemException
Returns the last social activity achievement in the ordered set 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.

Specified by:
findByGroupId_Last in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity achievement
Throws:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public com.liferay.portlet.social.model.SocialActivityAchievement[] findByGroupId_PrevAndNext(long activityAchievementId,
                                                                                              long groupId,
                                                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                       throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                              com.liferay.portal.kernel.exception.SystemException
Returns the social activity achievements before and after the current social activity achievement in the ordered set 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.

Specified by:
findByGroupId_PrevAndNext in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByGroupId_PrevAndNext

protected com.liferay.portlet.social.model.SocialActivityAchievement getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                              com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement,
                                                                                              long groupId,
                                                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                              boolean previous)

findByG_U

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U(long groupId,
                                                                                            long userId)
                                                                                     throws com.liferay.portal.kernel.exception.SystemException
Returns all the social activity achievements where groupId = ? and userId = ?.

Specified by:
findByG_U in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
userId - the user ID
Returns:
the matching social activity achievements
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U(long groupId,
                                                                                            long userId,
                                                                                            int start,
                                                                                            int end)
                                                                                     throws com.liferay.portal.kernel.exception.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.

Specified by:
findByG_U in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U(long groupId,
                                                                                            long userId,
                                                                                            int start,
                                                                                            int end,
                                                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                     throws com.liferay.portal.kernel.exception.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.

Specified by:
findByG_U in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U_First

public com.liferay.portlet.social.model.SocialActivityAchievement findByG_U_First(long groupId,
                                                                                  long userId,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                           throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                  com.liferay.portal.kernel.exception.SystemException
Returns the first social activity achievement in the ordered set 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.

Specified by:
findByG_U_First in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U_Last

public com.liferay.portlet.social.model.SocialActivityAchievement findByG_U_Last(long groupId,
                                                                                 long userId,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                          throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                 com.liferay.portal.kernel.exception.SystemException
Returns the last social activity achievement in the ordered set 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.

Specified by:
findByG_U_Last in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U_PrevAndNext

public com.liferay.portlet.social.model.SocialActivityAchievement[] findByG_U_PrevAndNext(long activityAchievementId,
                                                                                          long groupId,
                                                                                          long userId,
                                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                   throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                          com.liferay.portal.kernel.exception.SystemException
Returns the social activity achievements before and after the current social activity achievement in the ordered set 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.

Specified by:
findByG_U_PrevAndNext in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByG_U_PrevAndNext

protected com.liferay.portlet.social.model.SocialActivityAchievement getByG_U_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                          com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement,
                                                                                          long groupId,
                                                                                          long userId,
                                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                          boolean previous)

findByG_N

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_N(long groupId,
                                                                                            java.lang.String name)
                                                                                     throws com.liferay.portal.kernel.exception.SystemException
Returns all the social activity achievements where groupId = ? and name = ?.

Specified by:
findByG_N in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
name - the name
Returns:
the matching social activity achievements
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_N

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_N(long groupId,
                                                                                            java.lang.String name,
                                                                                            int start,
                                                                                            int end)
                                                                                     throws com.liferay.portal.kernel.exception.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.

Specified by:
findByG_N in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_N

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_N(long groupId,
                                                                                            java.lang.String name,
                                                                                            int start,
                                                                                            int end,
                                                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                     throws com.liferay.portal.kernel.exception.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.

Specified by:
findByG_N in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_N_First

public com.liferay.portlet.social.model.SocialActivityAchievement findByG_N_First(long groupId,
                                                                                  java.lang.String name,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                           throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                  com.liferay.portal.kernel.exception.SystemException
Returns the first social activity achievement in the ordered set 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.

Specified by:
findByG_N_First in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_N_Last

public com.liferay.portlet.social.model.SocialActivityAchievement findByG_N_Last(long groupId,
                                                                                 java.lang.String name,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                          throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                 com.liferay.portal.kernel.exception.SystemException
Returns the last social activity achievement in the ordered set 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.

Specified by:
findByG_N_Last in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_N_PrevAndNext

public com.liferay.portlet.social.model.SocialActivityAchievement[] findByG_N_PrevAndNext(long activityAchievementId,
                                                                                          long groupId,
                                                                                          java.lang.String name,
                                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                   throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                          com.liferay.portal.kernel.exception.SystemException
Returns the social activity achievements before and after the current social activity achievement in the ordered set 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.

Specified by:
findByG_N_PrevAndNext in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByG_N_PrevAndNext

protected com.liferay.portlet.social.model.SocialActivityAchievement getByG_N_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                          com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement,
                                                                                          long groupId,
                                                                                          java.lang.String name,
                                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                          boolean previous)

findByG_F

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_F(long groupId,
                                                                                            boolean firstInGroup)
                                                                                     throws com.liferay.portal.kernel.exception.SystemException
Returns all the social activity achievements where groupId = ? and firstInGroup = ?.

Specified by:
findByG_F in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
firstInGroup - the first in group
Returns:
the matching social activity achievements
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_F

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_F(long groupId,
                                                                                            boolean firstInGroup,
                                                                                            int start,
                                                                                            int end)
                                                                                     throws com.liferay.portal.kernel.exception.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.

Specified by:
findByG_F in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_F

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_F(long groupId,
                                                                                            boolean firstInGroup,
                                                                                            int start,
                                                                                            int end,
                                                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                     throws com.liferay.portal.kernel.exception.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.

Specified by:
findByG_F in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_F_First

public com.liferay.portlet.social.model.SocialActivityAchievement findByG_F_First(long groupId,
                                                                                  boolean firstInGroup,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                           throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                  com.liferay.portal.kernel.exception.SystemException
Returns the first social activity achievement in the ordered set 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.

Specified by:
findByG_F_First in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_F_Last

public com.liferay.portlet.social.model.SocialActivityAchievement findByG_F_Last(long groupId,
                                                                                 boolean firstInGroup,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                          throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                 com.liferay.portal.kernel.exception.SystemException
Returns the last social activity achievement in the ordered set 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.

Specified by:
findByG_F_Last in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_F_PrevAndNext

public com.liferay.portlet.social.model.SocialActivityAchievement[] findByG_F_PrevAndNext(long activityAchievementId,
                                                                                          long groupId,
                                                                                          boolean firstInGroup,
                                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                   throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                          com.liferay.portal.kernel.exception.SystemException
Returns the social activity achievements before and after the current social activity achievement in the ordered set 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.

Specified by:
findByG_F_PrevAndNext in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByG_F_PrevAndNext

protected com.liferay.portlet.social.model.SocialActivityAchievement getByG_F_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                          com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement,
                                                                                          long groupId,
                                                                                          boolean firstInGroup,
                                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                          boolean previous)

findByG_U_N

public com.liferay.portlet.social.model.SocialActivityAchievement findByG_U_N(long groupId,
                                                                              long userId,
                                                                              java.lang.String name)
                                                                       throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                              com.liferay.portal.kernel.exception.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 com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
userId - the user ID
name - the name
Returns:
the matching social activity achievement
Throws:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByG_U_N

public com.liferay.portlet.social.model.SocialActivityAchievement fetchByG_U_N(long groupId,
                                                                               long userId,
                                                                               java.lang.String name)
                                                                        throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.social.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByG_U_N

public com.liferay.portlet.social.model.SocialActivityAchievement fetchByG_U_N(long groupId,
                                                                               long userId,
                                                                               java.lang.String name,
                                                                               boolean retrieveFromCache)
                                                                        throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.social.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U_F

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U_F(long groupId,
                                                                                              long userId,
                                                                                              boolean firstInGroup)
                                                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.

Specified by:
findByG_U_F in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
userId - the user ID
firstInGroup - the first in group
Returns:
the matching social activity achievements
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U_F

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U_F(long groupId,
                                                                                              long userId,
                                                                                              boolean firstInGroup,
                                                                                              int start,
                                                                                              int end)
                                                                                       throws com.liferay.portal.kernel.exception.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.

Specified by:
findByG_U_F in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U_F

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U_F(long groupId,
                                                                                              long userId,
                                                                                              boolean firstInGroup,
                                                                                              int start,
                                                                                              int end,
                                                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                       throws com.liferay.portal.kernel.exception.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.

Specified by:
findByG_U_F in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U_F_First

public com.liferay.portlet.social.model.SocialActivityAchievement findByG_U_F_First(long groupId,
                                                                                    long userId,
                                                                                    boolean firstInGroup,
                                                                                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                             throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                    com.liferay.portal.kernel.exception.SystemException
Returns the first social activity achievement in the ordered set 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.

Specified by:
findByG_U_F_First in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U_F_Last

public com.liferay.portlet.social.model.SocialActivityAchievement findByG_U_F_Last(long groupId,
                                                                                   long userId,
                                                                                   boolean firstInGroup,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                            throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                   com.liferay.portal.kernel.exception.SystemException
Returns the last social activity achievement in the ordered set 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.

Specified by:
findByG_U_F_Last in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_U_F_PrevAndNext

public com.liferay.portlet.social.model.SocialActivityAchievement[] findByG_U_F_PrevAndNext(long activityAchievementId,
                                                                                            long groupId,
                                                                                            long userId,
                                                                                            boolean firstInGroup,
                                                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                     throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                                                                                            com.liferay.portal.kernel.exception.SystemException
Returns the social activity achievements before and after the current social activity achievement in the ordered set 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.

Specified by:
findByG_U_F_PrevAndNext in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portlet.social.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByG_U_F_PrevAndNext

protected com.liferay.portlet.social.model.SocialActivityAchievement getByG_U_F_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                            com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement,
                                                                                            long groupId,
                                                                                            long userId,
                                                                                            boolean firstInGroup,
                                                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                            boolean previous)

findAll

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findAll()
                                                                                   throws com.liferay.portal.kernel.exception.SystemException
Returns all the social activity achievements.

Specified by:
findAll in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Returns:
the social activity achievements
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findAll(int start,
                                                                                          int end)
                                                                                   throws com.liferay.portal.kernel.exception.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.

Specified by:
findAll in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findAll(int start,
                                                                                          int end,
                                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                   throws com.liferay.portal.kernel.exception.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.

Specified by:
findAll in interface com.liferay.portlet.social.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByGroupId

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

Specified by:
removeByGroupId in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByG_U

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

Specified by:
removeByG_U in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
userId - the user ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByG_N

public void removeByG_N(long groupId,
                        java.lang.String name)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes all the social activity achievements where groupId = ? and name = ? from the database.

Specified by:
removeByG_N in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
name - the name
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByG_F

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

Specified by:
removeByG_F in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
firstInGroup - the first in group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByG_U_N

public void removeByG_U_N(long groupId,
                          long userId,
                          java.lang.String name)
                   throws com.liferay.portlet.social.NoSuchActivityAchievementException,
                          com.liferay.portal.kernel.exception.SystemException
Removes the social activity achievement where groupId = ? and userId = ? and name = ? from the database.

Specified by:
removeByG_U_N in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
userId - the user ID
name - the name
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.social.NoSuchActivityAchievementException

removeByG_U_F

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

Specified by:
removeByG_U_F in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
userId - the user ID
firstInGroup - the first in group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeAll

public void removeAll()
               throws com.liferay.portal.kernel.exception.SystemException
Removes all the social activity achievements from the database.

Specified by:
removeAll in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByGroupId

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

Specified by:
countByGroupId in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching social activity achievements
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByG_U

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

Specified by:
countByG_U in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
userId - the user ID
Returns:
the number of matching social activity achievements
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByG_N

public int countByG_N(long groupId,
                      java.lang.String name)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social activity achievements where groupId = ? and name = ?.

Specified by:
countByG_N in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
name - the name
Returns:
the number of matching social activity achievements
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByG_F

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

Specified by:
countByG_F in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
firstInGroup - the first in group
Returns:
the number of matching social activity achievements
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByG_U_N

public int countByG_U_N(long groupId,
                        long userId,
                        java.lang.String name)
                 throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social activity achievements where groupId = ? and userId = ? and name = ?.

Specified by:
countByG_U_N in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
userId - the user ID
name - the name
Returns:
the number of matching social activity achievements
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByG_U_F

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

Specified by:
countByG_U_F in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Parameters:
groupId - the group ID
userId - the user ID
firstInGroup - the first in group
Returns:
the number of matching social activity achievements
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countAll

public int countAll()
             throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social activity achievements.

Specified by:
countAll in interface com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence
Returns:
the number of social activity achievements
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

afterPropertiesSet

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


destroy

public void destroy()