Class 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
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
countAll()
Returns the number of social activity achievements.int
countByG_F
(long groupId, boolean firstInGroup) Returns the number of social activity achievements where groupId = ? and firstInGroup = ?.int
countByG_N
(long groupId, String name) Returns the number of social activity achievements where groupId = ? and name = ?.int
countByG_U
(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
destroy()
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 returnsnull
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 returnsnull
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 returnsnull
if it could not be found.com.liferay.social.kernel.model.SocialActivityAchievement
fetchByPrimaryKey
(Serializable primaryKey) Returns the social activity achievement with the primary key or returnsnull
if it could not be found.Map<Serializable,
com.liferay.social.kernel.model.SocialActivityAchievement> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) List<com.liferay.social.kernel.model.SocialActivityAchievement>
findAll()
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>
Returns all the social activity achievements where groupId = ? and name = ?.List<com.liferay.social.kernel.model.SocialActivityAchievement>
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 aNoSuchActivityAchievementException
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 aNoSuchActivityAchievementException
if it could not be found.com.liferay.social.kernel.model.SocialActivityAchievement
findByPrimaryKey
(Serializable primaryKey) Returns the social activity achievement with the primary key or throws acom.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
-
FINDER_CLASS_NAME_LIST_WITH_PAGINATION
-
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
-
-
Constructor Details
-
SocialActivityAchievementPersistenceImpl
public SocialActivityAchievementPersistenceImpl()
-
-
Method Details
-
findByGroupId
Returns all the social activity achievements where groupId = ?.- Specified by:
findByGroupId
in interfacecom.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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findByGroupId
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDstart
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)- Returns:
- the range of matching social activity achievements
-
findByGroupId
public 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findByGroupId
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDstart
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activity achievements
-
findByGroupId
public 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findByGroupId
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDstart
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activity achievements
-
findByGroupId_First
public 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
activityAchievementId
- the primary key of the current social activity achievementgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity achievement
- Throws:
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 interfacecom.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 interfacecom.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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findByG_U
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)- Returns:
- the range of matching social activity achievements
-
findByG_U
public 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findByG_U
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activity achievements
-
findByG_U
public 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findByG_U
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activity achievements
-
findByG_U_First
public 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
activityAchievementId
- the primary key of the current social activity achievementgroupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity achievement
- Throws:
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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDname
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findByG_N
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDname
- the namestart
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)- Returns:
- the range of matching social activity achievements
-
findByG_N
public 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findByG_N
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDname
- the namestart
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activity achievements
-
findByG_N
public 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findByG_N
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDname
- the namestart
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activity achievements
-
findByG_N_First
public 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
activityAchievementId
- the primary key of the current social activity achievementgroupId
- the group IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity achievement
- Throws:
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
Removes all the social activity achievements where groupId = ? and name = ? from the database.- Specified by:
removeByG_N
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDname
- the name
-
countByG_N
Returns the number of social activity achievements where groupId = ? and name = ?.- Specified by:
countByG_N
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDname
- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDfirstInGroup
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findByG_F
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDfirstInGroup
- the first in groupstart
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)- Returns:
- the range of matching social activity achievements
-
findByG_F
public 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findByG_F
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDfirstInGroup
- the first in groupstart
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activity achievements
-
findByG_F
public 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findByG_F
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDfirstInGroup
- the first in groupstart
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activity achievements
-
findByG_F_First
public 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDfirstInGroup
- the first in grouporderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity achievement
- Throws:
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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDfirstInGroup
- the first in grouporderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity achievement, or
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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDfirstInGroup
- the first in grouporderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity achievement
- Throws:
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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDfirstInGroup
- the first in grouporderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity achievement, or
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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
activityAchievementId
- the primary key of the current social activity achievementgroupId
- the group IDfirstInGroup
- the first in grouporderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity achievement
- Throws:
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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDfirstInGroup
- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDfirstInGroup
- 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 aNoSuchActivityAchievementException
if it could not be found.- Specified by:
findByG_U_N
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDname
- 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 returnsnull
if it could not be found. Uses the finder cache.- Specified by:
fetchByG_U_N
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDname
- 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 returnsnull
if it could not be found, optionally using the finder cache.- Specified by:
fetchByG_U_N
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDname
- the nameuseFinderCache
- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDname
- the name- Returns:
- the social activity achievement that was removed
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityAchievementException
-
countByG_U_N
Returns the number of social activity achievements where groupId = ? and userId = ? and name = ?.- Specified by:
countByG_U_N
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDname
- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDfirstInGroup
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findByG_U_F
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDfirstInGroup
- the first in groupstart
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)- Returns:
- the range of matching social activity achievements
-
findByG_U_F
public 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findByG_U_F
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDfirstInGroup
- the first in groupstart
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activity achievements
-
findByG_U_F
public 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findByG_U_F
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDfirstInGroup
- the first in groupstart
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activity achievements
-
findByG_U_F_First
public 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDfirstInGroup
- the first in grouporderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity achievement
- Throws:
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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDfirstInGroup
- the first in grouporderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity achievement, or
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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDfirstInGroup
- the first in grouporderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity achievement
- Throws:
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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDfirstInGroup
- the first in grouporderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity achievement, or
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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
activityAchievementId
- the primary key of the current social activity achievementgroupId
- the group IDuserId
- the user IDfirstInGroup
- the first in grouporderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity achievement
- Throws:
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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDfirstInGroup
- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
groupId
- the group IDuserId
- the user IDfirstInGroup
- 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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Overrides:
cacheResult
in classcom.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 interfacecom.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
andFinderCache
are both cleared by this method.- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
- Overrides:
clearCache
in classcom.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
andFinderCache
are both cleared by this method.- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
- Overrides:
clearCache
in classcom.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 interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
- Overrides:
clearCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
-
clearCache
- Specified by:
clearCache
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
- Overrides:
remove
in classcom.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 classcom.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 interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Overrides:
updateImpl
in classcom.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 acom.liferay.portal.kernel.exception.NoSuchModelException
if it could not be found.- Specified by:
findByPrimaryKey
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
- Overrides:
findByPrimaryKey
in classcom.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 aNoSuchActivityAchievementException
if it could not be found.- Specified by:
findByPrimaryKey
in interfacecom.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 returnsnull
if it could not be found.- Specified by:
fetchByPrimaryKey
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
- Overrides:
fetchByPrimaryKey
in classcom.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 returnsnull
if it could not be found.- Specified by:
fetchByPrimaryKey
in interfacecom.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 interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
- Overrides:
fetchByPrimaryKeys
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
-
findAll
Returns all the social activity achievements.- Specified by:
findAll
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Returns:
- the social activity achievements
-
findAll
Returns a range of all the social activity achievements.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findAll
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
start
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)- Returns:
- the range of social activity achievements
-
findAll
public 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findAll
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
start
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of social activity achievements
-
findAll
public 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl
.- Specified by:
findAll
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
- Parameters:
start
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of social activity achievements
-
removeAll
public void removeAll()Removes all the social activity achievements from the database.- Specified by:
removeAll
in interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
-
countAll
public int countAll()Returns the number of social activity achievements.- Specified by:
countAll
in interfacecom.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 classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
-
getPKDBName
- Overrides:
getPKDBName
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
-
getSelectSQL
- Overrides:
getSelectSQL
in classcom.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 interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
-
getMappingTableNames
- Specified by:
getMappingTableNames
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
-
getTableColumnsMap
- Specified by:
getTableColumnsMap
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
- Overrides:
getTableColumnsMap
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
-
getTableName
- Specified by:
getTableName
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
-
getUniqueIndexColumnNames
- Specified by:
getUniqueIndexColumnNames
in interfacecom.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 classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement>
-