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 TypeMethodDescriptionvoidInitializes the social activity achievement persistence.intcountByG_F(long groupId, boolean firstInGroup) Returns the number of social activity achievements where groupId = ? and firstInGroup = ?.intcountByG_N(long groupId, String name) Returns the number of social activity achievements where groupId = ? and name = ?.intcountByG_U(long groupId, long userId) Returns the number of social activity achievements where groupId = ? and userId = ?.intcountByG_U_F(long groupId, long userId, boolean firstInGroup) Returns the number of social activity achievements where groupId = ? and userId = ? and firstInGroup = ?.intcountByG_U_N(long groupId, long userId, String name) Returns the number of social activity achievements where groupId = ? and userId = ? and name = ?.intcountByGroupId(long groupId) Returns the number of social activity achievements where groupId = ?.com.liferay.social.kernel.model.SocialActivityAchievementcreate(long activityAchievementId) Creates a new social activity achievement with the primary key.voiddestroy()com.liferay.social.kernel.model.SocialActivityAchievementfetchByG_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.SocialActivityAchievementfetchByG_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.SocialActivityAchievementfetchByG_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.SocialActivityAchievementfetchByG_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.SocialActivityAchievementfetchByG_U_N(long groupId, long userId, String name, boolean useFinderCache) Returns the social activity achievement where groupId = ? and userId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.social.kernel.model.SocialActivityAchievementfetchByGroupId_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.SocialActivityAchievementfetchByPrimaryKey(long activityAchievementId) Returns the social activity achievement with the primary key or returnsnullif it could not be found.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.SocialActivityAchievementfindByG_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 = ?.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.SocialActivityAchievementfindByG_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 = ?.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, 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.SocialActivityAchievementfindByG_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.SocialActivityAchievementfindByG_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.SocialActivityAchievementfindByG_U_N(long groupId, long userId, String name) Returns the social activity achievement where groupId = ? and userId = ? and name = ? or throws aNoSuchActivityAchievementExceptionif it could not be found.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.SocialActivityAchievementfindByGroupId_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.SocialActivityAchievementfindByPrimaryKey(long activityAchievementId) Returns the social activity achievement with the primary key or throws aNoSuchActivityAchievementExceptionif it could not be found.getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelperprotected com.liferay.portal.kernel.dao.orm.EntityCacheprotected com.liferay.portal.kernel.dao.orm.FinderCacheprotected Stringprotected Stringcom.liferay.social.kernel.model.SocialActivityAchievementremove(long activityAchievementId) Removes the social activity achievement with the primary key from the database.voidremoveByG_F(long groupId, boolean firstInGroup) Removes all the social activity achievements where groupId = ? and firstInGroup = ? from the database.voidremoveByG_N(long groupId, String name) Removes all the social activity achievements where groupId = ? and name = ? from the database.voidremoveByG_U(long groupId, long userId) Removes all the social activity achievements where groupId = ? and userId = ? from the database.voidremoveByG_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.SocialActivityAchievementremoveByG_U_N(long groupId, long userId, String name) Removes the social activity achievement where groupId = ? and userId = ? and name = ? from the database.voidremoveByGroupId(long groupId) Removes all the social activity achievements where groupId = ? from the database.protected com.liferay.social.kernel.model.SocialActivityAchievementremoveImpl(com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement) com.liferay.social.kernel.model.SocialActivityAchievementupdateImpl(com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement) Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, cacheResult, cacheResult, cacheUniqueFindersResult, clearCache, clearCache, clearCache, clearCache, closeSession, convertCaseFunction, convertDateFunction, convertNullFunction, countAll, countWithDynamicQuery, countWithDynamicQuery, createUniqueFinderPath, dslQuery, dslQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDefaultOrderBySQL, getDefaultOrderBySQLInlineDistinct, getDialect, getEntityAlias, getEntityAliasPrefix, getFilterPKColumnName, getListeners, getModelClass, getModelImplClass, getNoSuchEntityWithKeyPrefix, getPKColumnName, getPKFieldName, isPermissionsInMemoryFilterEnabled, newNoSuchModelException, openNewSession, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, updateMethods inherited from interface com.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence
fetchByG_U_N, findByG_F, findByG_F, findByG_F, findByG_N, findByG_N, findByG_N, findByG_U, findByG_U, findByG_U, findByG_U_F, findByG_U_F, findByG_U_F, findByGroupId, findByGroupId, findByGroupId
-
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
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Specified by:
findByGroupIdin 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_Firstin 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_Firstin 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
nullif a matching social activity achievement could not be found
-
removeByGroupId
public void removeByGroupId(long groupId) Removes all the social activity achievements where groupId = ? from the database.- Specified by:
removeByGroupIdin 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:
countByGroupIdin 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, 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Specified by:
findByG_Uin 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_Firstin 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_Firstin 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
nullif a matching social activity achievement could not be found
-
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_Uin 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_Uin 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, 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Specified by:
findByG_Nin 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_Firstin 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_Firstin 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
nullif a matching social activity achievement could not be found
-
removeByG_N
Removes all the social activity achievements where groupId = ? and name = ? from the database.- Specified by:
removeByG_Nin 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_Nin 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, 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Specified by:
findByG_Fin 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_Firstin 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_Firstin 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
nullif a matching social activity achievement could not be found
-
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_Fin 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_Fin 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 aNoSuchActivityAchievementExceptionif it could not be found.- Specified by:
findByG_U_Nin 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, boolean useFinderCache) Returns the social activity achievement where groupId = ? and userId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByG_U_Nin 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
nullif 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_Nin 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_Nin 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, 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityAchievementModelImpl.- Specified by:
findByG_U_Fin 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_Firstin 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_Firstin 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
nullif a matching social activity achievement could not be found
-
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_Fin 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_Fin 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
-
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:
createin 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:
removein 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
-
removeImpl
protected com.liferay.social.kernel.model.SocialActivityAchievement removeImpl(com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement) - Overrides:
removeImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement,com.liferay.social.kernel.exception.NoSuchActivityAchievementException>
-
updateImpl
public com.liferay.social.kernel.model.SocialActivityAchievement updateImpl(com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement) - Specified by:
updateImplin interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence- Overrides:
updateImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement,com.liferay.social.kernel.exception.NoSuchActivityAchievementException>
-
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 aNoSuchActivityAchievementExceptionif it could not be found.- Specified by:
findByPrimaryKeyin 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
-
getCTPersistenceHelper
protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelper getCTPersistenceHelper()- Overrides:
getCTPersistenceHelperin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement,com.liferay.social.kernel.exception.NoSuchActivityAchievementException>
-
fetchByPrimaryKey
public com.liferay.social.kernel.model.SocialActivityAchievement fetchByPrimaryKey(long activityAchievementId) Returns the social activity achievement with the primary key or returnsnullif it could not be found.- Specified by:
fetchByPrimaryKeyin interfacecom.liferay.social.kernel.service.persistence.SocialActivityAchievementPersistence- Parameters:
activityAchievementId- the primary key of the social activity achievement- Returns:
- the social activity achievement, or
nullif a social activity achievement with the primary key could not be found
-
getEntityCache
protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()- Overrides:
getEntityCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement,com.liferay.social.kernel.exception.NoSuchActivityAchievementException>
-
getPKDBName
- Overrides:
getPKDBNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement,com.liferay.social.kernel.exception.NoSuchActivityAchievementException>
-
getSelectSQL
- Overrides:
getSelectSQLin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement,com.liferay.social.kernel.exception.NoSuchActivityAchievementException>
-
getCTColumnNames
public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) - Specified by:
getCTColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
-
getMappingTableNames
- Specified by:
getMappingTableNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivityAchievement>
-
getTableColumnsMap
- Specified by:
getTableColumnsMapin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivityAchievement>- Overrides:
getTableColumnsMapin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement,com.liferay.social.kernel.exception.NoSuchActivityAchievementException>
-
getTableName
- Specified by:
getTableNamein interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivityAchievement>- Overrides:
getTableNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement,com.liferay.social.kernel.exception.NoSuchActivityAchievementException>
-
getUniqueIndexColumnNames
- Specified by:
getUniqueIndexColumnNamesin 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:
getFinderCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivityAchievement,com.liferay.social.kernel.exception.NoSuchActivityAchievementException>
-