Class SocialActivityAchievementPersistenceImpl

Object
com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
com.liferay.portlet.social.service.persistence.impl.SocialActivityAchievementPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivityAchievement>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivityAchievement>, com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence

public class SocialActivityAchievementPersistenceImpl extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement> implements com.liferay.social.kernel.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
{$generated.description}
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl

    CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initializes the social activity achievement persistence.
    void
    cacheResult(com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement)
    Caches the social activity achievement in the entity cache if it is enabled.
    void
    cacheResult(List<com.liferay.social.kernel.model.SocialActivityAchievement> socialActivityAchievements)
    Caches the social activity achievements in the entity cache if it is enabled.
    protected void
    cacheUniqueFindersCache(SocialActivityAchievementModelImpl socialActivityAchievementModelImpl)
     
    void
    Clears the cache for all social activity achievements.
    void
    clearCache(com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement)
    Clears the cache for the social activity achievement.
    void
    clearCache(List<com.liferay.social.kernel.model.SocialActivityAchievement> socialActivityAchievements)
     
    void
    clearCache(Set<Serializable> primaryKeys)
     
    int
    Returns the number of social activity achievements.
    int
    countByG_F(long groupId, boolean firstInGroup)
    Returns the number of social activity achievements where groupId = ? and firstInGroup = ?.
    int
    countByG_N(long groupId, String name)
    Returns the number of social activity achievements where groupId = ? and name = ?.
    int
    countByG_U(long groupId, long userId)
    Returns the number of social activity achievements where groupId = ? and userId = ?.
    int
    countByG_U_F(long groupId, long userId, boolean firstInGroup)
    Returns the number of social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.
    int
    countByG_U_N(long groupId, long userId, String name)
    Returns the number of social activity achievements where groupId = ? and userId = ? and name = ?.
    int
    countByGroupId(long groupId)
    Returns the number of social activity achievements where groupId = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    create(long activityAchievementId)
    Creates a new social activity achievement with the primary key.
    void
     
    com.liferay.social.kernel.model.SocialActivityAchievement
    fetchByG_F_First(long groupId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    fetchByG_F_Last(long groupId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    fetchByG_N_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the first social activity achievement in the ordered set where groupId = ? and name = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    fetchByG_N_Last(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the last social activity achievement in the ordered set where groupId = ? and name = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    fetchByG_U_F_First(long groupId, long userId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    fetchByG_U_F_Last(long groupId, long userId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    fetchByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    fetchByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    fetchByG_U_N(long groupId, long userId, String name)
    Returns the social activity achievement where groupId = ? and userId = ? and name = ? or returns null if it could not be found.
    com.liferay.social.kernel.model.SocialActivityAchievement
    fetchByG_U_N(long groupId, long userId, String name, boolean useFinderCache)
    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.social.kernel.model.SocialActivityAchievement
    fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the first social activity achievement in the ordered set where groupId = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the last social activity achievement in the ordered set where groupId = ?.
    com.liferay.social.kernel.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.social.kernel.model.SocialActivityAchievement
    Returns the social activity achievement with the primary key or returns null if it could not be found.
    Map<Serializable,com.liferay.social.kernel.model.SocialActivityAchievement>
     
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    Returns all the social activity achievements.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findAll(int start, int end)
    Returns a range of all the social activity achievements.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns an ordered range of all the social activity achievements.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social activity achievements.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByG_F(long groupId, boolean firstInGroup)
    Returns all the social activity achievements where groupId = ? and firstInGroup = ?.
    List<com.liferay.social.kernel.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 = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByG_F(long groupId, boolean firstInGroup, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByG_F(long groupId, boolean firstInGroup, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    findByG_F_First(long groupId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    findByG_F_Last(long groupId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement[]
    findByG_F_PrevAndNext(long activityAchievementId, long groupId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByG_N(long groupId, String name)
    Returns all the social activity achievements where groupId = ? and name = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByG_N(long groupId, String name, int start, int end)
    Returns a range of all the social activity achievements where groupId = ? and name = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByG_N(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns an ordered range of all the social activity achievements where groupId = ? and name = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByG_N(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social activity achievements where groupId = ? and name = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    findByG_N_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the first social activity achievement in the ordered set where groupId = ? and name = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    findByG_N_Last(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the last social activity achievement in the ordered set where groupId = ? and name = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement[]
    findByG_N_PrevAndNext(long activityAchievementId, long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and name = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByG_U(long groupId, long userId)
    Returns all the social activity achievements where groupId = ? and userId = ?.
    List<com.liferay.social.kernel.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 = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByG_U_F(long groupId, long userId, boolean firstInGroup)
    Returns all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.
    List<com.liferay.social.kernel.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 = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByG_U_F(long groupId, long userId, boolean firstInGroup, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns an ordered range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByG_U_F(long groupId, long userId, boolean firstInGroup, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    findByG_U_F_First(long groupId, long userId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    findByG_U_F_Last(long groupId, long userId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement[]
    findByG_U_F_PrevAndNext(long activityAchievementId, long groupId, long userId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    findByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    findByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    findByG_U_N(long groupId, long userId, String name)
    Returns the social activity achievement where groupId = ? and userId = ? and name = ? or throws a NoSuchActivityAchievementException if it could not be found.
    com.liferay.social.kernel.model.SocialActivityAchievement[]
    findByG_U_PrevAndNext(long activityAchievementId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByGroupId(long groupId)
    Returns all the social activity achievements where groupId = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByGroupId(long groupId, int start, int end)
    Returns a range of all the social activity achievements where groupId = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns an ordered range of all the social activity achievements where groupId = ?.
    List<com.liferay.social.kernel.model.SocialActivityAchievement>
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social activity achievements where groupId = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the first social activity achievement in the ordered set where groupId = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement
    findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the last social activity achievement in the ordered set where groupId = ?.
    com.liferay.social.kernel.model.SocialActivityAchievement[]
    findByGroupId_PrevAndNext(long activityAchievementId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
    Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ?.
    com.liferay.social.kernel.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.social.kernel.model.SocialActivityAchievement
    Returns the social activity achievement with the primary key or throws a com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found.
    protected com.liferay.social.kernel.model.SocialActivityAchievement
    getByG_F_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement, long groupId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean previous)
     
    protected com.liferay.social.kernel.model.SocialActivityAchievement
    getByG_N_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement, long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean previous)
     
    protected com.liferay.social.kernel.model.SocialActivityAchievement
    getByG_U_F_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement, long groupId, long userId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean previous)
     
    protected com.liferay.social.kernel.model.SocialActivityAchievement
    getByG_U_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean previous)
     
    protected com.liferay.social.kernel.model.SocialActivityAchievement
    getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean previous)
     
    getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
     
    protected com.liferay.portal.kernel.dao.orm.EntityCache
     
    protected com.liferay.portal.kernel.dao.orm.FinderCache
     
     
    protected String
     
    protected String
     
     
     
     
    com.liferay.social.kernel.model.SocialActivityAchievement
    remove(long activityAchievementId)
    Removes the social activity achievement with the primary key from the database.
    com.liferay.social.kernel.model.SocialActivityAchievement
    remove(Serializable primaryKey)
    Removes the social activity achievement with the primary key from the database.
    void
    Removes all the social activity achievements from the database.
    void
    removeByG_F(long groupId, boolean firstInGroup)
    Removes all the social activity achievements where groupId = ? and firstInGroup = ? from the database.
    void
    removeByG_N(long groupId, String name)
    Removes all the social activity achievements where groupId = ? and name = ? from the database.
    void
    removeByG_U(long groupId, long userId)
    Removes all the social activity achievements where groupId = ? and userId = ? 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.
    com.liferay.social.kernel.model.SocialActivityAchievement
    removeByG_U_N(long groupId, long userId, String name)
    Removes the social activity achievement where groupId = ? and userId = ? and name = ? from the database.
    void
    removeByGroupId(long groupId)
    Removes all the social activity achievements where groupId = ? from the database.
    protected com.liferay.social.kernel.model.SocialActivityAchievement
    removeImpl(com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement)
     
    com.liferay.social.kernel.model.SocialActivityAchievement
    updateImpl(com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement)
     

    Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl

    appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, 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.kernel.service.persistence.BasePersistence

    closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, removeByFunction, setDataSource, unregisterListener, update, update
  • Field Details

    • FINDER_CLASS_NAME_ENTITY

      public static final String FINDER_CLASS_NAME_ENTITY
    • FINDER_CLASS_NAME_LIST_WITH_PAGINATION

      public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
    • FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

      public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
  • Constructor Details

    • SocialActivityAchievementPersistenceImpl

      public SocialActivityAchievementPersistenceImpl()
  • Method Details

    • findByGroupId

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByGroupId(long groupId)
      Returns all the social activity achievements where groupId = ?.
      Specified by:
      findByGroupId in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      Returns:
      the matching social activity achievements
    • findByGroupId

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByGroupId(long groupId, int start, int end)
      Returns a range of all the social activity achievements where groupId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findByGroupId in interface com.liferay.social.kernel.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
    • findByGroupId

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns an ordered range of all the social activity achievements where groupId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findByGroupId in interface com.liferay.social.kernel.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
    • findByGroupId

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social activity achievements where groupId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findByGroupId in interface com.liferay.social.kernel.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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social activity achievements
    • findByGroupId_First

      public com.liferay.social.kernel.model.SocialActivityAchievement findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the first social activity achievement in the ordered set where groupId = ?.
      Specified by:
      findByGroupId_First in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
    • fetchByGroupId_First

      public com.liferay.social.kernel.model.SocialActivityAchievement fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns the first social activity achievement in the ordered set where groupId = ?.
      Specified by:
      fetchByGroupId_First in interface com.liferay.social.kernel.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, or null if a matching social activity achievement could not be found
    • findByGroupId_Last

      public com.liferay.social.kernel.model.SocialActivityAchievement findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the last social activity achievement in the ordered set where groupId = ?.
      Specified by:
      findByGroupId_Last in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
    • fetchByGroupId_Last

      public com.liferay.social.kernel.model.SocialActivityAchievement fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns the last social activity achievement in the ordered set where groupId = ?.
      Specified by:
      fetchByGroupId_Last in interface com.liferay.social.kernel.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, or null if a matching social activity achievement could not be found
    • findByGroupId_PrevAndNext

      public com.liferay.social.kernel.model.SocialActivityAchievement[] findByGroupId_PrevAndNext(long activityAchievementId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ?.
      Specified by:
      findByGroupId_PrevAndNext in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
    • getByGroupId_PrevAndNext

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

      public void removeByGroupId(long groupId)
      Removes all the social activity achievements where groupId = ? from the database.
      Specified by:
      removeByGroupId in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
    • countByGroupId

      public int countByGroupId(long groupId)
      Returns the number of social activity achievements where groupId = ?.
      Specified by:
      countByGroupId in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching social activity achievements
    • findByG_U

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByG_U(long groupId, long userId)
      Returns all the social activity achievements where groupId = ? and userId = ?.
      Specified by:
      findByG_U in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      userId - the user ID
      Returns:
      the matching social activity achievements
    • findByG_U

      public List<com.liferay.social.kernel.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 = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findByG_U in interface com.liferay.social.kernel.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
    • findByG_U

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findByG_U in interface com.liferay.social.kernel.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
    • findByG_U

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findByG_U in interface com.liferay.social.kernel.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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social activity achievements
    • findByG_U_First

      public com.liferay.social.kernel.model.SocialActivityAchievement findByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?.
      Specified by:
      findByG_U_First in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
    • fetchByG_U_First

      public com.liferay.social.kernel.model.SocialActivityAchievement fetchByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?.
      Specified by:
      fetchByG_U_First in interface com.liferay.social.kernel.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, or null if a matching social activity achievement could not be found
    • findByG_U_Last

      public com.liferay.social.kernel.model.SocialActivityAchievement findByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?.
      Specified by:
      findByG_U_Last in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
    • fetchByG_U_Last

      public com.liferay.social.kernel.model.SocialActivityAchievement fetchByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?.
      Specified by:
      fetchByG_U_Last in interface com.liferay.social.kernel.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, or null if a matching social activity achievement could not be found
    • findByG_U_PrevAndNext

      public com.liferay.social.kernel.model.SocialActivityAchievement[] findByG_U_PrevAndNext(long activityAchievementId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ?.
      Specified by:
      findByG_U_PrevAndNext in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
    • getByG_U_PrevAndNext

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

      public void removeByG_U(long groupId, long userId)
      Removes all the social activity achievements where groupId = ? and userId = ? from the database.
      Specified by:
      removeByG_U in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      userId - the user ID
    • countByG_U

      public int countByG_U(long groupId, long userId)
      Returns the number of social activity achievements where groupId = ? and userId = ?.
      Specified by:
      countByG_U in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      userId - the user ID
      Returns:
      the number of matching social activity achievements
    • findByG_N

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByG_N(long groupId, String name)
      Returns all the social activity achievements where groupId = ? and name = ?.
      Specified by:
      findByG_N in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the matching social activity achievements
    • findByG_N

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

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findByG_N in interface com.liferay.social.kernel.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
    • findByG_N

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByG_N(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns an ordered range of all the social activity achievements where groupId = ? and name = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findByG_N in interface com.liferay.social.kernel.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
    • findByG_N

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByG_N(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social activity achievements where groupId = ? and name = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findByG_N in interface com.liferay.social.kernel.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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social activity achievements
    • findByG_N_First

      public com.liferay.social.kernel.model.SocialActivityAchievement findByG_N_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the first social activity achievement in the ordered set where groupId = ? and name = ?.
      Specified by:
      findByG_N_First in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
    • fetchByG_N_First

      public com.liferay.social.kernel.model.SocialActivityAchievement fetchByG_N_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns the first social activity achievement in the ordered set where groupId = ? and name = ?.
      Specified by:
      fetchByG_N_First in interface com.liferay.social.kernel.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, or null if a matching social activity achievement could not be found
    • findByG_N_Last

      public com.liferay.social.kernel.model.SocialActivityAchievement findByG_N_Last(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the last social activity achievement in the ordered set where groupId = ? and name = ?.
      Specified by:
      findByG_N_Last in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
    • fetchByG_N_Last

      public com.liferay.social.kernel.model.SocialActivityAchievement fetchByG_N_Last(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns the last social activity achievement in the ordered set where groupId = ? and name = ?.
      Specified by:
      fetchByG_N_Last in interface com.liferay.social.kernel.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, or null if a matching social activity achievement could not be found
    • findByG_N_PrevAndNext

      public com.liferay.social.kernel.model.SocialActivityAchievement[] findByG_N_PrevAndNext(long activityAchievementId, long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and name = ?.
      Specified by:
      findByG_N_PrevAndNext in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
    • getByG_N_PrevAndNext

      protected com.liferay.social.kernel.model.SocialActivityAchievement getByG_N_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement, long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean previous)
    • removeByG_N

      public void removeByG_N(long groupId, String name)
      Removes all the social activity achievements where groupId = ? and name = ? from the database.
      Specified by:
      removeByG_N in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      name - the name
    • countByG_N

      public int countByG_N(long groupId, String name)
      Returns the number of social activity achievements where groupId = ? and name = ?.
      Specified by:
      countByG_N in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the number of matching social activity achievements
    • findByG_F

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByG_F(long groupId, boolean firstInGroup)
      Returns all the social activity achievements where groupId = ? and firstInGroup = ?.
      Specified by:
      findByG_F in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      firstInGroup - the first in group
      Returns:
      the matching social activity achievements
    • findByG_F

      public List<com.liferay.social.kernel.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 = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findByG_F in interface com.liferay.social.kernel.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
    • findByG_F

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByG_F(long groupId, boolean firstInGroup, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findByG_F in interface com.liferay.social.kernel.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
    • findByG_F

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByG_F(long groupId, boolean firstInGroup, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findByG_F in interface com.liferay.social.kernel.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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social activity achievements
    • findByG_F_First

      public com.liferay.social.kernel.model.SocialActivityAchievement findByG_F_First(long groupId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
      Specified by:
      findByG_F_First in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
    • fetchByG_F_First

      public com.liferay.social.kernel.model.SocialActivityAchievement fetchByG_F_First(long groupId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
      Specified by:
      fetchByG_F_First in interface com.liferay.social.kernel.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, or null if a matching social activity achievement could not be found
    • findByG_F_Last

      public com.liferay.social.kernel.model.SocialActivityAchievement findByG_F_Last(long groupId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
      Specified by:
      findByG_F_Last in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
    • fetchByG_F_Last

      public com.liferay.social.kernel.model.SocialActivityAchievement fetchByG_F_Last(long groupId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
      Specified by:
      fetchByG_F_Last in interface com.liferay.social.kernel.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, or null if a matching social activity achievement could not be found
    • findByG_F_PrevAndNext

      public com.liferay.social.kernel.model.SocialActivityAchievement[] findByG_F_PrevAndNext(long activityAchievementId, long groupId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and firstInGroup = ?.
      Specified by:
      findByG_F_PrevAndNext in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
    • getByG_F_PrevAndNext

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

      public void removeByG_F(long groupId, boolean firstInGroup)
      Removes all the social activity achievements where groupId = ? and firstInGroup = ? from the database.
      Specified by:
      removeByG_F in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      firstInGroup - the first in group
    • countByG_F

      public int countByG_F(long groupId, boolean firstInGroup)
      Returns the number of social activity achievements where groupId = ? and firstInGroup = ?.
      Specified by:
      countByG_F in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      firstInGroup - the first in group
      Returns:
      the number of matching social activity achievements
    • findByG_U_N

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

      public com.liferay.social.kernel.model.SocialActivityAchievement fetchByG_U_N(long groupId, long userId, String name)
      Returns the social activity achievement where groupId = ? and userId = ? and name = ? or returns null if it could not be found. Uses the finder cache.
      Specified by:
      fetchByG_U_N in interface com.liferay.social.kernel.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
    • fetchByG_U_N

      public com.liferay.social.kernel.model.SocialActivityAchievement fetchByG_U_N(long groupId, long userId, String name, boolean useFinderCache)
      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.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      userId - the user ID
      name - the name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching social activity achievement, or null if a matching social activity achievement could not be found
    • removeByG_U_N

      public com.liferay.social.kernel.model.SocialActivityAchievement removeByG_U_N(long groupId, long userId, String name) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Removes the social activity achievement where groupId = ? and userId = ? and name = ? from the database.
      Specified by:
      removeByG_U_N in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      userId - the user ID
      name - the name
      Returns:
      the social activity achievement that was removed
      Throws:
      com.liferay.social.kernel.exception.NoSuchActivityAchievementException
    • countByG_U_N

      public int countByG_U_N(long groupId, long userId, String name)
      Returns the number of social activity achievements where groupId = ? and userId = ? and name = ?.
      Specified by:
      countByG_U_N in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      userId - the user ID
      name - the name
      Returns:
      the number of matching social activity achievements
    • findByG_U_F

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByG_U_F(long groupId, long userId, boolean firstInGroup)
      Returns all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.
      Specified by:
      findByG_U_F in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      userId - the user ID
      firstInGroup - the first in group
      Returns:
      the matching social activity achievements
    • findByG_U_F

      public List<com.liferay.social.kernel.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 = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findByG_U_F in interface com.liferay.social.kernel.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
    • findByG_U_F

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByG_U_F(long groupId, long userId, boolean firstInGroup, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns an ordered range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findByG_U_F in interface com.liferay.social.kernel.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
    • findByG_U_F

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findByG_U_F(long groupId, long userId, boolean firstInGroup, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findByG_U_F in interface com.liferay.social.kernel.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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social activity achievements
    • findByG_U_F_First

      public com.liferay.social.kernel.model.SocialActivityAchievement findByG_U_F_First(long groupId, long userId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
      Specified by:
      findByG_U_F_First in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
    • fetchByG_U_F_First

      public com.liferay.social.kernel.model.SocialActivityAchievement fetchByG_U_F_First(long groupId, long userId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
      Specified by:
      fetchByG_U_F_First in interface com.liferay.social.kernel.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, or null if a matching social activity achievement could not be found
    • findByG_U_F_Last

      public com.liferay.social.kernel.model.SocialActivityAchievement findByG_U_F_Last(long groupId, long userId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
      Specified by:
      findByG_U_F_Last in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchActivityAchievementException - if a matching social activity achievement could not be found
    • fetchByG_U_F_Last

      public com.liferay.social.kernel.model.SocialActivityAchievement fetchByG_U_F_Last(long groupId, long userId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
      Specified by:
      fetchByG_U_F_Last in interface com.liferay.social.kernel.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, or null if a matching social activity achievement could not be found
    • findByG_U_F_PrevAndNext

      public com.liferay.social.kernel.model.SocialActivityAchievement[] findByG_U_F_PrevAndNext(long activityAchievementId, long groupId, long userId, boolean firstInGroup, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?.
      Specified by:
      findByG_U_F_PrevAndNext in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
    • getByG_U_F_PrevAndNext

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

      public 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.
      Specified by:
      removeByG_U_F in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      groupId - the group ID
      userId - the user ID
      firstInGroup - the first in group
    • countByG_U_F

      public int countByG_U_F(long groupId, long userId, boolean firstInGroup)
      Returns the number of social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.
      Specified by:
      countByG_U_F in interface com.liferay.social.kernel.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
    • cacheResult

      public void cacheResult(com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement)
      Caches the social activity achievement in the entity cache if it is enabled.
      Specified by:
      cacheResult in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Overrides:
      cacheResult in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
      Parameters:
      socialActivityAchievement - the social activity achievement
    • cacheResult

      public void cacheResult(List<com.liferay.social.kernel.model.SocialActivityAchievement> socialActivityAchievements)
      Caches the social activity achievements in the entity cache if it is enabled.
      Specified by:
      cacheResult in interface com.liferay.social.kernel.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.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
      Overrides:
      clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
    • clearCache

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

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

      public void clearCache(Set<Serializable> primaryKeys)
      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
    • cacheUniqueFindersCache

      protected void cacheUniqueFindersCache(SocialActivityAchievementModelImpl socialActivityAchievementModelImpl)
    • create

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

      public com.liferay.social.kernel.model.SocialActivityAchievement remove(long activityAchievementId) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      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.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Parameters:
      activityAchievementId - the primary key of the social activity achievement
      Returns:
      the social activity achievement that was removed
      Throws:
      com.liferay.social.kernel.exception.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
    • remove

      public com.liferay.social.kernel.model.SocialActivityAchievement remove(Serializable primaryKey) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      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.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
      Overrides:
      remove in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
      Parameters:
      primaryKey - the primary key of the social activity achievement
      Returns:
      the social activity achievement that was removed
      Throws:
      com.liferay.social.kernel.exception.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
    • removeImpl

      protected com.liferay.social.kernel.model.SocialActivityAchievement removeImpl(com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement)
      Overrides:
      removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
    • updateImpl

      public com.liferay.social.kernel.model.SocialActivityAchievement updateImpl(com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement)
      Specified by:
      updateImpl in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Overrides:
      updateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
    • findByPrimaryKey

      public com.liferay.social.kernel.model.SocialActivityAchievement findByPrimaryKey(Serializable primaryKey) throws com.liferay.social.kernel.exception.NoSuchActivityAchievementException
      Returns the social activity achievement with the primary key or throws a com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found.
      Specified by:
      findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
      Overrides:
      findByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
      Parameters:
      primaryKey - the primary key of the social activity achievement
      Returns:
      the social activity achievement
      Throws:
      com.liferay.social.kernel.exception.NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
    • findByPrimaryKey

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

      public com.liferay.social.kernel.model.SocialActivityAchievement fetchByPrimaryKey(Serializable primaryKey)
      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.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
      Overrides:
      fetchByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.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
    • fetchByPrimaryKey

      public com.liferay.social.kernel.model.SocialActivityAchievement fetchByPrimaryKey(long activityAchievementId)
      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.social.kernel.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
    • fetchByPrimaryKeys

      public Map<Serializable,com.liferay.social.kernel.model.SocialActivityAchievement> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      Specified by:
      fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
      Overrides:
      fetchByPrimaryKeys in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
    • findAll

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findAll()
      Returns all the social activity achievements.
      Specified by:
      findAll in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Returns:
      the social activity achievements
    • findAll

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findAll(int start, int end)
      Returns a range of all the social activity achievements.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findAll in interface com.liferay.social.kernel.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
    • findAll

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator)
      Returns an ordered range of all the social activity achievements.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findAll in interface com.liferay.social.kernel.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
    • findAll

      public List<com.liferay.social.kernel.model.SocialActivityAchievement> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivityAchievement> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social activity achievements.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl.

      Specified by:
      findAll in interface com.liferay.social.kernel.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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of social activity achievements
    • removeAll

      public void removeAll()
      Removes all the social activity achievements from the database.
      Specified by:
      removeAll in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
    • countAll

      public int countAll()
      Returns the number of social activity achievements.
      Specified by:
      countAll in interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
      Returns:
      the number of social activity achievements
    • getEntityCache

      protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()
      Overrides:
      getEntityCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
    • getPKDBName

      protected String getPKDBName()
      Overrides:
      getPKDBName in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
    • getSelectSQL

      protected String getSelectSQL()
      Overrides:
      getSelectSQL in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
    • getCTColumnNames

      public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
      Specified by:
      getCTColumnNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
    • getMappingTableNames

      public List<String> getMappingTableNames()
      Specified by:
      getMappingTableNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
    • getTableColumnsMap

      public Map<String,Integer> getTableColumnsMap()
      Specified by:
      getTableColumnsMap in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
      Overrides:
      getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
    • getTableName

      public String getTableName()
      Specified by:
      getTableName in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
    • getUniqueIndexColumnNames

      public List<String[]> getUniqueIndexColumnNames()
      Specified by:
      getUniqueIndexColumnNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
    • afterPropertiesSet

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

      public void destroy()
    • getFinderCache

      protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()
      Overrides:
      getFinderCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>